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

flexibleengine.LbL7policyV2

Explore with Pulumi AI

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

    Manages an enhanced load balancer L7 Policy 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,
    });
    
    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)
    
    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
    		}
    		_, 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
    		}
    		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,
        });
    
    });
    
    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 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());
    
        }
    }
    
    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}
    

    Create LbL7policyV2 Resource

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

    Constructor syntax

    new LbL7policyV2(name: string, args: LbL7policyV2Args, opts?: CustomResourceOptions);
    @overload
    def LbL7policyV2(resource_name: str,
                     args: LbL7policyV2Args,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbL7policyV2(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     action: Optional[str] = None,
                     listener_id: Optional[str] = None,
                     admin_state_up: Optional[bool] = None,
                     description: Optional[str] = None,
                     lb_l7policy_v2_id: Optional[str] = None,
                     name: Optional[str] = None,
                     position: Optional[float] = None,
                     redirect_listener_id: Optional[str] = None,
                     redirect_pool_id: Optional[str] = None,
                     region: Optional[str] = None,
                     tenant_id: Optional[str] = None,
                     timeouts: Optional[LbL7policyV2TimeoutsArgs] = None)
    func NewLbL7policyV2(ctx *Context, name string, args LbL7policyV2Args, opts ...ResourceOption) (*LbL7policyV2, error)
    public LbL7policyV2(string name, LbL7policyV2Args args, CustomResourceOptions? opts = null)
    public LbL7policyV2(String name, LbL7policyV2Args args)
    public LbL7policyV2(String name, LbL7policyV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:LbL7policyV2
    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 LbL7policyV2Args
    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 LbL7policyV2Args
    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 LbL7policyV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbL7policyV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbL7policyV2Args
    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 lbL7policyV2Resource = new Flexibleengine.LbL7policyV2("lbL7policyV2Resource", new()
    {
        Action = "string",
        ListenerId = "string",
        Description = "string",
        LbL7policyV2Id = "string",
        Name = "string",
        Position = 0,
        RedirectListenerId = "string",
        RedirectPoolId = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.LbL7policyV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := flexibleengine.NewLbL7policyV2(ctx, "lbL7policyV2Resource", &flexibleengine.LbL7policyV2Args{
    	Action:             pulumi.String("string"),
    	ListenerId:         pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	LbL7policyV2Id:     pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Position:           pulumi.Float64(0),
    	RedirectListenerId: pulumi.String("string"),
    	RedirectPoolId:     pulumi.String("string"),
    	Region:             pulumi.String("string"),
    	Timeouts: &flexibleengine.LbL7policyV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var lbL7policyV2Resource = new LbL7policyV2("lbL7policyV2Resource", LbL7policyV2Args.builder()
        .action("string")
        .listenerId("string")
        .description("string")
        .lbL7policyV2Id("string")
        .name("string")
        .position(0)
        .redirectListenerId("string")
        .redirectPoolId("string")
        .region("string")
        .timeouts(LbL7policyV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lb_l7policy_v2_resource = flexibleengine.LbL7policyV2("lbL7policyV2Resource",
        action="string",
        listener_id="string",
        description="string",
        lb_l7policy_v2_id="string",
        name="string",
        position=0,
        redirect_listener_id="string",
        redirect_pool_id="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lbL7policyV2Resource = new flexibleengine.LbL7policyV2("lbL7policyV2Resource", {
        action: "string",
        listenerId: "string",
        description: "string",
        lbL7policyV2Id: "string",
        name: "string",
        position: 0,
        redirectListenerId: "string",
        redirectPoolId: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: flexibleengine:LbL7policyV2
    properties:
        action: string
        description: string
        lbL7policyV2Id: string
        listenerId: string
        name: string
        position: 0
        redirectListenerId: string
        redirectPoolId: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
    

    LbL7policyV2 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 LbL7policyV2 resource accepts the following input properties:

    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    ListenerId string
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    AdminStateUp bool

    Deprecated: Deprecated

    Description string
    Human-readable description for the L7 Policy.
    LbL7policyV2Id string
    The unique ID for the L7 policy.
    Name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    Position double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    RedirectListenerId string
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbL7policyV2Timeouts
    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    ListenerId string
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    AdminStateUp bool

    Deprecated: Deprecated

    Description string
    Human-readable description for the L7 Policy.
    LbL7policyV2Id string
    The unique ID for the L7 policy.
    Name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    Position float64
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    RedirectListenerId string
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbL7policyV2TimeoutsArgs
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    listenerId String
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    adminStateUp Boolean

    Deprecated: Deprecated

    description String
    Human-readable description for the L7 Policy.
    lbL7policyV2Id String
    The unique ID for the L7 policy.
    name String
    Human-readable name for the L7 Policy. Does not have to be unique.
    position Double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirectListenerId String
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenantId String

    Deprecated: Deprecated

    timeouts LbL7policyV2Timeouts
    action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    listenerId string
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    adminStateUp boolean

    Deprecated: Deprecated

    description string
    Human-readable description for the L7 Policy.
    lbL7policyV2Id string
    The unique ID for the L7 policy.
    name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    position number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirectListenerId string
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenantId string

    Deprecated: Deprecated

    timeouts LbL7policyV2Timeouts
    action str
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    listener_id str
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    admin_state_up bool

    Deprecated: Deprecated

    description str
    Human-readable description for the L7 Policy.
    lb_l7policy_v2_id str
    The unique ID for the L7 policy.
    name str
    Human-readable name for the L7 Policy. Does not have to be unique.
    position float
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirect_listener_id str
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirect_pool_id str
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbL7policyV2TimeoutsArgs
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    listenerId String
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    adminStateUp Boolean

    Deprecated: Deprecated

    description String
    Human-readable description for the L7 Policy.
    lbL7policyV2Id String
    The unique ID for the L7 policy.
    name String
    Human-readable name for the L7 Policy. Does not have to be unique.
    position Number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirectListenerId String
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LbL7policyV2 Resource

    Get an existing LbL7policyV2 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?: LbL7policyV2State, opts?: CustomResourceOptions): LbL7policyV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            admin_state_up: Optional[bool] = None,
            description: Optional[str] = None,
            lb_l7policy_v2_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            name: Optional[str] = None,
            position: Optional[float] = None,
            redirect_listener_id: Optional[str] = None,
            redirect_pool_id: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[LbL7policyV2TimeoutsArgs] = None) -> LbL7policyV2
    func GetLbL7policyV2(ctx *Context, name string, id IDInput, state *LbL7policyV2State, opts ...ResourceOption) (*LbL7policyV2, error)
    public static LbL7policyV2 Get(string name, Input<string> id, LbL7policyV2State? state, CustomResourceOptions? opts = null)
    public static LbL7policyV2 get(String name, Output<String> id, LbL7policyV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LbL7policyV2    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:
    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    AdminStateUp bool

    Deprecated: Deprecated

    Description string
    Human-readable description for the L7 Policy.
    LbL7policyV2Id string
    The unique ID for the L7 policy.
    ListenerId string
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    Name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    Position double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    RedirectListenerId string
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbL7policyV2Timeouts
    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    AdminStateUp bool

    Deprecated: Deprecated

    Description string
    Human-readable description for the L7 Policy.
    LbL7policyV2Id string
    The unique ID for the L7 policy.
    ListenerId string
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    Name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    Position float64
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    RedirectListenerId string
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbL7policyV2TimeoutsArgs
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    adminStateUp Boolean

    Deprecated: Deprecated

    description String
    Human-readable description for the L7 Policy.
    lbL7policyV2Id String
    The unique ID for the L7 policy.
    listenerId String
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    name String
    Human-readable name for the L7 Policy. Does not have to be unique.
    position Double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirectListenerId String
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenantId String

    Deprecated: Deprecated

    timeouts LbL7policyV2Timeouts
    action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    adminStateUp boolean

    Deprecated: Deprecated

    description string
    Human-readable description for the L7 Policy.
    lbL7policyV2Id string
    The unique ID for the L7 policy.
    listenerId string
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    position number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirectListenerId string
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenantId string

    Deprecated: Deprecated

    timeouts LbL7policyV2Timeouts
    action str
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    admin_state_up bool

    Deprecated: Deprecated

    description str
    Human-readable description for the L7 Policy.
    lb_l7policy_v2_id str
    The unique ID for the L7 policy.
    listener_id str
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    name str
    Human-readable name for the L7 Policy. Does not have to be unique.
    position float
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirect_listener_id str
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirect_pool_id str
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbL7policyV2TimeoutsArgs
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new L7 Policy.
    adminStateUp Boolean

    Deprecated: Deprecated

    description String
    Human-readable description for the L7 Policy.
    lbL7policyV2Id String
    The unique ID for the L7 policy.
    listenerId String
    The Listener on which the L7 Policy will be associated with. Changing this creates a new L7 Policy.
    name String
    Human-readable name for the L7 Policy. Does not have to be unique.
    position Number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new L7 Policy.
    redirectListenerId String
    Requests matching this policy will be redirected to the listener with this ID. Only valid if action is REDIRECT_TO_LISTENER.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    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 Policy.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map

    Supporting Types

    LbL7policyV2Timeouts, LbL7policyV2TimeoutsArgs

    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 Policy can be imported using the L7 Policy ID, e.g.:

    $ pulumi import flexibleengine:index/lbL7policyV2:LbL7policyV2 l7policy_1 8a7a79c2-cf17-4e65-b2ae-ddc8bfcf6c74
    

    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