1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getLbL7rule
edgecenter 0.7.35 published on Friday, Apr 25, 2025 by edge-center

edgecenter.getLbL7rule

Explore with Pulumi AI

edgecenter 0.7.35 published on Friday, Apr 25, 2025 by edge-center

An L7 Rule is a single, simple logical test which returns either true or false

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";

const pr = edgecenter.getProject({
    name: "test",
});
const rg = edgecenter.getRegion({
    name: "ED-10 Preprod",
});
const rule = Promise.all([rg, pr]).then(([rg, pr]) => edgecenter.getLbL7rule({
    id: "59b2eabc-c0a8-4545-8081-979bd963c6ab",
    l7policyId: "76r2eabc-c0a8-4545-8081-979bd963c6fgh",
    regionId: rg.id,
    projectId: pr.id,
}));
export const view = rule;
Copy
import pulumi
import pulumi_edgecenter as edgecenter

pr = edgecenter.get_project(name="test")
rg = edgecenter.get_region(name="ED-10 Preprod")
rule = edgecenter.get_lb_l7rule(id="59b2eabc-c0a8-4545-8081-979bd963c6ab",
    l7policy_id="76r2eabc-c0a8-4545-8081-979bd963c6fgh",
    region_id=rg.id,
    project_id=pr.id)
pulumi.export("view", rule)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		pr, err := edgecenter.LookupProject(ctx, &edgecenter.LookupProjectArgs{
			Name: pulumi.StringRef("test"),
		}, nil)
		if err != nil {
			return err
		}
		rg, err := edgecenter.GetRegion(ctx, &edgecenter.GetRegionArgs{
			Name: "ED-10 Preprod",
		}, nil)
		if err != nil {
			return err
		}
		rule, err := edgecenter.LookupLbL7rule(ctx, &edgecenter.LookupLbL7ruleArgs{
			Id:         "59b2eabc-c0a8-4545-8081-979bd963c6ab",
			L7policyId: pulumi.StringRef("76r2eabc-c0a8-4545-8081-979bd963c6fgh"),
			RegionId:   pulumi.Float64Ref(rg.Id),
			ProjectId:  pulumi.Float64Ref(pr.Id),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("view", rule)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;

return await Deployment.RunAsync(() => 
{
    var pr = Edgecenter.GetProject.Invoke(new()
    {
        Name = "test",
    });

    var rg = Edgecenter.GetRegion.Invoke(new()
    {
        Name = "ED-10 Preprod",
    });

    var rule = Edgecenter.GetLbL7rule.Invoke(new()
    {
        Id = "59b2eabc-c0a8-4545-8081-979bd963c6ab",
        L7policyId = "76r2eabc-c0a8-4545-8081-979bd963c6fgh",
        RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
        ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
    });

    return new Dictionary<string, object?>
    {
        ["view"] = rule,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.EdgecenterFunctions;
import com.pulumi.edgecenter.inputs.GetProjectArgs;
import com.pulumi.edgecenter.inputs.GetRegionArgs;
import com.pulumi.edgecenter.inputs.GetLbL7ruleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var pr = EdgecenterFunctions.getProject(GetProjectArgs.builder()
            .name("test")
            .build());

        final var rg = EdgecenterFunctions.getRegion(GetRegionArgs.builder()
            .name("ED-10 Preprod")
            .build());

        final var rule = EdgecenterFunctions.getLbL7rule(GetLbL7ruleArgs.builder()
            .id("59b2eabc-c0a8-4545-8081-979bd963c6ab")
            .l7policyId("76r2eabc-c0a8-4545-8081-979bd963c6fgh")
            .regionId(rg.applyValue(getRegionResult -> getRegionResult.id()))
            .projectId(pr.applyValue(getProjectResult -> getProjectResult.id()))
            .build());

        ctx.export("view", rule.applyValue(getLbL7ruleResult -> getLbL7ruleResult));
    }
}
Copy
variables:
  pr:
    fn::invoke:
      function: edgecenter:getProject
      arguments:
        name: test
  rg:
    fn::invoke:
      function: edgecenter:getRegion
      arguments:
        name: ED-10 Preprod
  rule:
    fn::invoke:
      function: edgecenter:getLbL7rule
      arguments:
        id: 59b2eabc-c0a8-4545-8081-979bd963c6ab
        l7policyId: 76r2eabc-c0a8-4545-8081-979bd963c6fgh
        regionId: ${rg.id}
        projectId: ${pr.id}
outputs:
  view: ${rule}
Copy

Using getLbL7rule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getLbL7rule(args: GetLbL7ruleArgs, opts?: InvokeOptions): Promise<GetLbL7ruleResult>
function getLbL7ruleOutput(args: GetLbL7ruleOutputArgs, opts?: InvokeOptions): Output<GetLbL7ruleResult>
Copy
def get_lb_l7rule(id: Optional[str] = None,
                  l7policy_id: Optional[str] = None,
                  l7policy_name: Optional[str] = None,
                  project_id: Optional[float] = None,
                  project_name: Optional[str] = None,
                  region_id: Optional[float] = None,
                  region_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetLbL7ruleResult
def get_lb_l7rule_output(id: Optional[pulumi.Input[str]] = None,
                  l7policy_id: Optional[pulumi.Input[str]] = None,
                  l7policy_name: Optional[pulumi.Input[str]] = None,
                  project_id: Optional[pulumi.Input[float]] = None,
                  project_name: Optional[pulumi.Input[str]] = None,
                  region_id: Optional[pulumi.Input[float]] = None,
                  region_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetLbL7ruleResult]
Copy
func LookupLbL7rule(ctx *Context, args *LookupLbL7ruleArgs, opts ...InvokeOption) (*LookupLbL7ruleResult, error)
func LookupLbL7ruleOutput(ctx *Context, args *LookupLbL7ruleOutputArgs, opts ...InvokeOption) LookupLbL7ruleResultOutput
Copy

> Note: This function is named LookupLbL7rule in the Go SDK.

public static class GetLbL7rule 
{
    public static Task<GetLbL7ruleResult> InvokeAsync(GetLbL7ruleArgs args, InvokeOptions? opts = null)
    public static Output<GetLbL7ruleResult> Invoke(GetLbL7ruleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLbL7ruleResult> getLbL7rule(GetLbL7ruleArgs args, InvokeOptions options)
public static Output<GetLbL7ruleResult> getLbL7rule(GetLbL7ruleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: edgecenter:index/getLbL7rule:getLbL7rule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The uuid of l7rule
L7policyId string
The ID of the L7 policy.
L7policyName string
The name of the L7 policy.
ProjectId double
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
ProjectName string
The name of the project. Either 'projectid' or 'projectname' must be specified.
RegionId double
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
RegionName string
The name of the region. Either 'regionid' or 'regionname' must be specified.
Id This property is required. string
The uuid of l7rule
L7policyId string
The ID of the L7 policy.
L7policyName string
The name of the L7 policy.
ProjectId float64
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
ProjectName string
The name of the project. Either 'projectid' or 'projectname' must be specified.
RegionId float64
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
RegionName string
The name of the region. Either 'regionid' or 'regionname' must be specified.
id This property is required. String
The uuid of l7rule
l7policyId String
The ID of the L7 policy.
l7policyName String
The name of the L7 policy.
projectId Double
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
projectName String
The name of the project. Either 'projectid' or 'projectname' must be specified.
regionId Double
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
regionName String
The name of the region. Either 'regionid' or 'regionname' must be specified.
id This property is required. string
The uuid of l7rule
l7policyId string
The ID of the L7 policy.
l7policyName string
The name of the L7 policy.
projectId number
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
projectName string
The name of the project. Either 'projectid' or 'projectname' must be specified.
regionId number
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
regionName string
The name of the region. Either 'regionid' or 'regionname' must be specified.
id This property is required. str
The uuid of l7rule
l7policy_id str
The ID of the L7 policy.
l7policy_name str
The name of the L7 policy.
project_id float
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
project_name str
The name of the project. Either 'projectid' or 'projectname' must be specified.
region_id float
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
region_name str
The name of the region. Either 'regionid' or 'regionname' must be specified.
id This property is required. String
The uuid of l7rule
l7policyId String
The ID of the L7 policy.
l7policyName String
The name of the L7 policy.
projectId Number
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
projectName String
The name of the project. Either 'projectid' or 'projectname' must be specified.
regionId Number
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
regionName String
The name of the region. Either 'regionid' or 'regionname' must be specified.

getLbL7rule Result

The following output properties are available:

CompareType string
The comparison type for the L7 rule. Available comparison types: "CONTAINS", "STARTSWITH", "ENDSWITH", "EQUAL_TO", "REGEX".
Id string
The uuid of l7rule
Invert bool
When true the logic of the rule is inverted.
Key string
ListenerId string
OperatingStatus string
ProjectId double
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
ProjectName string
The name of the project. Either 'projectid' or 'projectname' must be specified.
ProvisioningStatus string
RegionId double
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
RegionName string
The name of the region. Either 'regionid' or 'regionname' must be specified.
Tags List<string>
Type string
Value string
L7policyId string
The ID of the L7 policy.
L7policyName string
The name of the L7 policy.
CompareType string
The comparison type for the L7 rule. Available comparison types: "CONTAINS", "STARTSWITH", "ENDSWITH", "EQUAL_TO", "REGEX".
Id string
The uuid of l7rule
Invert bool
When true the logic of the rule is inverted.
Key string
ListenerId string
OperatingStatus string
ProjectId float64
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
ProjectName string
The name of the project. Either 'projectid' or 'projectname' must be specified.
ProvisioningStatus string
RegionId float64
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
RegionName string
The name of the region. Either 'regionid' or 'regionname' must be specified.
Tags []string
Type string
Value string
L7policyId string
The ID of the L7 policy.
L7policyName string
The name of the L7 policy.
compareType String
The comparison type for the L7 rule. Available comparison types: "CONTAINS", "STARTSWITH", "ENDSWITH", "EQUAL_TO", "REGEX".
id String
The uuid of l7rule
invert Boolean
When true the logic of the rule is inverted.
key String
listenerId String
operatingStatus String
projectId Double
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
projectName String
The name of the project. Either 'projectid' or 'projectname' must be specified.
provisioningStatus String
regionId Double
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
regionName String
The name of the region. Either 'regionid' or 'regionname' must be specified.
tags List<String>
type String
value String
l7policyId String
The ID of the L7 policy.
l7policyName String
The name of the L7 policy.
compareType string
The comparison type for the L7 rule. Available comparison types: "CONTAINS", "STARTSWITH", "ENDSWITH", "EQUAL_TO", "REGEX".
id string
The uuid of l7rule
invert boolean
When true the logic of the rule is inverted.
key string
listenerId string
operatingStatus string
projectId number
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
projectName string
The name of the project. Either 'projectid' or 'projectname' must be specified.
provisioningStatus string
regionId number
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
regionName string
The name of the region. Either 'regionid' or 'regionname' must be specified.
tags string[]
type string
value string
l7policyId string
The ID of the L7 policy.
l7policyName string
The name of the L7 policy.
compare_type str
The comparison type for the L7 rule. Available comparison types: "CONTAINS", "STARTSWITH", "ENDSWITH", "EQUAL_TO", "REGEX".
id str
The uuid of l7rule
invert bool
When true the logic of the rule is inverted.
key str
listener_id str
operating_status str
project_id float
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
project_name str
The name of the project. Either 'projectid' or 'projectname' must be specified.
provisioning_status str
region_id float
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
region_name str
The name of the region. Either 'regionid' or 'regionname' must be specified.
tags Sequence[str]
type str
value str
l7policy_id str
The ID of the L7 policy.
l7policy_name str
The name of the L7 policy.
compareType String
The comparison type for the L7 rule. Available comparison types: "CONTAINS", "STARTSWITH", "ENDSWITH", "EQUAL_TO", "REGEX".
id String
The uuid of l7rule
invert Boolean
When true the logic of the rule is inverted.
key String
listenerId String
operatingStatus String
projectId Number
The uuid of the project. Either 'projectid' or 'projectname' must be specified.
projectName String
The name of the project. Either 'projectid' or 'projectname' must be specified.
provisioningStatus String
regionId Number
The uuid of the region. Either 'regionid' or 'regionname' must be specified.
regionName String
The name of the region. Either 'regionid' or 'regionname' must be specified.
tags List<String>
type String
value String
l7policyId String
The ID of the L7 policy.
l7policyName String
The name of the L7 policy.

Package Details

Repository
edgecenter edge-center/terraform-provider-edgecenter
License
Notes
This Pulumi package is based on the edgecenter Terraform Provider.
edgecenter 0.7.35 published on Friday, Apr 25, 2025 by edge-center