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

opentelekomcloud.LbPolicyV3

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

    Manages a Dedicated Load Balancer Policy resource within OpenTelekomCloud.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const thisLbLoadbalancerV3 = new opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3", {
        routerId: _var.router_id,
        networkIds: [_var.network_id],
        availabilityZones: [_var.az],
    });
    const thisLbListenerV3 = new opentelekomcloud.LbListenerV3("thisLbListenerV3", {
        loadbalancerId: thisLbLoadbalancerV3.lbLoadbalancerV3Id,
        protocol: "HTTP",
        protocolPort: 8080,
    });
    const thisLbPoolV3 = new opentelekomcloud.LbPoolV3("thisLbPoolV3", {
        loadbalancerId: thisLbLoadbalancerV3.lbLoadbalancerV3Id,
        lbAlgorithm: "ROUND_ROBIN",
        protocol: "HTTP",
    });
    const thisLbPolicyV3 = new opentelekomcloud.LbPolicyV3("thisLbPolicyV3", {
        action: "REDIRECT_TO_POOL",
        listenerId: thisLbListenerV3.lbListenerV3Id,
        redirectPoolId: thisLbPoolV3.lbPoolV3Id,
        position: 37,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    this_lb_loadbalancer_v3 = opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3",
        router_id=var["router_id"],
        network_ids=[var["network_id"]],
        availability_zones=[var["az"]])
    this_lb_listener_v3 = opentelekomcloud.LbListenerV3("thisLbListenerV3",
        loadbalancer_id=this_lb_loadbalancer_v3.lb_loadbalancer_v3_id,
        protocol="HTTP",
        protocol_port=8080)
    this_lb_pool_v3 = opentelekomcloud.LbPoolV3("thisLbPoolV3",
        loadbalancer_id=this_lb_loadbalancer_v3.lb_loadbalancer_v3_id,
        lb_algorithm="ROUND_ROBIN",
        protocol="HTTP")
    this_lb_policy_v3 = opentelekomcloud.LbPolicyV3("thisLbPolicyV3",
        action="REDIRECT_TO_POOL",
        listener_id=this_lb_listener_v3.lb_listener_v3_id,
        redirect_pool_id=this_lb_pool_v3.lb_pool_v3_id,
        position=37)
    
    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 {
    		thisLbLoadbalancerV3, err := opentelekomcloud.NewLbLoadbalancerV3(ctx, "thisLbLoadbalancerV3", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(_var.Router_id),
    			NetworkIds: pulumi.StringArray{
    				_var.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				_var.Az,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		thisLbListenerV3, err := opentelekomcloud.NewLbListenerV3(ctx, "thisLbListenerV3", &opentelekomcloud.LbListenerV3Args{
    			LoadbalancerId: thisLbLoadbalancerV3.LbLoadbalancerV3Id,
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Float64(8080),
    		})
    		if err != nil {
    			return err
    		}
    		thisLbPoolV3, err := opentelekomcloud.NewLbPoolV3(ctx, "thisLbPoolV3", &opentelekomcloud.LbPoolV3Args{
    			LoadbalancerId: thisLbLoadbalancerV3.LbLoadbalancerV3Id,
    			LbAlgorithm:    pulumi.String("ROUND_ROBIN"),
    			Protocol:       pulumi.String("HTTP"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbPolicyV3(ctx, "thisLbPolicyV3", &opentelekomcloud.LbPolicyV3Args{
    			Action:         pulumi.String("REDIRECT_TO_POOL"),
    			ListenerId:     thisLbListenerV3.LbListenerV3Id,
    			RedirectPoolId: thisLbPoolV3.LbPoolV3Id,
    			Position:       pulumi.Float64(37),
    		})
    		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 thisLbLoadbalancerV3 = new Opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3", new()
        {
            RouterId = @var.Router_id,
            NetworkIds = new[]
            {
                @var.Network_id,
            },
            AvailabilityZones = new[]
            {
                @var.Az,
            },
        });
    
        var thisLbListenerV3 = new Opentelekomcloud.LbListenerV3("thisLbListenerV3", new()
        {
            LoadbalancerId = thisLbLoadbalancerV3.LbLoadbalancerV3Id,
            Protocol = "HTTP",
            ProtocolPort = 8080,
        });
    
        var thisLbPoolV3 = new Opentelekomcloud.LbPoolV3("thisLbPoolV3", new()
        {
            LoadbalancerId = thisLbLoadbalancerV3.LbLoadbalancerV3Id,
            LbAlgorithm = "ROUND_ROBIN",
            Protocol = "HTTP",
        });
    
        var thisLbPolicyV3 = new Opentelekomcloud.LbPolicyV3("thisLbPolicyV3", new()
        {
            Action = "REDIRECT_TO_POOL",
            ListenerId = thisLbListenerV3.LbListenerV3Id,
            RedirectPoolId = thisLbPoolV3.LbPoolV3Id,
            Position = 37,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.LbListenerV3;
    import com.pulumi.opentelekomcloud.LbListenerV3Args;
    import com.pulumi.opentelekomcloud.LbPoolV3;
    import com.pulumi.opentelekomcloud.LbPoolV3Args;
    import com.pulumi.opentelekomcloud.LbPolicyV3;
    import com.pulumi.opentelekomcloud.LbPolicyV3Args;
    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 thisLbLoadbalancerV3 = new LbLoadbalancerV3("thisLbLoadbalancerV3", LbLoadbalancerV3Args.builder()
                .routerId(var_.router_id())
                .networkIds(var_.network_id())
                .availabilityZones(var_.az())
                .build());
    
            var thisLbListenerV3 = new LbListenerV3("thisLbListenerV3", LbListenerV3Args.builder()
                .loadbalancerId(thisLbLoadbalancerV3.lbLoadbalancerV3Id())
                .protocol("HTTP")
                .protocolPort(8080)
                .build());
    
            var thisLbPoolV3 = new LbPoolV3("thisLbPoolV3", LbPoolV3Args.builder()
                .loadbalancerId(thisLbLoadbalancerV3.lbLoadbalancerV3Id())
                .lbAlgorithm("ROUND_ROBIN")
                .protocol("HTTP")
                .build());
    
            var thisLbPolicyV3 = new LbPolicyV3("thisLbPolicyV3", LbPolicyV3Args.builder()
                .action("REDIRECT_TO_POOL")
                .listenerId(thisLbListenerV3.lbListenerV3Id())
                .redirectPoolId(thisLbPoolV3.lbPoolV3Id())
                .position(37)
                .build());
    
        }
    }
    
    resources:
      thisLbLoadbalancerV3:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${var.router_id}
          networkIds:
            - ${var.network_id}
          availabilityZones:
            - ${var.az}
      thisLbListenerV3:
        type: opentelekomcloud:LbListenerV3
        properties:
          loadbalancerId: ${thisLbLoadbalancerV3.lbLoadbalancerV3Id}
          protocol: HTTP
          protocolPort: 8080
      thisLbPoolV3:
        type: opentelekomcloud:LbPoolV3
        properties:
          loadbalancerId: ${thisLbLoadbalancerV3.lbLoadbalancerV3Id}
          lbAlgorithm: ROUND_ROBIN
          protocol: HTTP
      thisLbPolicyV3:
        type: opentelekomcloud:LbPolicyV3
        properties:
          action: REDIRECT_TO_POOL
          listenerId: ${thisLbListenerV3.lbListenerV3Id}
          redirectPoolId: ${thisLbPoolV3.lbPoolV3Id}
          position: 37
    

    Fixed Response Example

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const thisLbLoadbalancerV3 = new opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3", {
        routerId: _var.router_id,
        networkIds: [_var.network_id],
        availabilityZones: [_var.az],
    });
    const thisLbListenerV3 = new opentelekomcloud.LbListenerV3("thisLbListenerV3", {
        loadbalancerId: thisLbLoadbalancerV3.lbLoadbalancerV3Id,
        protocol: "HTTP",
        protocolPort: 8080,
        advancedForwarding: true,
    });
    const thisLbPoolV3 = new opentelekomcloud.LbPoolV3("thisLbPoolV3", {
        loadbalancerId: thisLbLoadbalancerV3.lbLoadbalancerV3Id,
        lbAlgorithm: "ROUND_ROBIN",
        protocol: "HTTP",
    });
    const thisLbPolicyV3 = new opentelekomcloud.LbPolicyV3("thisLbPolicyV3", {
        action: "FIXED_RESPONSE",
        listenerId: thisLbListenerV3.lbListenerV3Id,
        position: 37,
        priority: 10,
        fixedResponseConfig: {
            statusCode: "200",
            contentType: "text/plain",
            messageBody: "Fixed Response",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    this_lb_loadbalancer_v3 = opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3",
        router_id=var["router_id"],
        network_ids=[var["network_id"]],
        availability_zones=[var["az"]])
    this_lb_listener_v3 = opentelekomcloud.LbListenerV3("thisLbListenerV3",
        loadbalancer_id=this_lb_loadbalancer_v3.lb_loadbalancer_v3_id,
        protocol="HTTP",
        protocol_port=8080,
        advanced_forwarding=True)
    this_lb_pool_v3 = opentelekomcloud.LbPoolV3("thisLbPoolV3",
        loadbalancer_id=this_lb_loadbalancer_v3.lb_loadbalancer_v3_id,
        lb_algorithm="ROUND_ROBIN",
        protocol="HTTP")
    this_lb_policy_v3 = opentelekomcloud.LbPolicyV3("thisLbPolicyV3",
        action="FIXED_RESPONSE",
        listener_id=this_lb_listener_v3.lb_listener_v3_id,
        position=37,
        priority=10,
        fixed_response_config={
            "status_code": "200",
            "content_type": "text/plain",
            "message_body": "Fixed Response",
        })
    
    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 {
    		thisLbLoadbalancerV3, err := opentelekomcloud.NewLbLoadbalancerV3(ctx, "thisLbLoadbalancerV3", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(_var.Router_id),
    			NetworkIds: pulumi.StringArray{
    				_var.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				_var.Az,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		thisLbListenerV3, err := opentelekomcloud.NewLbListenerV3(ctx, "thisLbListenerV3", &opentelekomcloud.LbListenerV3Args{
    			LoadbalancerId:     thisLbLoadbalancerV3.LbLoadbalancerV3Id,
    			Protocol:           pulumi.String("HTTP"),
    			ProtocolPort:       pulumi.Float64(8080),
    			AdvancedForwarding: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbPoolV3(ctx, "thisLbPoolV3", &opentelekomcloud.LbPoolV3Args{
    			LoadbalancerId: thisLbLoadbalancerV3.LbLoadbalancerV3Id,
    			LbAlgorithm:    pulumi.String("ROUND_ROBIN"),
    			Protocol:       pulumi.String("HTTP"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbPolicyV3(ctx, "thisLbPolicyV3", &opentelekomcloud.LbPolicyV3Args{
    			Action:     pulumi.String("FIXED_RESPONSE"),
    			ListenerId: thisLbListenerV3.LbListenerV3Id,
    			Position:   pulumi.Float64(37),
    			Priority:   pulumi.Float64(10),
    			FixedResponseConfig: &opentelekomcloud.LbPolicyV3FixedResponseConfigArgs{
    				StatusCode:  pulumi.String("200"),
    				ContentType: pulumi.String("text/plain"),
    				MessageBody: pulumi.String("Fixed Response"),
    			},
    		})
    		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 thisLbLoadbalancerV3 = new Opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3", new()
        {
            RouterId = @var.Router_id,
            NetworkIds = new[]
            {
                @var.Network_id,
            },
            AvailabilityZones = new[]
            {
                @var.Az,
            },
        });
    
        var thisLbListenerV3 = new Opentelekomcloud.LbListenerV3("thisLbListenerV3", new()
        {
            LoadbalancerId = thisLbLoadbalancerV3.LbLoadbalancerV3Id,
            Protocol = "HTTP",
            ProtocolPort = 8080,
            AdvancedForwarding = true,
        });
    
        var thisLbPoolV3 = new Opentelekomcloud.LbPoolV3("thisLbPoolV3", new()
        {
            LoadbalancerId = thisLbLoadbalancerV3.LbLoadbalancerV3Id,
            LbAlgorithm = "ROUND_ROBIN",
            Protocol = "HTTP",
        });
    
        var thisLbPolicyV3 = new Opentelekomcloud.LbPolicyV3("thisLbPolicyV3", new()
        {
            Action = "FIXED_RESPONSE",
            ListenerId = thisLbListenerV3.LbListenerV3Id,
            Position = 37,
            Priority = 10,
            FixedResponseConfig = new Opentelekomcloud.Inputs.LbPolicyV3FixedResponseConfigArgs
            {
                StatusCode = "200",
                ContentType = "text/plain",
                MessageBody = "Fixed Response",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.LbListenerV3;
    import com.pulumi.opentelekomcloud.LbListenerV3Args;
    import com.pulumi.opentelekomcloud.LbPoolV3;
    import com.pulumi.opentelekomcloud.LbPoolV3Args;
    import com.pulumi.opentelekomcloud.LbPolicyV3;
    import com.pulumi.opentelekomcloud.LbPolicyV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbPolicyV3FixedResponseConfigArgs;
    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 thisLbLoadbalancerV3 = new LbLoadbalancerV3("thisLbLoadbalancerV3", LbLoadbalancerV3Args.builder()
                .routerId(var_.router_id())
                .networkIds(var_.network_id())
                .availabilityZones(var_.az())
                .build());
    
            var thisLbListenerV3 = new LbListenerV3("thisLbListenerV3", LbListenerV3Args.builder()
                .loadbalancerId(thisLbLoadbalancerV3.lbLoadbalancerV3Id())
                .protocol("HTTP")
                .protocolPort(8080)
                .advancedForwarding(true)
                .build());
    
            var thisLbPoolV3 = new LbPoolV3("thisLbPoolV3", LbPoolV3Args.builder()
                .loadbalancerId(thisLbLoadbalancerV3.lbLoadbalancerV3Id())
                .lbAlgorithm("ROUND_ROBIN")
                .protocol("HTTP")
                .build());
    
            var thisLbPolicyV3 = new LbPolicyV3("thisLbPolicyV3", LbPolicyV3Args.builder()
                .action("FIXED_RESPONSE")
                .listenerId(thisLbListenerV3.lbListenerV3Id())
                .position(37)
                .priority(10)
                .fixedResponseConfig(LbPolicyV3FixedResponseConfigArgs.builder()
                    .statusCode("200")
                    .contentType("text/plain")
                    .messageBody("Fixed Response")
                    .build())
                .build());
    
        }
    }
    
    resources:
      thisLbLoadbalancerV3:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${var.router_id}
          networkIds:
            - ${var.network_id}
          availabilityZones:
            - ${var.az}
      thisLbListenerV3:
        type: opentelekomcloud:LbListenerV3
        properties:
          loadbalancerId: ${thisLbLoadbalancerV3.lbLoadbalancerV3Id}
          protocol: HTTP
          protocolPort: 8080
          advancedForwarding: true
      thisLbPoolV3:
        type: opentelekomcloud:LbPoolV3
        properties:
          loadbalancerId: ${thisLbLoadbalancerV3.lbLoadbalancerV3Id}
          lbAlgorithm: ROUND_ROBIN
          protocol: HTTP
      thisLbPolicyV3:
        type: opentelekomcloud:LbPolicyV3
        properties:
          action: FIXED_RESPONSE
          listenerId: ${thisLbListenerV3.lbListenerV3Id}
          position: 37
          priority: 10
          fixedResponseConfig:
            statusCode: '200'
            contentType: text/plain
            messageBody: Fixed Response
    

    Redirect To Url Example

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const thisLbLoadbalancerV3 = new opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3", {
        routerId: _var.router_id,
        networkIds: [_var.network_id],
        availabilityZones: [_var.az],
    });
    const thisLbListenerV3 = new opentelekomcloud.LbListenerV3("thisLbListenerV3", {
        loadbalancerId: thisLbLoadbalancerV3.lbLoadbalancerV3Id,
        protocol: "HTTP",
        protocolPort: 8080,
        advancedForwarding: true,
    });
    const thisLbPoolV3 = new opentelekomcloud.LbPoolV3("thisLbPoolV3", {
        loadbalancerId: thisLbLoadbalancerV3.lbLoadbalancerV3Id,
        lbAlgorithm: "ROUND_ROBIN",
        protocol: "HTTP",
    });
    const thisLbPolicyV3 = new opentelekomcloud.LbPolicyV3("thisLbPolicyV3", {
        action: "REDIRECT_TO_URL",
        listenerId: thisLbListenerV3.lbListenerV3Id,
        position: 37,
        priority: 10,
        redirectUrl: "https://www.google.com:443",
        redirectUrlConfig: {
            statusCode: "301",
            query: "name=my_name",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    this_lb_loadbalancer_v3 = opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3",
        router_id=var["router_id"],
        network_ids=[var["network_id"]],
        availability_zones=[var["az"]])
    this_lb_listener_v3 = opentelekomcloud.LbListenerV3("thisLbListenerV3",
        loadbalancer_id=this_lb_loadbalancer_v3.lb_loadbalancer_v3_id,
        protocol="HTTP",
        protocol_port=8080,
        advanced_forwarding=True)
    this_lb_pool_v3 = opentelekomcloud.LbPoolV3("thisLbPoolV3",
        loadbalancer_id=this_lb_loadbalancer_v3.lb_loadbalancer_v3_id,
        lb_algorithm="ROUND_ROBIN",
        protocol="HTTP")
    this_lb_policy_v3 = opentelekomcloud.LbPolicyV3("thisLbPolicyV3",
        action="REDIRECT_TO_URL",
        listener_id=this_lb_listener_v3.lb_listener_v3_id,
        position=37,
        priority=10,
        redirect_url="https://www.google.com:443",
        redirect_url_config={
            "status_code": "301",
            "query": "name=my_name",
        })
    
    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 {
    		thisLbLoadbalancerV3, err := opentelekomcloud.NewLbLoadbalancerV3(ctx, "thisLbLoadbalancerV3", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(_var.Router_id),
    			NetworkIds: pulumi.StringArray{
    				_var.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				_var.Az,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		thisLbListenerV3, err := opentelekomcloud.NewLbListenerV3(ctx, "thisLbListenerV3", &opentelekomcloud.LbListenerV3Args{
    			LoadbalancerId:     thisLbLoadbalancerV3.LbLoadbalancerV3Id,
    			Protocol:           pulumi.String("HTTP"),
    			ProtocolPort:       pulumi.Float64(8080),
    			AdvancedForwarding: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbPoolV3(ctx, "thisLbPoolV3", &opentelekomcloud.LbPoolV3Args{
    			LoadbalancerId: thisLbLoadbalancerV3.LbLoadbalancerV3Id,
    			LbAlgorithm:    pulumi.String("ROUND_ROBIN"),
    			Protocol:       pulumi.String("HTTP"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbPolicyV3(ctx, "thisLbPolicyV3", &opentelekomcloud.LbPolicyV3Args{
    			Action:      pulumi.String("REDIRECT_TO_URL"),
    			ListenerId:  thisLbListenerV3.LbListenerV3Id,
    			Position:    pulumi.Float64(37),
    			Priority:    pulumi.Float64(10),
    			RedirectUrl: pulumi.String("https://www.google.com:443"),
    			RedirectUrlConfig: &opentelekomcloud.LbPolicyV3RedirectUrlConfigArgs{
    				StatusCode: pulumi.String("301"),
    				Query:      pulumi.String("name=my_name"),
    			},
    		})
    		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 thisLbLoadbalancerV3 = new Opentelekomcloud.LbLoadbalancerV3("thisLbLoadbalancerV3", new()
        {
            RouterId = @var.Router_id,
            NetworkIds = new[]
            {
                @var.Network_id,
            },
            AvailabilityZones = new[]
            {
                @var.Az,
            },
        });
    
        var thisLbListenerV3 = new Opentelekomcloud.LbListenerV3("thisLbListenerV3", new()
        {
            LoadbalancerId = thisLbLoadbalancerV3.LbLoadbalancerV3Id,
            Protocol = "HTTP",
            ProtocolPort = 8080,
            AdvancedForwarding = true,
        });
    
        var thisLbPoolV3 = new Opentelekomcloud.LbPoolV3("thisLbPoolV3", new()
        {
            LoadbalancerId = thisLbLoadbalancerV3.LbLoadbalancerV3Id,
            LbAlgorithm = "ROUND_ROBIN",
            Protocol = "HTTP",
        });
    
        var thisLbPolicyV3 = new Opentelekomcloud.LbPolicyV3("thisLbPolicyV3", new()
        {
            Action = "REDIRECT_TO_URL",
            ListenerId = thisLbListenerV3.LbListenerV3Id,
            Position = 37,
            Priority = 10,
            RedirectUrl = "https://www.google.com:443",
            RedirectUrlConfig = new Opentelekomcloud.Inputs.LbPolicyV3RedirectUrlConfigArgs
            {
                StatusCode = "301",
                Query = "name=my_name",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.LbListenerV3;
    import com.pulumi.opentelekomcloud.LbListenerV3Args;
    import com.pulumi.opentelekomcloud.LbPoolV3;
    import com.pulumi.opentelekomcloud.LbPoolV3Args;
    import com.pulumi.opentelekomcloud.LbPolicyV3;
    import com.pulumi.opentelekomcloud.LbPolicyV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbPolicyV3RedirectUrlConfigArgs;
    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 thisLbLoadbalancerV3 = new LbLoadbalancerV3("thisLbLoadbalancerV3", LbLoadbalancerV3Args.builder()
                .routerId(var_.router_id())
                .networkIds(var_.network_id())
                .availabilityZones(var_.az())
                .build());
    
            var thisLbListenerV3 = new LbListenerV3("thisLbListenerV3", LbListenerV3Args.builder()
                .loadbalancerId(thisLbLoadbalancerV3.lbLoadbalancerV3Id())
                .protocol("HTTP")
                .protocolPort(8080)
                .advancedForwarding(true)
                .build());
    
            var thisLbPoolV3 = new LbPoolV3("thisLbPoolV3", LbPoolV3Args.builder()
                .loadbalancerId(thisLbLoadbalancerV3.lbLoadbalancerV3Id())
                .lbAlgorithm("ROUND_ROBIN")
                .protocol("HTTP")
                .build());
    
            var thisLbPolicyV3 = new LbPolicyV3("thisLbPolicyV3", LbPolicyV3Args.builder()
                .action("REDIRECT_TO_URL")
                .listenerId(thisLbListenerV3.lbListenerV3Id())
                .position(37)
                .priority(10)
                .redirectUrl("https://www.google.com:443")
                .redirectUrlConfig(LbPolicyV3RedirectUrlConfigArgs.builder()
                    .statusCode("301")
                    .query("name=my_name")
                    .build())
                .build());
    
        }
    }
    
    resources:
      thisLbLoadbalancerV3:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${var.router_id}
          networkIds:
            - ${var.network_id}
          availabilityZones:
            - ${var.az}
      thisLbListenerV3:
        type: opentelekomcloud:LbListenerV3
        properties:
          loadbalancerId: ${thisLbLoadbalancerV3.lbLoadbalancerV3Id}
          protocol: HTTP
          protocolPort: 8080
          advancedForwarding: true
      thisLbPoolV3:
        type: opentelekomcloud:LbPoolV3
        properties:
          loadbalancerId: ${thisLbLoadbalancerV3.lbLoadbalancerV3Id}
          lbAlgorithm: ROUND_ROBIN
          protocol: HTTP
      thisLbPolicyV3:
        type: opentelekomcloud:LbPolicyV3
        properties:
          action: REDIRECT_TO_URL
          listenerId: ${thisLbListenerV3.lbListenerV3Id}
          position: 37
          priority: 10
          redirectUrl: https://www.google.com:443
          redirectUrlConfig:
            statusCode: '301'
            query: name=my_name
    

    Create LbPolicyV3 Resource

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

    Constructor syntax

    new LbPolicyV3(name: string, args: LbPolicyV3Args, opts?: CustomResourceOptions);
    @overload
    def LbPolicyV3(resource_name: str,
                   args: LbPolicyV3Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbPolicyV3(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   listener_id: Optional[str] = None,
                   action: Optional[str] = None,
                   position: Optional[float] = None,
                   lb_policy_v3_id: Optional[str] = None,
                   fixed_response_config: Optional[LbPolicyV3FixedResponseConfigArgs] = None,
                   name: Optional[str] = None,
                   description: Optional[str] = None,
                   priority: Optional[float] = None,
                   project_id: Optional[str] = None,
                   redirect_listener_id: Optional[str] = None,
                   redirect_pool_id: Optional[str] = None,
                   redirect_pools_configs: Optional[Sequence[LbPolicyV3RedirectPoolsConfigArgs]] = None,
                   redirect_url: Optional[str] = None,
                   redirect_url_config: Optional[LbPolicyV3RedirectUrlConfigArgs] = None,
                   rules: Optional[Sequence[LbPolicyV3RuleArgs]] = None)
    func NewLbPolicyV3(ctx *Context, name string, args LbPolicyV3Args, opts ...ResourceOption) (*LbPolicyV3, error)
    public LbPolicyV3(string name, LbPolicyV3Args args, CustomResourceOptions? opts = null)
    public LbPolicyV3(String name, LbPolicyV3Args args)
    public LbPolicyV3(String name, LbPolicyV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LbPolicyV3
    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 LbPolicyV3Args
    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 LbPolicyV3Args
    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 LbPolicyV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbPolicyV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbPolicyV3Args
    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 lbPolicyV3Resource = new Opentelekomcloud.LbPolicyV3("lbPolicyV3Resource", new()
    {
        ListenerId = "string",
        Action = "string",
        Position = 0,
        LbPolicyV3Id = "string",
        FixedResponseConfig = new Opentelekomcloud.Inputs.LbPolicyV3FixedResponseConfigArgs
        {
            StatusCode = "string",
            ContentType = "string",
            MessageBody = "string",
        },
        Name = "string",
        Description = "string",
        Priority = 0,
        ProjectId = "string",
        RedirectListenerId = "string",
        RedirectPoolId = "string",
        RedirectPoolsConfigs = new[]
        {
            new Opentelekomcloud.Inputs.LbPolicyV3RedirectPoolsConfigArgs
            {
                PoolId = "string",
                Weight = 0,
            },
        },
        RedirectUrl = "string",
        RedirectUrlConfig = new Opentelekomcloud.Inputs.LbPolicyV3RedirectUrlConfigArgs
        {
            StatusCode = "string",
            Host = "string",
            Path = "string",
            Port = "string",
            Protocol = "string",
            Query = "string",
        },
        Rules = new[]
        {
            new Opentelekomcloud.Inputs.LbPolicyV3RuleArgs
            {
                CompareType = "string",
                Type = "string",
                Value = "string",
            },
        },
    });
    
    example, err := opentelekomcloud.NewLbPolicyV3(ctx, "lbPolicyV3Resource", &opentelekomcloud.LbPolicyV3Args{
    	ListenerId:   pulumi.String("string"),
    	Action:       pulumi.String("string"),
    	Position:     pulumi.Float64(0),
    	LbPolicyV3Id: pulumi.String("string"),
    	FixedResponseConfig: &opentelekomcloud.LbPolicyV3FixedResponseConfigArgs{
    		StatusCode:  pulumi.String("string"),
    		ContentType: pulumi.String("string"),
    		MessageBody: pulumi.String("string"),
    	},
    	Name:               pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	Priority:           pulumi.Float64(0),
    	ProjectId:          pulumi.String("string"),
    	RedirectListenerId: pulumi.String("string"),
    	RedirectPoolId:     pulumi.String("string"),
    	RedirectPoolsConfigs: opentelekomcloud.LbPolicyV3RedirectPoolsConfigArray{
    		&opentelekomcloud.LbPolicyV3RedirectPoolsConfigArgs{
    			PoolId: pulumi.String("string"),
    			Weight: pulumi.Float64(0),
    		},
    	},
    	RedirectUrl: pulumi.String("string"),
    	RedirectUrlConfig: &opentelekomcloud.LbPolicyV3RedirectUrlConfigArgs{
    		StatusCode: pulumi.String("string"),
    		Host:       pulumi.String("string"),
    		Path:       pulumi.String("string"),
    		Port:       pulumi.String("string"),
    		Protocol:   pulumi.String("string"),
    		Query:      pulumi.String("string"),
    	},
    	Rules: opentelekomcloud.LbPolicyV3RuleArray{
    		&opentelekomcloud.LbPolicyV3RuleArgs{
    			CompareType: pulumi.String("string"),
    			Type:        pulumi.String("string"),
    			Value:       pulumi.String("string"),
    		},
    	},
    })
    
    var lbPolicyV3Resource = new LbPolicyV3("lbPolicyV3Resource", LbPolicyV3Args.builder()
        .listenerId("string")
        .action("string")
        .position(0)
        .lbPolicyV3Id("string")
        .fixedResponseConfig(LbPolicyV3FixedResponseConfigArgs.builder()
            .statusCode("string")
            .contentType("string")
            .messageBody("string")
            .build())
        .name("string")
        .description("string")
        .priority(0)
        .projectId("string")
        .redirectListenerId("string")
        .redirectPoolId("string")
        .redirectPoolsConfigs(LbPolicyV3RedirectPoolsConfigArgs.builder()
            .poolId("string")
            .weight(0)
            .build())
        .redirectUrl("string")
        .redirectUrlConfig(LbPolicyV3RedirectUrlConfigArgs.builder()
            .statusCode("string")
            .host("string")
            .path("string")
            .port("string")
            .protocol("string")
            .query("string")
            .build())
        .rules(LbPolicyV3RuleArgs.builder()
            .compareType("string")
            .type("string")
            .value("string")
            .build())
        .build());
    
    lb_policy_v3_resource = opentelekomcloud.LbPolicyV3("lbPolicyV3Resource",
        listener_id="string",
        action="string",
        position=0,
        lb_policy_v3_id="string",
        fixed_response_config={
            "status_code": "string",
            "content_type": "string",
            "message_body": "string",
        },
        name="string",
        description="string",
        priority=0,
        project_id="string",
        redirect_listener_id="string",
        redirect_pool_id="string",
        redirect_pools_configs=[{
            "pool_id": "string",
            "weight": 0,
        }],
        redirect_url="string",
        redirect_url_config={
            "status_code": "string",
            "host": "string",
            "path": "string",
            "port": "string",
            "protocol": "string",
            "query": "string",
        },
        rules=[{
            "compare_type": "string",
            "type": "string",
            "value": "string",
        }])
    
    const lbPolicyV3Resource = new opentelekomcloud.LbPolicyV3("lbPolicyV3Resource", {
        listenerId: "string",
        action: "string",
        position: 0,
        lbPolicyV3Id: "string",
        fixedResponseConfig: {
            statusCode: "string",
            contentType: "string",
            messageBody: "string",
        },
        name: "string",
        description: "string",
        priority: 0,
        projectId: "string",
        redirectListenerId: "string",
        redirectPoolId: "string",
        redirectPoolsConfigs: [{
            poolId: "string",
            weight: 0,
        }],
        redirectUrl: "string",
        redirectUrlConfig: {
            statusCode: "string",
            host: "string",
            path: "string",
            port: "string",
            protocol: "string",
            query: "string",
        },
        rules: [{
            compareType: "string",
            type: "string",
            value: "string",
        }],
    });
    
    type: opentelekomcloud:LbPolicyV3
    properties:
        action: string
        description: string
        fixedResponseConfig:
            contentType: string
            messageBody: string
            statusCode: string
        lbPolicyV3Id: string
        listenerId: string
        name: string
        position: 0
        priority: 0
        projectId: string
        redirectListenerId: string
        redirectPoolId: string
        redirectPoolsConfigs:
            - poolId: string
              weight: 0
        redirectUrl: string
        redirectUrlConfig:
            host: string
            path: string
            port: string
            protocol: string
            query: string
            statusCode: string
        rules:
            - compareType: string
              type: string
              value: string
    

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

    Action string
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    ListenerId string
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    Description string
    Provides supplementary information about the forwarding policy.
    FixedResponseConfig LbPolicyV3FixedResponseConfig
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    LbPolicyV3Id string
    The unique ID for the policy.
    Name string
    Specifies the forwarding policy name.
    Position double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    Priority double
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    ProjectId string
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    RedirectPoolsConfigs List<LbPolicyV3RedirectPoolsConfig>
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    RedirectUrl string
    Specifies the URL to which requests are forwarded.
    RedirectUrlConfig LbPolicyV3RedirectUrlConfig
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    Rules List<LbPolicyV3Rule>
    Lists the forwarding rules in the forwarding policy.
    Action string
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    ListenerId string
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    Description string
    Provides supplementary information about the forwarding policy.
    FixedResponseConfig LbPolicyV3FixedResponseConfigArgs
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    LbPolicyV3Id string
    The unique ID for the policy.
    Name string
    Specifies the forwarding policy name.
    Position float64
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    Priority float64
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    ProjectId string
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    RedirectPoolsConfigs []LbPolicyV3RedirectPoolsConfigArgs
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    RedirectUrl string
    Specifies the URL to which requests are forwarded.
    RedirectUrlConfig LbPolicyV3RedirectUrlConfigArgs
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    Rules []LbPolicyV3RuleArgs
    Lists the forwarding rules in the forwarding policy.
    action String
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    listenerId String
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    description String
    Provides supplementary information about the forwarding policy.
    fixedResponseConfig LbPolicyV3FixedResponseConfig
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lbPolicyV3Id String
    The unique ID for the policy.
    name String
    Specifies the forwarding policy name.
    position Double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority Double
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    projectId String
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirectPoolsConfigs List<LbPolicyV3RedirectPoolsConfig>
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirectUrl String
    Specifies the URL to which requests are forwarded.
    redirectUrlConfig LbPolicyV3RedirectUrlConfig
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules List<LbPolicyV3Rule>
    Lists the forwarding rules in the forwarding policy.
    action string
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    listenerId string
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    description string
    Provides supplementary information about the forwarding policy.
    fixedResponseConfig LbPolicyV3FixedResponseConfig
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lbPolicyV3Id string
    The unique ID for the policy.
    name string
    Specifies the forwarding policy name.
    position number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority number
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    projectId string
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirectPoolsConfigs LbPolicyV3RedirectPoolsConfig[]
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirectUrl string
    Specifies the URL to which requests are forwarded.
    redirectUrlConfig LbPolicyV3RedirectUrlConfig
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules LbPolicyV3Rule[]
    Lists the forwarding rules in the forwarding policy.
    action str
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    listener_id str
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    description str
    Provides supplementary information about the forwarding policy.
    fixed_response_config LbPolicyV3FixedResponseConfigArgs
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lb_policy_v3_id str
    The unique ID for the policy.
    name str
    Specifies the forwarding policy name.
    position float
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority float
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    project_id str
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirect_pools_configs Sequence[LbPolicyV3RedirectPoolsConfigArgs]
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirect_url str
    Specifies the URL to which requests are forwarded.
    redirect_url_config LbPolicyV3RedirectUrlConfigArgs
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules Sequence[LbPolicyV3RuleArgs]
    Lists the forwarding rules in the forwarding policy.
    action String
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    listenerId String
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    description String
    Provides supplementary information about the forwarding policy.
    fixedResponseConfig Property Map
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lbPolicyV3Id String
    The unique ID for the policy.
    name String
    Specifies the forwarding policy name.
    position Number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority Number
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    projectId String
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirectPoolsConfigs List<Property Map>
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirectUrl String
    Specifies the URL to which requests are forwarded.
    redirectUrlConfig Property Map
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules List<Property Map>
    Lists the forwarding rules in the forwarding policy.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Specifies the provisioning status of the forwarding policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Specifies the provisioning status of the forwarding policy.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Specifies the provisioning status of the forwarding policy.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Specifies the provisioning status of the forwarding policy.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Specifies the provisioning status of the forwarding policy.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Specifies the provisioning status of the forwarding policy.

    Look up Existing LbPolicyV3 Resource

    Get an existing LbPolicyV3 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?: LbPolicyV3State, opts?: CustomResourceOptions): LbPolicyV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            description: Optional[str] = None,
            fixed_response_config: Optional[LbPolicyV3FixedResponseConfigArgs] = None,
            lb_policy_v3_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            name: Optional[str] = None,
            position: Optional[float] = None,
            priority: Optional[float] = None,
            project_id: Optional[str] = None,
            redirect_listener_id: Optional[str] = None,
            redirect_pool_id: Optional[str] = None,
            redirect_pools_configs: Optional[Sequence[LbPolicyV3RedirectPoolsConfigArgs]] = None,
            redirect_url: Optional[str] = None,
            redirect_url_config: Optional[LbPolicyV3RedirectUrlConfigArgs] = None,
            rules: Optional[Sequence[LbPolicyV3RuleArgs]] = None,
            status: Optional[str] = None) -> LbPolicyV3
    func GetLbPolicyV3(ctx *Context, name string, id IDInput, state *LbPolicyV3State, opts ...ResourceOption) (*LbPolicyV3, error)
    public static LbPolicyV3 Get(string name, Input<string> id, LbPolicyV3State? state, CustomResourceOptions? opts = null)
    public static LbPolicyV3 get(String name, Output<String> id, LbPolicyV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LbPolicyV3    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 Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    Description string
    Provides supplementary information about the forwarding policy.
    FixedResponseConfig LbPolicyV3FixedResponseConfig
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    LbPolicyV3Id string
    The unique ID for the policy.
    ListenerId string
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    Name string
    Specifies the forwarding policy name.
    Position double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    Priority double
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    ProjectId string
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    RedirectPoolsConfigs List<LbPolicyV3RedirectPoolsConfig>
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    RedirectUrl string
    Specifies the URL to which requests are forwarded.
    RedirectUrlConfig LbPolicyV3RedirectUrlConfig
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    Rules List<LbPolicyV3Rule>
    Lists the forwarding rules in the forwarding policy.
    Status string
    Specifies the provisioning status of the forwarding policy.
    Action string
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    Description string
    Provides supplementary information about the forwarding policy.
    FixedResponseConfig LbPolicyV3FixedResponseConfigArgs
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    LbPolicyV3Id string
    The unique ID for the policy.
    ListenerId string
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    Name string
    Specifies the forwarding policy name.
    Position float64
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    Priority float64
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    ProjectId string
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    RedirectPoolsConfigs []LbPolicyV3RedirectPoolsConfigArgs
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    RedirectUrl string
    Specifies the URL to which requests are forwarded.
    RedirectUrlConfig LbPolicyV3RedirectUrlConfigArgs
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    Rules []LbPolicyV3RuleArgs
    Lists the forwarding rules in the forwarding policy.
    Status string
    Specifies the provisioning status of the forwarding policy.
    action String
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    description String
    Provides supplementary information about the forwarding policy.
    fixedResponseConfig LbPolicyV3FixedResponseConfig
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lbPolicyV3Id String
    The unique ID for the policy.
    listenerId String
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    name String
    Specifies the forwarding policy name.
    position Double
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority Double
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    projectId String
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirectPoolsConfigs List<LbPolicyV3RedirectPoolsConfig>
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirectUrl String
    Specifies the URL to which requests are forwarded.
    redirectUrlConfig LbPolicyV3RedirectUrlConfig
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules List<LbPolicyV3Rule>
    Lists the forwarding rules in the forwarding policy.
    status String
    Specifies the provisioning status of the forwarding policy.
    action string
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    description string
    Provides supplementary information about the forwarding policy.
    fixedResponseConfig LbPolicyV3FixedResponseConfig
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lbPolicyV3Id string
    The unique ID for the policy.
    listenerId string
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    name string
    Specifies the forwarding policy name.
    position number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority number
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    projectId string
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirectPoolsConfigs LbPolicyV3RedirectPoolsConfig[]
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirectUrl string
    Specifies the URL to which requests are forwarded.
    redirectUrlConfig LbPolicyV3RedirectUrlConfig
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules LbPolicyV3Rule[]
    Lists the forwarding rules in the forwarding policy.
    status string
    Specifies the provisioning status of the forwarding policy.
    action str
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    description str
    Provides supplementary information about the forwarding policy.
    fixed_response_config LbPolicyV3FixedResponseConfigArgs
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lb_policy_v3_id str
    The unique ID for the policy.
    listener_id str
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    name str
    Specifies the forwarding policy name.
    position float
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority float
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    project_id str
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirect_pools_configs Sequence[LbPolicyV3RedirectPoolsConfigArgs]
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirect_url str
    Specifies the URL to which requests are forwarded.
    redirect_url_config LbPolicyV3RedirectUrlConfigArgs
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules Sequence[LbPolicyV3RuleArgs]
    Lists the forwarding rules in the forwarding policy.
    status str
    Specifies the provisioning status of the forwarding policy.
    action String
    The Policy action - can either be REDIRECT_TO_POOL, or REDIRECT_TO_LISTENER. Changing this creates a new Policy.
    description String
    Provides supplementary information about the forwarding policy.
    fixedResponseConfig Property Map
    Specifies the configuration of the page that will be returned. This parameter will take effect when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    lbPolicyV3Id String
    The unique ID for the policy.
    listenerId String
    The Listener on which the Policy will be associated with. Changing this creates a new Policy.
    name String
    Specifies the forwarding policy name.
    position Number
    The position of this policy on the listener. Positions start at 1. Changing this creates a new Policy.
    priority Number
    Specifies the forwarding policy priority. A smaller value indicates a higher priority. The value must be unique for forwarding policies of the same listener. This parameter will take effect only when advanced_forwarding is set to true. If this parameter is passed and advanced_forwarding is set to false, an error will be returned. This parameter is unsupported for shared load balancers and not available in eu-nl.
    projectId String
    Required for admins. The UUID of the tenant who owns the Policy. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new 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.
    redirectPoolsConfigs List<Property Map>
    Specifies the configuration of the backend server group that the requests are forwarded to. This parameter is valid only when action is set to REDIRECT_TO_POOL.
    redirectUrl String
    Specifies the URL to which requests are forwarded.
    redirectUrlConfig Property Map
    Specifies the URL to which requests are forwarded. For dedicated load balancers, This parameter will take effect when advanced_forwarding is set to true. If it is passed when advanced_forwarding is set to false, an error will be returned. Not available in eu-nl.
    rules List<Property Map>
    Lists the forwarding rules in the forwarding policy.
    status String
    Specifies the provisioning status of the forwarding policy.

    Supporting Types

    LbPolicyV3FixedResponseConfig, LbPolicyV3FixedResponseConfigArgs

    StatusCode string
    Specifies the fixed HTTP status code configured in the forwarding rule. The value can be any integer in the range of 200-299, 400-499, or 500-599.
    ContentType string
    Specifies the format of the response body.
    MessageBody string
    Specifies the content of the response message body.
    StatusCode string
    Specifies the fixed HTTP status code configured in the forwarding rule. The value can be any integer in the range of 200-299, 400-499, or 500-599.
    ContentType string
    Specifies the format of the response body.
    MessageBody string
    Specifies the content of the response message body.
    statusCode String
    Specifies the fixed HTTP status code configured in the forwarding rule. The value can be any integer in the range of 200-299, 400-499, or 500-599.
    contentType String
    Specifies the format of the response body.
    messageBody String
    Specifies the content of the response message body.
    statusCode string
    Specifies the fixed HTTP status code configured in the forwarding rule. The value can be any integer in the range of 200-299, 400-499, or 500-599.
    contentType string
    Specifies the format of the response body.
    messageBody string
    Specifies the content of the response message body.
    status_code str
    Specifies the fixed HTTP status code configured in the forwarding rule. The value can be any integer in the range of 200-299, 400-499, or 500-599.
    content_type str
    Specifies the format of the response body.
    message_body str
    Specifies the content of the response message body.
    statusCode String
    Specifies the fixed HTTP status code configured in the forwarding rule. The value can be any integer in the range of 200-299, 400-499, or 500-599.
    contentType String
    Specifies the format of the response body.
    messageBody String
    Specifies the content of the response message body.

    LbPolicyV3RedirectPoolsConfig, LbPolicyV3RedirectPoolsConfigArgs

    PoolId string
    Specifies the ID of the backend server group.
    Weight double
    Specifies the weight of the backend server group. The value ranges from 0 to 100.
    PoolId string
    Specifies the ID of the backend server group.
    Weight float64
    Specifies the weight of the backend server group. The value ranges from 0 to 100.
    poolId String
    Specifies the ID of the backend server group.
    weight Double
    Specifies the weight of the backend server group. The value ranges from 0 to 100.
    poolId string
    Specifies the ID of the backend server group.
    weight number
    Specifies the weight of the backend server group. The value ranges from 0 to 100.
    pool_id str
    Specifies the ID of the backend server group.
    weight float
    Specifies the weight of the backend server group. The value ranges from 0 to 100.
    poolId String
    Specifies the ID of the backend server group.
    weight Number
    Specifies the weight of the backend server group. The value ranges from 0 to 100.

    LbPolicyV3RedirectUrlConfig, LbPolicyV3RedirectUrlConfigArgs

    StatusCode string
    Specifies the status code returned after the requests are redirected. The value can be 301, 302, 303, 307, or 308.
    Host string
    Specifies the host name that requests are redirected to. The value can contain only letters, digits, hyphens (-), and periods (.) and must start with a letter or digit. The default value is ${host}, indicating that the host of the request will be used.
    Path string
    Specifies the path that requests are redirected to. The default value is ${path}, indicating that the path of the request will be used. The value can contain only letters, digits, and special characters _~';@^- %#&$.*+?,=!:|/()[]{} and must start with a slash (/).
    Port string
    Specifies the port that requests are redirected to. The default value is ${port}, indicating that the port of the request will be used.
    Protocol string
    Specifies the protocol for redirection. The value can be HTTP, HTTPS, or ${protocol}. The default value is ${protocol}, indicating that the protocol of the request will be used.
    Query string
    Specifies the query string set in the URL for redirection. The default value is ${query}, indicating that the query string of the request will be used.
    StatusCode string
    Specifies the status code returned after the requests are redirected. The value can be 301, 302, 303, 307, or 308.
    Host string
    Specifies the host name that requests are redirected to. The value can contain only letters, digits, hyphens (-), and periods (.) and must start with a letter or digit. The default value is ${host}, indicating that the host of the request will be used.
    Path string
    Specifies the path that requests are redirected to. The default value is ${path}, indicating that the path of the request will be used. The value can contain only letters, digits, and special characters _~';@^- %#&$.*+?,=!:|/()[]{} and must start with a slash (/).
    Port string
    Specifies the port that requests are redirected to. The default value is ${port}, indicating that the port of the request will be used.
    Protocol string
    Specifies the protocol for redirection. The value can be HTTP, HTTPS, or ${protocol}. The default value is ${protocol}, indicating that the protocol of the request will be used.
    Query string
    Specifies the query string set in the URL for redirection. The default value is ${query}, indicating that the query string of the request will be used.
    statusCode String
    Specifies the status code returned after the requests are redirected. The value can be 301, 302, 303, 307, or 308.
    host String
    Specifies the host name that requests are redirected to. The value can contain only letters, digits, hyphens (-), and periods (.) and must start with a letter or digit. The default value is ${host}, indicating that the host of the request will be used.
    path String
    Specifies the path that requests are redirected to. The default value is ${path}, indicating that the path of the request will be used. The value can contain only letters, digits, and special characters _~';@^- %#&$.*+?,=!:|/()[]{} and must start with a slash (/).
    port String
    Specifies the port that requests are redirected to. The default value is ${port}, indicating that the port of the request will be used.
    protocol String
    Specifies the protocol for redirection. The value can be HTTP, HTTPS, or ${protocol}. The default value is ${protocol}, indicating that the protocol of the request will be used.
    query String
    Specifies the query string set in the URL for redirection. The default value is ${query}, indicating that the query string of the request will be used.
    statusCode string
    Specifies the status code returned after the requests are redirected. The value can be 301, 302, 303, 307, or 308.
    host string
    Specifies the host name that requests are redirected to. The value can contain only letters, digits, hyphens (-), and periods (.) and must start with a letter or digit. The default value is ${host}, indicating that the host of the request will be used.
    path string
    Specifies the path that requests are redirected to. The default value is ${path}, indicating that the path of the request will be used. The value can contain only letters, digits, and special characters _~';@^- %#&$.*+?,=!:|/()[]{} and must start with a slash (/).
    port string
    Specifies the port that requests are redirected to. The default value is ${port}, indicating that the port of the request will be used.
    protocol string
    Specifies the protocol for redirection. The value can be HTTP, HTTPS, or ${protocol}. The default value is ${protocol}, indicating that the protocol of the request will be used.
    query string
    Specifies the query string set in the URL for redirection. The default value is ${query}, indicating that the query string of the request will be used.
    status_code str
    Specifies the status code returned after the requests are redirected. The value can be 301, 302, 303, 307, or 308.
    host str
    Specifies the host name that requests are redirected to. The value can contain only letters, digits, hyphens (-), and periods (.) and must start with a letter or digit. The default value is ${host}, indicating that the host of the request will be used.
    path str
    Specifies the path that requests are redirected to. The default value is ${path}, indicating that the path of the request will be used. The value can contain only letters, digits, and special characters _~';@^- %#&$.*+?,=!:|/()[]{} and must start with a slash (/).
    port str
    Specifies the port that requests are redirected to. The default value is ${port}, indicating that the port of the request will be used.
    protocol str
    Specifies the protocol for redirection. The value can be HTTP, HTTPS, or ${protocol}. The default value is ${protocol}, indicating that the protocol of the request will be used.
    query str
    Specifies the query string set in the URL for redirection. The default value is ${query}, indicating that the query string of the request will be used.
    statusCode String
    Specifies the status code returned after the requests are redirected. The value can be 301, 302, 303, 307, or 308.
    host String
    Specifies the host name that requests are redirected to. The value can contain only letters, digits, hyphens (-), and periods (.) and must start with a letter or digit. The default value is ${host}, indicating that the host of the request will be used.
    path String
    Specifies the path that requests are redirected to. The default value is ${path}, indicating that the path of the request will be used. The value can contain only letters, digits, and special characters _~';@^- %#&$.*+?,=!:|/()[]{} and must start with a slash (/).
    port String
    Specifies the port that requests are redirected to. The default value is ${port}, indicating that the port of the request will be used.
    protocol String
    Specifies the protocol for redirection. The value can be HTTP, HTTPS, or ${protocol}. The default value is ${protocol}, indicating that the protocol of the request will be used.
    query String
    Specifies the query string set in the URL for redirection. The default value is ${query}, indicating that the query string of the request will be used.

    LbPolicyV3Rule, LbPolicyV3RuleArgs

    CompareType string

    Specifies how requests are matched with the domain name or URL. The values can be: EQUAL_TO, REGEX, STARTS_WITH.

    ->If type is set to HOST_NAME, this parameter can only be set to EQUAL_TO (exact match). If type is set to PATH, this parameter can be set to REGEX (regular expression match), STARTS_WITH (prefix match), or EQUAL_TO (exact match).

    Type string
    Specifies the match content. The value can be one of the following: HOST_NAME, PATH.
    Value string

    Specifies the value of the match item. For example, if a domain name is used for matching, value is the domain name.

    ->If type is set to HOST_NAME, the value can contain letters, digits, hyphens -, and periods . and must start with a letter or digit. If you want to use a wildcard domain name, enter an asterisk * as the leftmost label of the domain name. If type is set to PATH and compare_type to STARTS_WITH or EQUAL_TO, the value must start with a slash / and can contain only letters, digits, and special characters _~';@^-%#&$.*+?,=!:|/()[]{}.

    CompareType string

    Specifies how requests are matched with the domain name or URL. The values can be: EQUAL_TO, REGEX, STARTS_WITH.

    ->If type is set to HOST_NAME, this parameter can only be set to EQUAL_TO (exact match). If type is set to PATH, this parameter can be set to REGEX (regular expression match), STARTS_WITH (prefix match), or EQUAL_TO (exact match).

    Type string
    Specifies the match content. The value can be one of the following: HOST_NAME, PATH.
    Value string

    Specifies the value of the match item. For example, if a domain name is used for matching, value is the domain name.

    ->If type is set to HOST_NAME, the value can contain letters, digits, hyphens -, and periods . and must start with a letter or digit. If you want to use a wildcard domain name, enter an asterisk * as the leftmost label of the domain name. If type is set to PATH and compare_type to STARTS_WITH or EQUAL_TO, the value must start with a slash / and can contain only letters, digits, and special characters _~';@^-%#&$.*+?,=!:|/()[]{}.

    compareType String

    Specifies how requests are matched with the domain name or URL. The values can be: EQUAL_TO, REGEX, STARTS_WITH.

    ->If type is set to HOST_NAME, this parameter can only be set to EQUAL_TO (exact match). If type is set to PATH, this parameter can be set to REGEX (regular expression match), STARTS_WITH (prefix match), or EQUAL_TO (exact match).

    type String
    Specifies the match content. The value can be one of the following: HOST_NAME, PATH.
    value String

    Specifies the value of the match item. For example, if a domain name is used for matching, value is the domain name.

    ->If type is set to HOST_NAME, the value can contain letters, digits, hyphens -, and periods . and must start with a letter or digit. If you want to use a wildcard domain name, enter an asterisk * as the leftmost label of the domain name. If type is set to PATH and compare_type to STARTS_WITH or EQUAL_TO, the value must start with a slash / and can contain only letters, digits, and special characters _~';@^-%#&$.*+?,=!:|/()[]{}.

    compareType string

    Specifies how requests are matched with the domain name or URL. The values can be: EQUAL_TO, REGEX, STARTS_WITH.

    ->If type is set to HOST_NAME, this parameter can only be set to EQUAL_TO (exact match). If type is set to PATH, this parameter can be set to REGEX (regular expression match), STARTS_WITH (prefix match), or EQUAL_TO (exact match).

    type string
    Specifies the match content. The value can be one of the following: HOST_NAME, PATH.
    value string

    Specifies the value of the match item. For example, if a domain name is used for matching, value is the domain name.

    ->If type is set to HOST_NAME, the value can contain letters, digits, hyphens -, and periods . and must start with a letter or digit. If you want to use a wildcard domain name, enter an asterisk * as the leftmost label of the domain name. If type is set to PATH and compare_type to STARTS_WITH or EQUAL_TO, the value must start with a slash / and can contain only letters, digits, and special characters _~';@^-%#&$.*+?,=!:|/()[]{}.

    compare_type str

    Specifies how requests are matched with the domain name or URL. The values can be: EQUAL_TO, REGEX, STARTS_WITH.

    ->If type is set to HOST_NAME, this parameter can only be set to EQUAL_TO (exact match). If type is set to PATH, this parameter can be set to REGEX (regular expression match), STARTS_WITH (prefix match), or EQUAL_TO (exact match).

    type str
    Specifies the match content. The value can be one of the following: HOST_NAME, PATH.
    value str

    Specifies the value of the match item. For example, if a domain name is used for matching, value is the domain name.

    ->If type is set to HOST_NAME, the value can contain letters, digits, hyphens -, and periods . and must start with a letter or digit. If you want to use a wildcard domain name, enter an asterisk * as the leftmost label of the domain name. If type is set to PATH and compare_type to STARTS_WITH or EQUAL_TO, the value must start with a slash / and can contain only letters, digits, and special characters _~';@^-%#&$.*+?,=!:|/()[]{}.

    compareType String

    Specifies how requests are matched with the domain name or URL. The values can be: EQUAL_TO, REGEX, STARTS_WITH.

    ->If type is set to HOST_NAME, this parameter can only be set to EQUAL_TO (exact match). If type is set to PATH, this parameter can be set to REGEX (regular expression match), STARTS_WITH (prefix match), or EQUAL_TO (exact match).

    type String
    Specifies the match content. The value can be one of the following: HOST_NAME, PATH.
    value String

    Specifies the value of the match item. For example, if a domain name is used for matching, value is the domain name.

    ->If type is set to HOST_NAME, the value can contain letters, digits, hyphens -, and periods . and must start with a letter or digit. If you want to use a wildcard domain name, enter an asterisk * as the leftmost label of the domain name. If type is set to PATH and compare_type to STARTS_WITH or EQUAL_TO, the value must start with a slash / and can contain only letters, digits, and special characters _~';@^-%#&$.*+?,=!:|/()[]{}.

    Import

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

    $ pulumi import opentelekomcloud:index/lbPolicyV3:LbPolicyV3 this 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