1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LbL7ruleV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.LbL7ruleV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for ELB l7 rule you can get at documentation portal

    Manages a V2 L7 Rule resource within OpenTelekomCloud.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      loadbalancer1:
        type: opentelekomcloud:LbLoadbalancerV2
        properties:
          vipSubnetId: SUBNET_ID
      listener1:
        type: opentelekomcloud:LbListenerV2
        properties:
          protocol: HTTP
          protocolPort: 8080
          loadbalancerId: ${loadbalancer1.lbLoadbalancerV2Id}
      pool1:
        type: opentelekomcloud:LbPoolV2
        properties:
          protocol: HTTP
          lbMethod: ROUND_ROBIN
          loadbalancerId: ${loadbalancer1.lbLoadbalancerV2Id}
      l7policy1:
        type: opentelekomcloud:LbL7policyV2
        properties:
          action: REDIRECT_TO_URL
          description: test description
          position: 1
          listenerId: ${listener1.lbListenerV2Id}
          redirectUrl: http://www.example.com
      l7rule1:
        type: opentelekomcloud:LbL7ruleV2
        properties:
          l7policyId: ${l7policy1.lbL7policyV2Id}
          type: PATH
          compareType: EQUAL_TO
          value: /api
    

    Create LbL7ruleV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LbL7ruleV2(name: string, args: LbL7ruleV2Args, opts?: CustomResourceOptions);
    @overload
    def LbL7ruleV2(resource_name: str,
                   args: LbL7ruleV2Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbL7ruleV2(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   compare_type: Optional[str] = None,
                   l7policy_id: Optional[str] = None,
                   type: Optional[str] = None,
                   value: Optional[str] = None,
                   admin_state_up: Optional[bool] = None,
                   key: Optional[str] = None,
                   lb_l7rule_v2_id: Optional[str] = None,
                   region: Optional[str] = None,
                   tenant_id: Optional[str] = None,
                   timeouts: Optional[LbL7ruleV2TimeoutsArgs] = None)
    func NewLbL7ruleV2(ctx *Context, name string, args LbL7ruleV2Args, opts ...ResourceOption) (*LbL7ruleV2, error)
    public LbL7ruleV2(string name, LbL7ruleV2Args args, CustomResourceOptions? opts = null)
    public LbL7ruleV2(String name, LbL7ruleV2Args args)
    public LbL7ruleV2(String name, LbL7ruleV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LbL7ruleV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LbL7ruleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LbL7ruleV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LbL7ruleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbL7ruleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbL7ruleV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var lbL7ruleV2Resource = new Opentelekomcloud.LbL7ruleV2("lbL7ruleV2Resource", new()
    {
        CompareType = "string",
        L7policyId = "string",
        Type = "string",
        Value = "string",
        AdminStateUp = false,
        Key = "string",
        LbL7ruleV2Id = "string",
        Region = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.LbL7ruleV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := opentelekomcloud.NewLbL7ruleV2(ctx, "lbL7ruleV2Resource", &opentelekomcloud.LbL7ruleV2Args{
    	CompareType:  pulumi.String("string"),
    	L7policyId:   pulumi.String("string"),
    	Type:         pulumi.String("string"),
    	Value:        pulumi.String("string"),
    	AdminStateUp: pulumi.Bool(false),
    	Key:          pulumi.String("string"),
    	LbL7ruleV2Id: pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	TenantId:     pulumi.String("string"),
    	Timeouts: &opentelekomcloud.LbL7ruleV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var lbL7ruleV2Resource = new LbL7ruleV2("lbL7ruleV2Resource", LbL7ruleV2Args.builder()
        .compareType("string")
        .l7policyId("string")
        .type("string")
        .value("string")
        .adminStateUp(false)
        .key("string")
        .lbL7ruleV2Id("string")
        .region("string")
        .tenantId("string")
        .timeouts(LbL7ruleV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lb_l7rule_v2_resource = opentelekomcloud.LbL7ruleV2("lbL7ruleV2Resource",
        compare_type="string",
        l7policy_id="string",
        type="string",
        value="string",
        admin_state_up=False,
        key="string",
        lb_l7rule_v2_id="string",
        region="string",
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lbL7ruleV2Resource = new opentelekomcloud.LbL7ruleV2("lbL7ruleV2Resource", {
        compareType: "string",
        l7policyId: "string",
        type: "string",
        value: "string",
        adminStateUp: false,
        key: "string",
        lbL7ruleV2Id: "string",
        region: "string",
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: opentelekomcloud:LbL7ruleV2
    properties:
        adminStateUp: false
        compareType: string
        key: string
        l7policyId: string
        lbL7ruleV2Id: string
        region: string
        tenantId: string
        timeouts:
            create: string
            delete: string
            update: string
        type: string
        value: string
    

    LbL7ruleV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LbL7ruleV2 resource accepts the following input properties:

    CompareType string
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    L7policyId string
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    Type string
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    Value string
    The value to use for the comparison. For example, the file type to compare.
    AdminStateUp bool
    The administrative state of the L7 Rule. The value can only be true (UP).
    Key string
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    LbL7ruleV2Id string
    The unique ID for the L7 Rule.
    Region string
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    Timeouts LbL7ruleV2Timeouts
    CompareType string
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    L7policyId string
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    Type string
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    Value string
    The value to use for the comparison. For example, the file type to compare.
    AdminStateUp bool
    The administrative state of the L7 Rule. The value can only be true (UP).
    Key string
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    LbL7ruleV2Id string
    The unique ID for the L7 Rule.
    Region string
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    Timeouts LbL7ruleV2TimeoutsArgs
    compareType String
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    l7policyId String
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    type String
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value String
    The value to use for the comparison. For example, the file type to compare.
    adminStateUp Boolean
    The administrative state of the L7 Rule. The value can only be true (UP).
    key String
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    lbL7ruleV2Id String
    The unique ID for the L7 Rule.
    region String
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts LbL7ruleV2Timeouts
    compareType string
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    l7policyId string
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    type string
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value string
    The value to use for the comparison. For example, the file type to compare.
    adminStateUp boolean
    The administrative state of the L7 Rule. The value can only be true (UP).
    key string
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    lbL7ruleV2Id string
    The unique ID for the L7 Rule.
    region string
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId string
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts LbL7ruleV2Timeouts
    compare_type str
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    l7policy_id str
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    type str
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value str
    The value to use for the comparison. For example, the file type to compare.
    admin_state_up bool
    The administrative state of the L7 Rule. The value can only be true (UP).
    key str
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    lb_l7rule_v2_id str
    The unique ID for the L7 Rule.
    region str
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenant_id str
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts LbL7ruleV2TimeoutsArgs
    compareType String
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    l7policyId String
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    type String
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value String
    The value to use for the comparison. For example, the file type to compare.
    adminStateUp Boolean
    The administrative state of the L7 Rule. The value can only be true (UP).
    key String
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    lbL7ruleV2Id String
    The unique ID for the L7 Rule.
    region String
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LbL7ruleV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ListenerId string
    The ID of the Listener owning this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListenerId string
    The ID of the Listener owning this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    listenerId String
    The ID of the Listener owning this resource.
    id string
    The provider-assigned unique ID for this managed resource.
    listenerId string
    The ID of the Listener owning this resource.
    id str
    The provider-assigned unique ID for this managed resource.
    listener_id str
    The ID of the Listener owning this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    listenerId String
    The ID of the Listener owning this resource.

    Look up Existing LbL7ruleV2 Resource

    Get an existing LbL7ruleV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LbL7ruleV2State, opts?: CustomResourceOptions): LbL7ruleV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            compare_type: Optional[str] = None,
            key: Optional[str] = None,
            l7policy_id: Optional[str] = None,
            lb_l7rule_v2_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[LbL7ruleV2TimeoutsArgs] = None,
            type: Optional[str] = None,
            value: Optional[str] = None) -> LbL7ruleV2
    func GetLbL7ruleV2(ctx *Context, name string, id IDInput, state *LbL7ruleV2State, opts ...ResourceOption) (*LbL7ruleV2, error)
    public static LbL7ruleV2 Get(string name, Input<string> id, LbL7ruleV2State? state, CustomResourceOptions? opts = null)
    public static LbL7ruleV2 get(String name, Output<String> id, LbL7ruleV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LbL7ruleV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminStateUp bool
    The administrative state of the L7 Rule. The value can only be true (UP).
    CompareType string
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    Key string
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    L7policyId string
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    LbL7ruleV2Id string
    The unique ID for the L7 Rule.
    ListenerId string
    The ID of the Listener owning this resource.
    Region string
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    Timeouts LbL7ruleV2Timeouts
    Type string
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    Value string
    The value to use for the comparison. For example, the file type to compare.
    AdminStateUp bool
    The administrative state of the L7 Rule. The value can only be true (UP).
    CompareType string
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    Key string
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    L7policyId string
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    LbL7ruleV2Id string
    The unique ID for the L7 Rule.
    ListenerId string
    The ID of the Listener owning this resource.
    Region string
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    Timeouts LbL7ruleV2TimeoutsArgs
    Type string
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    Value string
    The value to use for the comparison. For example, the file type to compare.
    adminStateUp Boolean
    The administrative state of the L7 Rule. The value can only be true (UP).
    compareType String
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    key String
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    l7policyId String
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    lbL7ruleV2Id String
    The unique ID for the L7 Rule.
    listenerId String
    The ID of the Listener owning this resource.
    region String
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts LbL7ruleV2Timeouts
    type String
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value String
    The value to use for the comparison. For example, the file type to compare.
    adminStateUp boolean
    The administrative state of the L7 Rule. The value can only be true (UP).
    compareType string
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    key string
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    l7policyId string
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    lbL7ruleV2Id string
    The unique ID for the L7 Rule.
    listenerId string
    The ID of the Listener owning this resource.
    region string
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId string
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts LbL7ruleV2Timeouts
    type string
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value string
    The value to use for the comparison. For example, the file type to compare.
    admin_state_up bool
    The administrative state of the L7 Rule. The value can only be true (UP).
    compare_type str
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    key str
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    l7policy_id str
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    lb_l7rule_v2_id str
    The unique ID for the L7 Rule.
    listener_id str
    The ID of the Listener owning this resource.
    region str
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenant_id str
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts LbL7ruleV2TimeoutsArgs
    type str
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value str
    The value to use for the comparison. For example, the file type to compare.
    adminStateUp Boolean
    The administrative state of the L7 Rule. The value can only be true (UP).
    compareType String
    The comparison type for the L7 rule - can either be STARTS_WITH, EQUAL_TO or REGEX
    key String
    The key to use for the comparison. For example, the name of the cookie to evaluate. Valid when type is set to COOKIE or HEADER. Changing this creates a new L7 Rule.
    l7policyId String
    The ID of the L7 Policy to query. Changing this creates a new L7 Rule.
    lbL7ruleV2Id String
    The unique ID for the L7 Rule.
    listenerId String
    The ID of the Listener owning this resource.
    region String
    The region in which to obtain the V2 Networking client. If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Rule. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Rule.
    timeouts Property Map
    type String
    The L7 Rule type - can either be HOST_NAME or PATH. Changing this creates a new L7 Rule.
    value String
    The value to use for the comparison. For example, the file type to compare.

    Supporting Types

    LbL7ruleV2Timeouts, LbL7ruleV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Load Balancer L7 Rule can be imported using the L7 Policy ID and L7 Rule ID

    separated by a slash, e.g.:

    $ pulumi import opentelekomcloud:index/lbL7ruleV2:LbL7ruleV2 l7rule_1 e0bd694a-abbe-450e-b329-0931fd1cc5eb/4086b0c9-b18c-4d1c-b6b8-4c56c3ad2a9e
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud