edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center
edgecenter.getLbL7rule
Explore with Pulumi AI
edgecenter 0.8.0 published on Wednesday, Apr 30, 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;
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)
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
})
}
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,
};
});
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));
}
}
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}
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>
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]
func LookupLbL7rule(ctx *Context, args *LookupLbL7ruleArgs, opts ...InvokeOption) (*LookupLbL7ruleResult, error)
func LookupLbL7ruleOutput(ctx *Context, args *LookupLbL7ruleOutputArgs, opts ...InvokeOption) LookupLbL7ruleResultOutput
> 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)
}
public static CompletableFuture<GetLbL7ruleResult> getLbL7rule(GetLbL7ruleArgs args, InvokeOptions options)
public static Output<GetLbL7ruleResult> getLbL7rule(GetLbL7ruleArgs args, InvokeOptions options)
fn::invoke:
function: edgecenter:index/getLbL7rule:getLbL7rule
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The uuid of l7rule
- L7policy
Id string - The ID of the L7 policy.
- L7policy
Name string - The name of the L7 policy.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Id string
- The uuid of l7rule
- L7policy
Id string - The ID of the L7 policy.
- L7policy
Name string - The name of the L7 policy.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- id String
- The uuid of l7rule
- l7policy
Id String - The ID of the L7 policy.
- l7policy
Name String - The name of the L7 policy.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- id string
- The uuid of l7rule
- l7policy
Id string - The ID of the L7 policy.
- l7policy
Name string - The name of the L7 policy.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- id 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 String
- The uuid of l7rule
- l7policy
Id String - The ID of the L7 policy.
- l7policy
Name String - The name of the L7 policy.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
getLbL7rule Result
The following output properties are available:
- Compare
Type 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
- Listener
Id string - Operating
Status string - Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Provisioning
Status string - Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- List<string>
- Type string
- Value string
- L7policy
Id string - The ID of the L7 policy.
- L7policy
Name string - The name of the L7 policy.
- Compare
Type 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
- Listener
Id string - Operating
Status string - Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Provisioning
Status string - Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- []string
- Type string
- Value string
- L7policy
Id string - The ID of the L7 policy.
- L7policy
Name string - The name of the L7 policy.
- compare
Type 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
- listener
Id String - operating
Status String - project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- provisioning
Status String - region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- List<String>
- type String
- value String
- l7policy
Id String - The ID of the L7 policy.
- l7policy
Name String - The name of the L7 policy.
- compare
Type 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
- listener
Id string - operating
Status string - project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- provisioning
Status string - region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- string[]
- type string
- value string
- l7policy
Id string - The ID of the L7 policy.
- l7policy
Name 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.
- Sequence[str]
- type str
- value str
- l7policy_
id str - The ID of the L7 policy.
- l7policy_
name str - The name of the L7 policy.
- compare
Type 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
- listener
Id String - operating
Status String - project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- provisioning
Status String - region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- List<String>
- type String
- value String
- l7policy
Id String - The ID of the L7 policy.
- l7policy
Name 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.8.0 published on Wednesday, Apr 30, 2025 by edge-center