1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. LbL7ruleV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.LbL7ruleV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages an enhanced load balancer L7 Rule resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const loadbalancer1 = new flexibleengine.LbLoadbalancerV2("loadbalancer1", {vipSubnetId: flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id});
    const listener1 = new flexibleengine.LbListenerV2("listener1", {
        protocol: "HTTP",
        protocolPort: 8080,
        loadbalancerId: loadbalancer1.lbLoadbalancerV2Id,
    });
    const pool1 = new flexibleengine.LbPoolV2("pool1", {
        protocol: "HTTP",
        lbMethod: "ROUND_ROBIN",
        loadbalancerId: loadbalancer1.lbLoadbalancerV2Id,
    });
    const l7policy1 = new flexibleengine.LbL7policyV2("l7policy1", {
        action: "REDIRECT_TO_POOL",
        description: "test l7 policy",
        position: 1,
        listenerId: listener1.lbListenerV2Id,
        redirectPoolId: pool1.lbPoolV2Id,
    });
    const l7rule1 = new flexibleengine.LbL7ruleV2("l7rule1", {
        l7policyId: l7policy1.lbL7policyV2Id,
        type: "PATH",
        compareType: "EQUAL_TO",
        value: "/api",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    loadbalancer1 = flexibleengine.LbLoadbalancerV2("loadbalancer1", vip_subnet_id=flexibleengine_vpc_subnet_v1["example_subnet"]["ipv4_subnet_id"])
    listener1 = flexibleengine.LbListenerV2("listener1",
        protocol="HTTP",
        protocol_port=8080,
        loadbalancer_id=loadbalancer1.lb_loadbalancer_v2_id)
    pool1 = flexibleengine.LbPoolV2("pool1",
        protocol="HTTP",
        lb_method="ROUND_ROBIN",
        loadbalancer_id=loadbalancer1.lb_loadbalancer_v2_id)
    l7policy1 = flexibleengine.LbL7policyV2("l7policy1",
        action="REDIRECT_TO_POOL",
        description="test l7 policy",
        position=1,
        listener_id=listener1.lb_listener_v2_id,
        redirect_pool_id=pool1.lb_pool_v2_id)
    l7rule1 = flexibleengine.LbL7ruleV2("l7rule1",
        l7policy_id=l7policy1.lb_l7policy_v2_id,
        type="PATH",
        compare_type="EQUAL_TO",
        value="/api")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		loadbalancer1, err := flexibleengine.NewLbLoadbalancerV2(ctx, "loadbalancer1", &flexibleengine.LbLoadbalancerV2Args{
    			VipSubnetId: pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id),
    		})
    		if err != nil {
    			return err
    		}
    		listener1, err := flexibleengine.NewLbListenerV2(ctx, "listener1", &flexibleengine.LbListenerV2Args{
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Float64(8080),
    			LoadbalancerId: loadbalancer1.LbLoadbalancerV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		pool1, err := flexibleengine.NewLbPoolV2(ctx, "pool1", &flexibleengine.LbPoolV2Args{
    			Protocol:       pulumi.String("HTTP"),
    			LbMethod:       pulumi.String("ROUND_ROBIN"),
    			LoadbalancerId: loadbalancer1.LbLoadbalancerV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		l7policy1, err := flexibleengine.NewLbL7policyV2(ctx, "l7policy1", &flexibleengine.LbL7policyV2Args{
    			Action:         pulumi.String("REDIRECT_TO_POOL"),
    			Description:    pulumi.String("test l7 policy"),
    			Position:       pulumi.Float64(1),
    			ListenerId:     listener1.LbListenerV2Id,
    			RedirectPoolId: pool1.LbPoolV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewLbL7ruleV2(ctx, "l7rule1", &flexibleengine.LbL7ruleV2Args{
    			L7policyId:  l7policy1.LbL7policyV2Id,
    			Type:        pulumi.String("PATH"),
    			CompareType: pulumi.String("EQUAL_TO"),
    			Value:       pulumi.String("/api"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var loadbalancer1 = new Flexibleengine.LbLoadbalancerV2("loadbalancer1", new()
        {
            VipSubnetId = flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id,
        });
    
        var listener1 = new Flexibleengine.LbListenerV2("listener1", new()
        {
            Protocol = "HTTP",
            ProtocolPort = 8080,
            LoadbalancerId = loadbalancer1.LbLoadbalancerV2Id,
        });
    
        var pool1 = new Flexibleengine.LbPoolV2("pool1", new()
        {
            Protocol = "HTTP",
            LbMethod = "ROUND_ROBIN",
            LoadbalancerId = loadbalancer1.LbLoadbalancerV2Id,
        });
    
        var l7policy1 = new Flexibleengine.LbL7policyV2("l7policy1", new()
        {
            Action = "REDIRECT_TO_POOL",
            Description = "test l7 policy",
            Position = 1,
            ListenerId = listener1.LbListenerV2Id,
            RedirectPoolId = pool1.LbPoolV2Id,
        });
    
        var l7rule1 = new Flexibleengine.LbL7ruleV2("l7rule1", new()
        {
            L7policyId = l7policy1.LbL7policyV2Id,
            Type = "PATH",
            CompareType = "EQUAL_TO",
            Value = "/api",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LbLoadbalancerV2;
    import com.pulumi.flexibleengine.LbLoadbalancerV2Args;
    import com.pulumi.flexibleengine.LbListenerV2;
    import com.pulumi.flexibleengine.LbListenerV2Args;
    import com.pulumi.flexibleengine.LbPoolV2;
    import com.pulumi.flexibleengine.LbPoolV2Args;
    import com.pulumi.flexibleengine.LbL7policyV2;
    import com.pulumi.flexibleengine.LbL7policyV2Args;
    import com.pulumi.flexibleengine.LbL7ruleV2;
    import com.pulumi.flexibleengine.LbL7ruleV2Args;
    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) {
            var loadbalancer1 = new LbLoadbalancerV2("loadbalancer1", LbLoadbalancerV2Args.builder()
                .vipSubnetId(flexibleengine_vpc_subnet_v1.example_subnet().ipv4_subnet_id())
                .build());
    
            var listener1 = new LbListenerV2("listener1", LbListenerV2Args.builder()
                .protocol("HTTP")
                .protocolPort(8080)
                .loadbalancerId(loadbalancer1.lbLoadbalancerV2Id())
                .build());
    
            var pool1 = new LbPoolV2("pool1", LbPoolV2Args.builder()
                .protocol("HTTP")
                .lbMethod("ROUND_ROBIN")
                .loadbalancerId(loadbalancer1.lbLoadbalancerV2Id())
                .build());
    
            var l7policy1 = new LbL7policyV2("l7policy1", LbL7policyV2Args.builder()
                .action("REDIRECT_TO_POOL")
                .description("test l7 policy")
                .position(1)
                .listenerId(listener1.lbListenerV2Id())
                .redirectPoolId(pool1.lbPoolV2Id())
                .build());
    
            var l7rule1 = new LbL7ruleV2("l7rule1", LbL7ruleV2Args.builder()
                .l7policyId(l7policy1.lbL7policyV2Id())
                .type("PATH")
                .compareType("EQUAL_TO")
                .value("/api")
                .build());
    
        }
    }
    
    resources:
      loadbalancer1:
        type: flexibleengine:LbLoadbalancerV2
        properties:
          vipSubnetId: ${flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id}
      listener1:
        type: flexibleengine:LbListenerV2
        properties:
          protocol: HTTP
          protocolPort: 8080
          loadbalancerId: ${loadbalancer1.lbLoadbalancerV2Id}
      pool1:
        type: flexibleengine:LbPoolV2
        properties:
          protocol: HTTP
          lbMethod: ROUND_ROBIN
          loadbalancerId: ${loadbalancer1.lbLoadbalancerV2Id}
      l7policy1:
        type: flexibleengine:LbL7policyV2
        properties:
          action: REDIRECT_TO_POOL
          description: test l7 policy
          position: 1
          listenerId: ${listener1.lbListenerV2Id}
          redirectPoolId: ${pool1.lbPoolV2Id}
      l7rule1:
        type: flexibleengine: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: flexibleengine: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 Flexibleengine.LbL7ruleV2("lbL7ruleV2Resource", new()
    {
        CompareType = "string",
        L7policyId = "string",
        Type = "string",
        Value = "string",
        Key = "string",
        LbL7ruleV2Id = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.LbL7ruleV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := flexibleengine.NewLbL7ruleV2(ctx, "lbL7ruleV2Resource", &flexibleengine.LbL7ruleV2Args{
    	CompareType:  pulumi.String("string"),
    	L7policyId:   pulumi.String("string"),
    	Type:         pulumi.String("string"),
    	Value:        pulumi.String("string"),
    	Key:          pulumi.String("string"),
    	LbL7ruleV2Id: pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	Timeouts: &flexibleengine.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")
        .key("string")
        .lbL7ruleV2Id("string")
        .region("string")
        .timeouts(LbL7ruleV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lb_l7rule_v2_resource = flexibleengine.LbL7ruleV2("lbL7ruleV2Resource",
        compare_type="string",
        l7policy_id="string",
        type="string",
        value="string",
        key="string",
        lb_l7rule_v2_id="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lbL7ruleV2Resource = new flexibleengine.LbL7ruleV2("lbL7ruleV2Resource", {
        compareType: "string",
        l7policyId: "string",
        type: "string",
        value: "string",
        key: "string",
        lbL7ruleV2Id: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: flexibleengine:LbL7ruleV2
    properties:
        compareType: string
        key: string
        l7policyId: string
        lbL7ruleV2Id: string
        region: 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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId string

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenant_id str

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String

    Deprecated: Deprecated

    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: flexibleengine: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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    TenantId string

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId string

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenant_id str

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    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. A Networking client is needed to create an . If omitted, the region argument of the provider is used. Changing this creates a new L7 Rule.
    tenantId String

    Deprecated: Deprecated

    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 flexibleengine: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
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud