1. Packages
  2. OpenStack
  3. API Docs
  4. loadbalancer
  5. L7PolicyV2
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

openstack.loadbalancer.L7PolicyV2

Explore with Pulumi AI

openstack logo
OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi

    Manages a Load Balancer L7 Policy resource within OpenStack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const network1 = new openstack.networking.Network("network1", {adminStateUp: true});
    const subnet1 = new openstack.networking.Subnet("subnet1", {
        cidr: "192.168.199.0/24",
        ipVersion: 4,
        networkId: network1.id,
    });
    const loadbalancer1 = new openstack.loadbalancer.LoadBalancer("loadbalancer1", {vipSubnetId: subnet1.id});
    const listener1 = new openstack.loadbalancer.Listener("listener1", {
        protocol: "HTTP",
        protocolPort: 8080,
        loadbalancerId: loadbalancer1.id,
    });
    const pool1 = new openstack.loadbalancer.Pool("pool1", {
        protocol: "HTTP",
        lbMethod: "ROUND_ROBIN",
        loadbalancerId: loadbalancer1.id,
    });
    const l7policy1 = new openstack.loadbalancer.L7PolicyV2("l7policy1", {
        action: "REDIRECT_TO_POOL",
        description: "test l7 policy",
        position: 1,
        listenerId: listener1.id,
        redirectPoolId: pool1.id,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    network1 = openstack.networking.Network("network1", admin_state_up=True)
    subnet1 = openstack.networking.Subnet("subnet1",
        cidr="192.168.199.0/24",
        ip_version=4,
        network_id=network1.id)
    loadbalancer1 = openstack.loadbalancer.LoadBalancer("loadbalancer1", vip_subnet_id=subnet1.id)
    listener1 = openstack.loadbalancer.Listener("listener1",
        protocol="HTTP",
        protocol_port=8080,
        loadbalancer_id=loadbalancer1.id)
    pool1 = openstack.loadbalancer.Pool("pool1",
        protocol="HTTP",
        lb_method="ROUND_ROBIN",
        loadbalancer_id=loadbalancer1.id)
    l7policy1 = openstack.loadbalancer.L7PolicyV2("l7policy1",
        action="REDIRECT_TO_POOL",
        description="test l7 policy",
        position=1,
        listener_id=listener1.id,
        redirect_pool_id=pool1.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/loadbalancer"
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/networking"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		network1, err := networking.NewNetwork(ctx, "network1", &networking.NetworkArgs{
    			AdminStateUp: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		subnet1, err := networking.NewSubnet(ctx, "subnet1", &networking.SubnetArgs{
    			Cidr:      pulumi.String("192.168.199.0/24"),
    			IpVersion: pulumi.Int(4),
    			NetworkId: network1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		loadbalancer1, err := loadbalancer.NewLoadBalancer(ctx, "loadbalancer1", &loadbalancer.LoadBalancerArgs{
    			VipSubnetId: subnet1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		listener1, err := loadbalancer.NewListener(ctx, "listener1", &loadbalancer.ListenerArgs{
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Int(8080),
    			LoadbalancerId: loadbalancer1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		pool1, err := loadbalancer.NewPool(ctx, "pool1", &loadbalancer.PoolArgs{
    			Protocol:       pulumi.String("HTTP"),
    			LbMethod:       pulumi.String("ROUND_ROBIN"),
    			LoadbalancerId: loadbalancer1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loadbalancer.NewL7PolicyV2(ctx, "l7policy1", &loadbalancer.L7PolicyV2Args{
    			Action:         pulumi.String("REDIRECT_TO_POOL"),
    			Description:    pulumi.String("test l7 policy"),
    			Position:       pulumi.Int(1),
    			ListenerId:     listener1.ID(),
    			RedirectPoolId: pool1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var network1 = new OpenStack.Networking.Network("network1", new()
        {
            AdminStateUp = true,
        });
    
        var subnet1 = new OpenStack.Networking.Subnet("subnet1", new()
        {
            Cidr = "192.168.199.0/24",
            IpVersion = 4,
            NetworkId = network1.Id,
        });
    
        var loadbalancer1 = new OpenStack.LoadBalancer.LoadBalancer("loadbalancer1", new()
        {
            VipSubnetId = subnet1.Id,
        });
    
        var listener1 = new OpenStack.LoadBalancer.Listener("listener1", new()
        {
            Protocol = "HTTP",
            ProtocolPort = 8080,
            LoadbalancerId = loadbalancer1.Id,
        });
    
        var pool1 = new OpenStack.LoadBalancer.Pool("pool1", new()
        {
            Protocol = "HTTP",
            LbMethod = "ROUND_ROBIN",
            LoadbalancerId = loadbalancer1.Id,
        });
    
        var l7policy1 = new OpenStack.LoadBalancer.L7PolicyV2("l7policy1", new()
        {
            Action = "REDIRECT_TO_POOL",
            Description = "test l7 policy",
            Position = 1,
            ListenerId = listener1.Id,
            RedirectPoolId = pool1.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.networking.Network;
    import com.pulumi.openstack.networking.NetworkArgs;
    import com.pulumi.openstack.networking.Subnet;
    import com.pulumi.openstack.networking.SubnetArgs;
    import com.pulumi.openstack.loadbalancer.LoadBalancer;
    import com.pulumi.openstack.loadbalancer.LoadBalancerArgs;
    import com.pulumi.openstack.loadbalancer.Listener;
    import com.pulumi.openstack.loadbalancer.ListenerArgs;
    import com.pulumi.openstack.loadbalancer.Pool;
    import com.pulumi.openstack.loadbalancer.PoolArgs;
    import com.pulumi.openstack.loadbalancer.L7PolicyV2;
    import com.pulumi.openstack.loadbalancer.L7PolicyV2Args;
    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 network1 = new Network("network1", NetworkArgs.builder()        
                .adminStateUp("true")
                .build());
    
            var subnet1 = new Subnet("subnet1", SubnetArgs.builder()        
                .cidr("192.168.199.0/24")
                .ipVersion(4)
                .networkId(network1.id())
                .build());
    
            var loadbalancer1 = new LoadBalancer("loadbalancer1", LoadBalancerArgs.builder()        
                .vipSubnetId(subnet1.id())
                .build());
    
            var listener1 = new Listener("listener1", ListenerArgs.builder()        
                .protocol("HTTP")
                .protocolPort(8080)
                .loadbalancerId(loadbalancer1.id())
                .build());
    
            var pool1 = new Pool("pool1", PoolArgs.builder()        
                .protocol("HTTP")
                .lbMethod("ROUND_ROBIN")
                .loadbalancerId(loadbalancer1.id())
                .build());
    
            var l7policy1 = new L7PolicyV2("l7policy1", L7PolicyV2Args.builder()        
                .action("REDIRECT_TO_POOL")
                .description("test l7 policy")
                .position(1)
                .listenerId(listener1.id())
                .redirectPoolId(pool1.id())
                .build());
    
        }
    }
    
    resources:
      network1:
        type: openstack:networking:Network
        properties:
          adminStateUp: 'true'
      subnet1:
        type: openstack:networking:Subnet
        properties:
          cidr: 192.168.199.0/24
          ipVersion: 4
          networkId: ${network1.id}
      loadbalancer1:
        type: openstack:loadbalancer:LoadBalancer
        properties:
          vipSubnetId: ${subnet1.id}
      listener1:
        type: openstack:loadbalancer:Listener
        properties:
          protocol: HTTP
          protocolPort: 8080
          loadbalancerId: ${loadbalancer1.id}
      pool1:
        type: openstack:loadbalancer:Pool
        properties:
          protocol: HTTP
          lbMethod: ROUND_ROBIN
          loadbalancerId: ${loadbalancer1.id}
      l7policy1:
        type: openstack:loadbalancer:L7PolicyV2
        properties:
          action: REDIRECT_TO_POOL
          description: test l7 policy
          position: 1
          listenerId: ${listener1.id}
          redirectPoolId: ${pool1.id}
    

    Create L7PolicyV2 Resource

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

    Constructor syntax

    new L7PolicyV2(name: string, args: L7PolicyV2Args, opts?: CustomResourceOptions);
    @overload
    def L7PolicyV2(resource_name: str,
                   args: L7PolicyV2Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def L7PolicyV2(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,
                   name: Optional[str] = None,
                   position: Optional[int] = None,
                   redirect_pool_id: Optional[str] = None,
                   redirect_url: Optional[str] = None,
                   region: Optional[str] = None,
                   tenant_id: Optional[str] = None)
    func NewL7PolicyV2(ctx *Context, name string, args L7PolicyV2Args, opts ...ResourceOption) (*L7PolicyV2, error)
    public L7PolicyV2(string name, L7PolicyV2Args args, CustomResourceOptions? opts = null)
    public L7PolicyV2(String name, L7PolicyV2Args args)
    public L7PolicyV2(String name, L7PolicyV2Args args, CustomResourceOptions options)
    
    type: openstack:loadbalancer:L7PolicyV2
    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 L7PolicyV2Args
    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 L7PolicyV2Args
    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 L7PolicyV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args L7PolicyV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args L7PolicyV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var l7policyV2Resource = new OpenStack.LoadBalancer.L7PolicyV2("l7policyV2Resource", new()
    {
        Action = "string",
        ListenerId = "string",
        AdminStateUp = false,
        Description = "string",
        Name = "string",
        Position = 0,
        RedirectPoolId = "string",
        RedirectUrl = "string",
        Region = "string",
        TenantId = "string",
    });
    
    example, err := loadbalancer.NewL7PolicyV2(ctx, "l7policyV2Resource", &loadbalancer.L7PolicyV2Args{
    	Action:         pulumi.String("string"),
    	ListenerId:     pulumi.String("string"),
    	AdminStateUp:   pulumi.Bool(false),
    	Description:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Position:       pulumi.Int(0),
    	RedirectPoolId: pulumi.String("string"),
    	RedirectUrl:    pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	TenantId:       pulumi.String("string"),
    })
    
    var l7policyV2Resource = new L7PolicyV2("l7policyV2Resource", L7PolicyV2Args.builder()        
        .action("string")
        .listenerId("string")
        .adminStateUp(false)
        .description("string")
        .name("string")
        .position(0)
        .redirectPoolId("string")
        .redirectUrl("string")
        .region("string")
        .tenantId("string")
        .build());
    
    l7policy_v2_resource = openstack.loadbalancer.L7PolicyV2("l7policyV2Resource",
        action="string",
        listener_id="string",
        admin_state_up=False,
        description="string",
        name="string",
        position=0,
        redirect_pool_id="string",
        redirect_url="string",
        region="string",
        tenant_id="string")
    
    const l7policyV2Resource = new openstack.loadbalancer.L7PolicyV2("l7policyV2Resource", {
        action: "string",
        listenerId: "string",
        adminStateUp: false,
        description: "string",
        name: "string",
        position: 0,
        redirectPoolId: "string",
        redirectUrl: "string",
        region: "string",
        tenantId: "string",
    });
    
    type: openstack:loadbalancer:L7PolicyV2
    properties:
        action: string
        adminStateUp: false
        description: string
        listenerId: string
        name: string
        position: 0
        redirectPoolId: string
        redirectUrl: string
        region: string
        tenantId: string
    

    L7PolicyV2 Resource Properties

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

    Inputs

    The L7PolicyV2 resource accepts the following input properties:

    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    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. A valid value is true (UP) or false (DOWN).
    Description string
    Human-readable description for the L7 Policy.
    Name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    Position int
    The position of this policy on the listener. Positions start at 1.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    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. A valid value is true (UP) or false (DOWN).
    Description string
    Human-readable description for the L7 Policy.
    Name string
    Human-readable name for the L7 Policy. Does not have to be unique.
    Position int
    The position of this policy on the listener. Positions start at 1.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    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. A valid value is true (UP) or false (DOWN).
    description String
    Human-readable description for the L7 Policy.
    name String
    Human-readable name for the L7 Policy. Does not have to be unique.
    position Integer
    The position of this policy on the listener. Positions start at 1.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    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. A valid value is true (UP) or false (DOWN).
    description string
    Human-readable description 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.
    redirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    redirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action str
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    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. A valid value is true (UP) or false (DOWN).
    description str
    Human-readable description for the L7 Policy.
    name str
    Human-readable name for the L7 Policy. Does not have to be unique.
    position int
    The position of this policy on the listener. Positions start at 1.
    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.
    redirect_url str
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    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. A valid value is true (UP) or false (DOWN).
    description String
    Human-readable description 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.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the L7PolicyV2 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 L7PolicyV2 Resource

    Get an existing L7PolicyV2 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?: L7PolicyV2State, opts?: CustomResourceOptions): L7PolicyV2
    @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,
            listener_id: Optional[str] = None,
            name: Optional[str] = None,
            position: Optional[int] = None,
            redirect_pool_id: Optional[str] = None,
            redirect_url: Optional[str] = None,
            region: Optional[str] = None,
            tenant_id: Optional[str] = None) -> L7PolicyV2
    func GetL7PolicyV2(ctx *Context, name string, id IDInput, state *L7PolicyV2State, opts ...ResourceOption) (*L7PolicyV2, error)
    public static L7PolicyV2 Get(string name, Input<string> id, L7PolicyV2State? state, CustomResourceOptions? opts = null)
    public static L7PolicyV2 get(String name, Output<String> id, L7PolicyV2State state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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, REDIRECT_TO_URL or REJECT.
    AdminStateUp bool
    The administrative state of the L7 Policy. A valid value is true (UP) or false (DOWN).
    Description string
    Human-readable description 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 int
    The position of this policy on the listener. Positions start at 1.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    Action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    AdminStateUp bool
    The administrative state of the L7 Policy. A valid value is true (UP) or false (DOWN).
    Description string
    Human-readable description 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 int
    The position of this policy on the listener. Positions start at 1.
    RedirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    RedirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    adminStateUp Boolean
    The administrative state of the L7 Policy. A valid value is true (UP) or false (DOWN).
    description String
    Human-readable description 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 Integer
    The position of this policy on the listener. Positions start at 1.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action string
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    adminStateUp boolean
    The administrative state of the L7 Policy. A valid value is true (UP) or false (DOWN).
    description string
    Human-readable description 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.
    redirectPoolId string
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    redirectUrl string
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action str
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    admin_state_up bool
    The administrative state of the L7 Policy. A valid value is true (UP) or false (DOWN).
    description str
    Human-readable description 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 int
    The position of this policy on the listener. Positions start at 1.
    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.
    redirect_url str
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.
    action String
    The L7 Policy action - can either be REDIRECT_TO_POOL, REDIRECT_TO_URL or REJECT.
    adminStateUp Boolean
    The administrative state of the L7 Policy. A valid value is true (UP) or false (DOWN).
    description String
    Human-readable description 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.
    redirectPoolId String
    Requests matching this policy will be redirected to the pool with this ID. Only valid if action is REDIRECT_TO_POOL.
    redirectUrl String
    Requests matching this policy will be redirected to this URL. Only valid if action is REDIRECT_TO_URL.
    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
    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.

    Import

    Load Balancer L7 Policy can be imported using the L7 Policy ID, e.g.:

    $ pulumi import openstack:loadbalancer/l7PolicyV2:L7PolicyV2 l7policy_1 8a7a79c2-cf17-4e65-b2ae-ddc8bfcf6c74
    

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

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.2 published on Friday, Mar 29, 2024 by Pulumi