opentelekomcloud.LbPolicyV3
Explore with Pulumi AI
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.0)
    .lbPolicyV3Id("string")
    .fixedResponseConfig(LbPolicyV3FixedResponseConfigArgs.builder()
        .statusCode("string")
        .contentType("string")
        .messageBody("string")
        .build())
    .name("string")
    .description("string")
    .priority(0.0)
    .projectId("string")
    .redirectListenerId("string")
    .redirectPoolId("string")
    .redirectPoolsConfigs(LbPolicyV3RedirectPoolsConfigArgs.builder()
        .poolId("string")
        .weight(0.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, orREDIRECT_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.
- FixedResponse LbConfig Policy V3Fixed Response Config 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- LbPolicy stringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- RedirectListener stringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- RedirectPool stringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- RedirectPools List<LbConfigs Policy V3Redirect Pools Config> 
- 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.
- RedirectUrl LbConfig Policy V3Redirect Url Config 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- Rules
List<LbPolicy V3Rule> 
- Lists the forwarding rules in the forwarding policy.
- Action string
- The Policy action - can either be REDIRECT_TO_POOL, orREDIRECT_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.
- FixedResponse LbConfig Policy V3Fixed Response Config Args 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- LbPolicy stringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- RedirectListener stringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- RedirectPool stringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- RedirectPools []LbConfigs Policy V3Redirect Pools Config Args 
- 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.
- RedirectUrl LbConfig Policy V3Redirect Url Config Args 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- Rules
[]LbPolicy V3Rule Args 
- Lists the forwarding rules in the forwarding policy.
- action String
- The Policy action - can either be REDIRECT_TO_POOL, orREDIRECT_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.
- fixedResponse LbConfig Policy V3Fixed Response Config 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lbPolicy StringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- redirectListener StringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirectPool StringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirectPools List<LbConfigs Policy V3Redirect Pools Config> 
- 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.
- redirectUrl LbConfig Policy V3Redirect Url Config 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- rules
List<LbPolicy V3Rule> 
- Lists the forwarding rules in the forwarding policy.
- action string
- The Policy action - can either be REDIRECT_TO_POOL, orREDIRECT_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.
- fixedResponse LbConfig Policy V3Fixed Response Config 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lbPolicy stringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- redirectListener stringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirectPool stringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirectPools LbConfigs Policy V3Redirect Pools Config[] 
- 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.
- redirectUrl LbConfig Policy V3Redirect Url Config 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- rules
LbPolicy V3Rule[] 
- Lists the forwarding rules in the forwarding policy.
- action str
- The Policy action - can either be REDIRECT_TO_POOL, orREDIRECT_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_ Lbconfig Policy V3Fixed Response Config Args 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lb_policy_ strv3_ id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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_ strid 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirect_pool_ strid 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirect_pools_ Sequence[Lbconfigs Policy V3Redirect Pools Config Args] 
- 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_ Lbconfig Policy V3Redirect Url Config Args 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- rules
Sequence[LbPolicy V3Rule Args] 
- Lists the forwarding rules in the forwarding policy.
- action String
- The Policy action - can either be REDIRECT_TO_POOL, orREDIRECT_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.
- fixedResponse Property MapConfig 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lbPolicy StringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- redirectListener StringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirectPool StringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirectPools List<Property Map>Configs 
- 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.
- redirectUrl Property MapConfig 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-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:
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) -> LbPolicyV3func 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.
- Action string
- The Policy action - can either be REDIRECT_TO_POOL, orREDIRECT_TO_LISTENER. Changing this creates a new Policy.
- Description string
- Provides supplementary information about the forwarding policy.
- FixedResponse LbConfig Policy V3Fixed Response Config 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- LbPolicy stringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- RedirectListener stringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- RedirectPool stringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- RedirectPools List<LbConfigs Policy V3Redirect Pools Config> 
- 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.
- RedirectUrl LbConfig Policy V3Redirect Url Config 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- Rules
List<LbPolicy V3Rule> 
- 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, orREDIRECT_TO_LISTENER. Changing this creates a new Policy.
- Description string
- Provides supplementary information about the forwarding policy.
- FixedResponse LbConfig Policy V3Fixed Response Config Args 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- LbPolicy stringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- RedirectListener stringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- RedirectPool stringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- RedirectPools []LbConfigs Policy V3Redirect Pools Config Args 
- 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.
- RedirectUrl LbConfig Policy V3Redirect Url Config Args 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- Rules
[]LbPolicy V3Rule Args 
- 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, orREDIRECT_TO_LISTENER. Changing this creates a new Policy.
- description String
- Provides supplementary information about the forwarding policy.
- fixedResponse LbConfig Policy V3Fixed Response Config 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lbPolicy StringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- redirectListener StringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirectPool StringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirectPools List<LbConfigs Policy V3Redirect Pools Config> 
- 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.
- redirectUrl LbConfig Policy V3Redirect Url Config 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- rules
List<LbPolicy V3Rule> 
- 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, orREDIRECT_TO_LISTENER. Changing this creates a new Policy.
- description string
- Provides supplementary information about the forwarding policy.
- fixedResponse LbConfig Policy V3Fixed Response Config 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lbPolicy stringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- redirectListener stringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirectPool stringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirectPools LbConfigs Policy V3Redirect Pools Config[] 
- 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.
- redirectUrl LbConfig Policy V3Redirect Url Config 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- rules
LbPolicy V3Rule[] 
- 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, orREDIRECT_TO_LISTENER. Changing this creates a new Policy.
- description str
- Provides supplementary information about the forwarding policy.
- fixed_response_ Lbconfig Policy V3Fixed Response Config Args 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lb_policy_ strv3_ id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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_ strid 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirect_pool_ strid 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirect_pools_ Sequence[Lbconfigs Policy V3Redirect Pools Config Args] 
- 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_ Lbconfig Policy V3Redirect Url Config Args 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- rules
Sequence[LbPolicy V3Rule Args] 
- 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, orREDIRECT_TO_LISTENER. Changing this creates a new Policy.
- description String
- Provides supplementary information about the forwarding policy.
- fixedResponse Property MapConfig 
- Specifies the configuration of the page that will be returned.
This parameter will take effect when advanced_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-nl.
- lbPolicy StringV3Id 
- 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_forwardingis set totrue. If this parameter is passed andadvanced_forwardingis set tofalse, an error will be returned. This parameter is unsupported for shared load balancers and not available ineu-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.
- redirectListener StringId 
- Requests matching this policy will be redirected to the listener with this ID.
Only valid if actionisREDIRECT_TO_LISTENER.
- redirectPool StringId 
- Requests matching this policy will be redirected to the pool with this ID.
Only valid if actionisREDIRECT_TO_POOL.
- redirectPools List<Property Map>Configs 
- 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.
- redirectUrl Property MapConfig 
- Specifies the URL to which requests are forwarded.
For dedicated load balancers, This parameter will take effect when advanced_forwardingis set totrue. If it is passed whenadvanced_forwardingis set tofalse, an error will be returned. Not available ineu-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, or500-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, or500-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, or500-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, or500-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, or500-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, or500-599.
- contentType String
- Specifies the format of the response body.
- messageBody String
- Specifies the content of the response message body.
LbPolicyV3RedirectPoolsConfig, LbPolicyV3RedirectPoolsConfigArgs          
LbPolicyV3RedirectUrlConfig, LbPolicyV3RedirectUrlConfigArgs          
- StatusCode string
- Specifies the status code returned after the requests are redirected.
The value can be 301,302,303,307, or308.
- 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, or308.
- 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, or308.
- 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, or308.
- 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, or308.
- 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, or308.
- 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 - typeis set to- HOST_NAME, this parameter can only be set to- EQUAL_TO(exact match). If- typeis 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- PATHand- compare_typeto- STARTS_WITHor- 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 - typeis set to- HOST_NAME, this parameter can only be set to- EQUAL_TO(exact match). If- typeis 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- PATHand- compare_typeto- STARTS_WITHor- 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 - typeis set to- HOST_NAME, this parameter can only be set to- EQUAL_TO(exact match). If- typeis 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- PATHand- compare_typeto- STARTS_WITHor- 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 - typeis set to- HOST_NAME, this parameter can only be set to- EQUAL_TO(exact match). If- typeis 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- PATHand- compare_typeto- STARTS_WITHor- 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 - typeis set to- HOST_NAME, this parameter can only be set to- EQUAL_TO(exact match). If- typeis 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- PATHand- compare_typeto- STARTS_WITHor- 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 - typeis set to- HOST_NAME, this parameter can only be set to- EQUAL_TO(exact match). If- typeis 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- PATHand- compare_typeto- STARTS_WITHor- 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 opentelekomcloudTerraform Provider.