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

opentelekomcloud.LbL7policyV2

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 policy you can get at documentation portal

    Manages a Load Balancer L7 Policy resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const loadbalancer1 = new opentelekomcloud.LbLoadbalancerV2("loadbalancer1", {vipSubnetId: "SUBNET_ID"});
    const listener1 = new opentelekomcloud.LbListenerV2("listener1", {
        protocol: "HTTP",
        protocolPort: 8080,
        loadbalancerId: loadbalancer1.lbLoadbalancerV2Id,
    });
    const pool1 = new opentelekomcloud.LbPoolV2("pool1", {
        protocol: "HTTP",
        lbMethod: "ROUND_ROBIN",
        loadbalancerId: loadbalancer1.lbLoadbalancerV2Id,
    });
    const l7policy1 = new opentelekomcloud.LbL7policyV2("l7policy1", {
        action: "REDIRECT_TO_POOL",
        description: "test l7 policy",
        position: 1,
        listenerId: listener1.lbListenerV2Id,
        redirectPoolId: pool1.lbPoolV2Id,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    loadbalancer1 = opentelekomcloud.LbLoadbalancerV2("loadbalancer1", vip_subnet_id="SUBNET_ID")
    listener1 = opentelekomcloud.LbListenerV2("listener1",
        protocol="HTTP",
        protocol_port=8080,
        loadbalancer_id=loadbalancer1.lb_loadbalancer_v2_id)
    pool1 = opentelekomcloud.LbPoolV2("pool1",
        protocol="HTTP",
        lb_method="ROUND_ROBIN",
        loadbalancer_id=loadbalancer1.lb_loadbalancer_v2_id)
    l7policy1 = opentelekomcloud.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/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		loadbalancer1, err := opentelekomcloud.NewLbLoadbalancerV2(ctx, "loadbalancer1", &opentelekomcloud.LbLoadbalancerV2Args{
    			VipSubnetId: pulumi.String("SUBNET_ID"),
    		})
    		if err != nil {
    			return err
    		}
    		listener1, err := opentelekomcloud.NewLbListenerV2(ctx, "listener1", &opentelekomcloud.LbListenerV2Args{
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Float64(8080),
    			LoadbalancerId: loadbalancer1.LbLoadbalancerV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		pool1, err := opentelekomcloud.NewLbPoolV2(ctx, "pool1", &opentelekomcloud.LbPoolV2Args{
    			Protocol:       pulumi.String("HTTP"),
    			LbMethod:       pulumi.String("ROUND_ROBIN"),
    			LoadbalancerId: loadbalancer1.LbLoadbalancerV2Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbL7policyV2(ctx, "l7policy1", &opentelekomcloud.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 Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var loadbalancer1 = new Opentelekomcloud.LbLoadbalancerV2("loadbalancer1", new()
        {
            VipSubnetId = "SUBNET_ID",
        });
    
        var listener1 = new Opentelekomcloud.LbListenerV2("listener1", new()
        {
            Protocol = "HTTP",
            ProtocolPort = 8080,
            LoadbalancerId = loadbalancer1.LbLoadbalancerV2Id,
        });
    
        var pool1 = new Opentelekomcloud.LbPoolV2("pool1", new()
        {
            Protocol = "HTTP",
            LbMethod = "ROUND_ROBIN",
            LoadbalancerId = loadbalancer1.LbLoadbalancerV2Id,
        });
    
        var l7policy1 = new Opentelekomcloud.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.opentelekomcloud.LbLoadbalancerV2;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV2Args;
    import com.pulumi.opentelekomcloud.LbListenerV2;
    import com.pulumi.opentelekomcloud.LbListenerV2Args;
    import com.pulumi.opentelekomcloud.LbPoolV2;
    import com.pulumi.opentelekomcloud.LbPoolV2Args;
    import com.pulumi.opentelekomcloud.LbL7policyV2;
    import com.pulumi.opentelekomcloud.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("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: 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_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: opentelekomcloud: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 Opentelekomcloud.LbL7policyV2("lbL7policyV2Resource", new()
    {
        Action = "string",
        ListenerId = "string",
        AdminStateUp = false,
        Description = "string",
        LbL7policyV2Id = "string",
        Name = "string",
        Position = 0,
        RedirectListenerId = "string",
        RedirectPoolId = "string",
        Region = "string",
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.LbL7policyV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := opentelekomcloud.NewLbL7policyV2(ctx, "lbL7policyV2Resource", &opentelekomcloud.LbL7policyV2Args{
    	Action:             pulumi.String("string"),
    	ListenerId:         pulumi.String("string"),
    	AdminStateUp:       pulumi.Bool(false),
    	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"),
    	TenantId:           pulumi.String("string"),
    	Timeouts: &opentelekomcloud.LbL7policyV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var lbL7policyV2Resource = new LbL7policyV2("lbL7policyV2Resource", LbL7policyV2Args.builder()
        .action("string")
        .listenerId("string")
        .adminStateUp(false)
        .description("string")
        .lbL7policyV2Id("string")
        .name("string")
        .position(0)
        .redirectListenerId("string")
        .redirectPoolId("string")
        .region("string")
        .tenantId("string")
        .timeouts(LbL7policyV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lb_l7policy_v2_resource = opentelekomcloud.LbL7policyV2("lbL7policyV2Resource",
        action="string",
        listener_id="string",
        admin_state_up=False,
        description="string",
        lb_l7policy_v2_id="string",
        name="string",
        position=0,
        redirect_listener_id="string",
        redirect_pool_id="string",
        region="string",
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lbL7policyV2Resource = new opentelekomcloud.LbL7policyV2("lbL7policyV2Resource", {
        action: "string",
        listenerId: "string",
        adminStateUp: false,
        description: "string",
        lbL7policyV2Id: "string",
        name: "string",
        position: 0,
        redirectListenerId: "string",
        redirectPoolId: "string",
        region: "string",
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: opentelekomcloud:LbL7policyV2
    properties:
        action: string
        adminStateUp: false
        description: string
        lbL7policyV2Id: string
        listenerId: string
        name: string
        position: 0
        redirectListenerId: string
        redirectPoolId: string
        region: string
        tenantId: 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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenantId string
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenant_id str
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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: opentelekomcloud: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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    TenantId string
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenantId string
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenant_id str
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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
    The administrative state of the L7 Policy. This value can only be true (UP).
    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. If omitted, the region argument of the provider is used. Changing this creates a new L7 Policy.
    tenantId String
    Required for admins. The UUID of the tenant who owns the L7 Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new L7 Policy.
    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 opentelekomcloud:index/lbL7policyV2:LbL7policyV2 l7policy_1 8a7a79c2-cf17-4e65-b2ae-ddc8bfcf6c74
    

    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