opentelekomcloud.LbRuleV3
Explore with Pulumi AI
Up-to-date reference of API arguments for DLB l7 rule you can get at documentation portal
Manages a Dedicated Load Balancer Rule resource within OpenTelekomCloud.
Example Usage
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,
});
const thisLbRuleV3 = new opentelekomcloud.LbRuleV3("thisLbRuleV3", {
    type: "PATH",
    compareType: "REGEX",
    value: "^.+$",
    policyId: thisLbPolicyV3.lbPolicyV3Id,
});
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)
this_lb_rule_v3 = opentelekomcloud.LbRuleV3("thisLbRuleV3",
    type="PATH",
    compare_type="REGEX",
    value="^.+$",
    policy_id=this_lb_policy_v3.lb_policy_v3_id)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		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
		}
		thisLbPolicyV3, 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
		}
		_, err = opentelekomcloud.NewLbRuleV3(ctx, "thisLbRuleV3", &opentelekomcloud.LbRuleV3Args{
			Type:        pulumi.String("PATH"),
			CompareType: pulumi.String("REGEX"),
			Value:       pulumi.String("^.+$"),
			PolicyId:    thisLbPolicyV3.LbPolicyV3Id,
		})
		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,
    });
    var thisLbRuleV3 = new Opentelekomcloud.LbRuleV3("thisLbRuleV3", new()
    {
        Type = "PATH",
        CompareType = "REGEX",
        Value = "^.+$",
        PolicyId = thisLbPolicyV3.LbPolicyV3Id,
    });
});
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.LbRuleV3;
import com.pulumi.opentelekomcloud.LbRuleV3Args;
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());
        var thisLbRuleV3 = new LbRuleV3("thisLbRuleV3", LbRuleV3Args.builder()
            .type("PATH")
            .compareType("REGEX")
            .value("^.+$")
            .policyId(thisLbPolicyV3.lbPolicyV3Id())
            .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
  thisLbRuleV3:
    type: opentelekomcloud:LbRuleV3
    properties:
      type: PATH
      compareType: REGEX
      value: ^.+$
      policyId: ${thisLbPolicyV3.lbPolicyV3Id}
Create LbRuleV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LbRuleV3(name: string, args: LbRuleV3Args, opts?: CustomResourceOptions);@overload
def LbRuleV3(resource_name: str,
             args: LbRuleV3Args,
             opts: Optional[ResourceOptions] = None)
@overload
def LbRuleV3(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             compare_type: Optional[str] = None,
             policy_id: Optional[str] = None,
             type: Optional[str] = None,
             value: Optional[str] = None,
             conditions: Optional[Sequence[LbRuleV3ConditionArgs]] = None,
             lb_rule_v3_id: Optional[str] = None,
             project_id: Optional[str] = None)func NewLbRuleV3(ctx *Context, name string, args LbRuleV3Args, opts ...ResourceOption) (*LbRuleV3, error)public LbRuleV3(string name, LbRuleV3Args args, CustomResourceOptions? opts = null)
public LbRuleV3(String name, LbRuleV3Args args)
public LbRuleV3(String name, LbRuleV3Args args, CustomResourceOptions options)
type: opentelekomcloud:LbRuleV3
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 LbRuleV3Args
- 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 LbRuleV3Args
- 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 LbRuleV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LbRuleV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LbRuleV3Args
- 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 lbRuleV3Resource = new Opentelekomcloud.LbRuleV3("lbRuleV3Resource", new()
{
    CompareType = "string",
    PolicyId = "string",
    Type = "string",
    Value = "string",
    Conditions = new[]
    {
        new Opentelekomcloud.Inputs.LbRuleV3ConditionArgs
        {
            Value = "string",
            Key = "string",
        },
    },
    LbRuleV3Id = "string",
    ProjectId = "string",
});
example, err := opentelekomcloud.NewLbRuleV3(ctx, "lbRuleV3Resource", &opentelekomcloud.LbRuleV3Args{
	CompareType: pulumi.String("string"),
	PolicyId:    pulumi.String("string"),
	Type:        pulumi.String("string"),
	Value:       pulumi.String("string"),
	Conditions: opentelekomcloud.LbRuleV3ConditionArray{
		&opentelekomcloud.LbRuleV3ConditionArgs{
			Value: pulumi.String("string"),
			Key:   pulumi.String("string"),
		},
	},
	LbRuleV3Id: pulumi.String("string"),
	ProjectId:  pulumi.String("string"),
})
var lbRuleV3Resource = new LbRuleV3("lbRuleV3Resource", LbRuleV3Args.builder()
    .compareType("string")
    .policyId("string")
    .type("string")
    .value("string")
    .conditions(LbRuleV3ConditionArgs.builder()
        .value("string")
        .key("string")
        .build())
    .lbRuleV3Id("string")
    .projectId("string")
    .build());
lb_rule_v3_resource = opentelekomcloud.LbRuleV3("lbRuleV3Resource",
    compare_type="string",
    policy_id="string",
    type="string",
    value="string",
    conditions=[{
        "value": "string",
        "key": "string",
    }],
    lb_rule_v3_id="string",
    project_id="string")
const lbRuleV3Resource = new opentelekomcloud.LbRuleV3("lbRuleV3Resource", {
    compareType: "string",
    policyId: "string",
    type: "string",
    value: "string",
    conditions: [{
        value: "string",
        key: "string",
    }],
    lbRuleV3Id: "string",
    projectId: "string",
});
type: opentelekomcloud:LbRuleV3
properties:
    compareType: string
    conditions:
        - key: string
          value: string
    lbRuleV3Id: string
    policyId: string
    projectId: string
    type: string
    value: string
LbRuleV3 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 LbRuleV3 resource accepts the following input properties:
- 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).
- PolicyId string
- ID of the policy.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
- Conditions
List<LbRule V3Condition> 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- LbRule stringV3Id 
- 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.
- 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).
- PolicyId string
- ID of the policy.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
- Conditions
[]LbRule V3Condition Args 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- LbRule stringV3Id 
- 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.
- 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).
- policyId String
- ID of the policy.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
- conditions
List<LbRule V3Condition> 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lbRule StringV3Id 
- 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.
- 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).
- policyId string
- ID of the policy.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
- conditions
LbRule V3Condition[] 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lbRule stringV3Id 
- 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.
- 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).
- policy_id str
- ID of the policy.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
- conditions
Sequence[LbRule V3Condition Args] 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lb_rule_ strv3_ id 
- 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.
- 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).
- policyId String
- ID of the policy.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
- conditions List<Property Map>
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lbRule StringV3Id 
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the LbRuleV3 resource produces the following output properties:
Look up Existing LbRuleV3 Resource
Get an existing LbRuleV3 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?: LbRuleV3State, opts?: CustomResourceOptions): LbRuleV3@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compare_type: Optional[str] = None,
        conditions: Optional[Sequence[LbRuleV3ConditionArgs]] = None,
        lb_rule_v3_id: Optional[str] = None,
        policy_id: Optional[str] = None,
        project_id: Optional[str] = None,
        rule_id: Optional[str] = None,
        type: Optional[str] = None,
        value: Optional[str] = None) -> LbRuleV3func GetLbRuleV3(ctx *Context, name string, id IDInput, state *LbRuleV3State, opts ...ResourceOption) (*LbRuleV3, error)public static LbRuleV3 Get(string name, Input<string> id, LbRuleV3State? state, CustomResourceOptions? opts = null)public static LbRuleV3 get(String name, Output<String> id, LbRuleV3State state, CustomResourceOptions options)resources:  _:    type: opentelekomcloud:LbRuleV3    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.
- 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).
- Conditions
List<LbRule V3Condition> 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- LbRule stringV3Id 
- PolicyId string
- ID of the policy.
- 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.
- RuleId string
- ID of the policy rule.
- 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).
- Conditions
[]LbRule V3Condition Args 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- LbRule stringV3Id 
- PolicyId string
- ID of the policy.
- 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.
- RuleId string
- ID of the policy rule.
- 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).
- conditions
List<LbRule V3Condition> 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lbRule StringV3Id 
- policyId String
- ID of the policy.
- 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.
- ruleId String
- ID of the policy rule.
- 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).
- conditions
LbRule V3Condition[] 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lbRule stringV3Id 
- policyId string
- ID of the policy.
- 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.
- ruleId string
- ID of the policy rule.
- 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).
- conditions
Sequence[LbRule V3Condition Args] 
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lb_rule_ strv3_ id 
- policy_id str
- ID of the policy.
- 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.
- rule_id str
- ID of the policy rule.
- 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).
- conditions List<Property Map>
- Specifies the matching conditions of the forwarding rule.
This parameter is available only when advanced_forwardingis set totrue. Not available ineu-nl.
- lbRule StringV3Id 
- policyId String
- ID of the policy.
- 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.
- ruleId String
- ID of the policy rule.
- 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- _~';@^-%#&$.*+?,=!:|/()[]{}.
Supporting Types
LbRuleV3Condition, LbRuleV3ConditionArgs      
- Value string
- Specifies the value of the match item. - ->If type is set to - HOST_NAME, key is left blank, and value indicates the domain name, which can contain 1 to 128 characters, including letters, digits, hyphens (- -), periods (- .), and asterisks (- *), and must start with a letter, digit, or asterisk (- *). 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, key is left blank, and value indicates the request path, which can contain 1 to 128 characters. If compare_type is set to- STARTS_WITHor- EQUAL_TOfor the forwarding rule, the value must start with a slash (- /) and can contain only letters, digits, and special characters- _~';@^-%#&$.*+?,=!:|/()[]{}If type is set to- HEADER, key indicates the name of the HTTP header parameter, and value indicates the value of the HTTP header parameter. The value can contain 1 to 128 characters. Asterisks (- *) and question marks (- ?) are allowed, but spaces and double quotation marks are not allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- QUERY_STRING, key indicates the name of the query parameter, and value indicates the value of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. Asterisks (- *) and question marks (- ?) are allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- METHOD, key is left blank, and value indicates the HTTP method. The value can be- GET,- PUT,- POST,- DELETE,- PATCH,- HEAD, or- OPTIONS. If type is set to- SOURCE_IP, key is left blank, and value indicates the source IP address of the request. The value is an- IPv4or- IPv6CIDR block, for example,- 192.168.0.2/32or- elb. All keys in the conditions list in the same rule must be the same.
- Key string
- Specifies the key of match item. - ->If type is set to - HOST_NAME,- PATH,- METHOD, or- SOURCE_IP, this parameter is left blank. If type is set to- HEADER, key indicates the name of the HTTP header parameter. The value can contain 1 to 40 characters, including letters, digits, hyphens (- -), and underscores (- _). If type is set to- QUERY_STRING, key indicates the name of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. All keys in the conditions list in the same rule must be the same.
- Value string
- Specifies the value of the match item. - ->If type is set to - HOST_NAME, key is left blank, and value indicates the domain name, which can contain 1 to 128 characters, including letters, digits, hyphens (- -), periods (- .), and asterisks (- *), and must start with a letter, digit, or asterisk (- *). 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, key is left blank, and value indicates the request path, which can contain 1 to 128 characters. If compare_type is set to- STARTS_WITHor- EQUAL_TOfor the forwarding rule, the value must start with a slash (- /) and can contain only letters, digits, and special characters- _~';@^-%#&$.*+?,=!:|/()[]{}If type is set to- HEADER, key indicates the name of the HTTP header parameter, and value indicates the value of the HTTP header parameter. The value can contain 1 to 128 characters. Asterisks (- *) and question marks (- ?) are allowed, but spaces and double quotation marks are not allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- QUERY_STRING, key indicates the name of the query parameter, and value indicates the value of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. Asterisks (- *) and question marks (- ?) are allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- METHOD, key is left blank, and value indicates the HTTP method. The value can be- GET,- PUT,- POST,- DELETE,- PATCH,- HEAD, or- OPTIONS. If type is set to- SOURCE_IP, key is left blank, and value indicates the source IP address of the request. The value is an- IPv4or- IPv6CIDR block, for example,- 192.168.0.2/32or- elb. All keys in the conditions list in the same rule must be the same.
- Key string
- Specifies the key of match item. - ->If type is set to - HOST_NAME,- PATH,- METHOD, or- SOURCE_IP, this parameter is left blank. If type is set to- HEADER, key indicates the name of the HTTP header parameter. The value can contain 1 to 40 characters, including letters, digits, hyphens (- -), and underscores (- _). If type is set to- QUERY_STRING, key indicates the name of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. All keys in the conditions list in the same rule must be the same.
- value String
- Specifies the value of the match item. - ->If type is set to - HOST_NAME, key is left blank, and value indicates the domain name, which can contain 1 to 128 characters, including letters, digits, hyphens (- -), periods (- .), and asterisks (- *), and must start with a letter, digit, or asterisk (- *). 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, key is left blank, and value indicates the request path, which can contain 1 to 128 characters. If compare_type is set to- STARTS_WITHor- EQUAL_TOfor the forwarding rule, the value must start with a slash (- /) and can contain only letters, digits, and special characters- _~';@^-%#&$.*+?,=!:|/()[]{}If type is set to- HEADER, key indicates the name of the HTTP header parameter, and value indicates the value of the HTTP header parameter. The value can contain 1 to 128 characters. Asterisks (- *) and question marks (- ?) are allowed, but spaces and double quotation marks are not allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- QUERY_STRING, key indicates the name of the query parameter, and value indicates the value of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. Asterisks (- *) and question marks (- ?) are allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- METHOD, key is left blank, and value indicates the HTTP method. The value can be- GET,- PUT,- POST,- DELETE,- PATCH,- HEAD, or- OPTIONS. If type is set to- SOURCE_IP, key is left blank, and value indicates the source IP address of the request. The value is an- IPv4or- IPv6CIDR block, for example,- 192.168.0.2/32or- elb. All keys in the conditions list in the same rule must be the same.
- key String
- Specifies the key of match item. - ->If type is set to - HOST_NAME,- PATH,- METHOD, or- SOURCE_IP, this parameter is left blank. If type is set to- HEADER, key indicates the name of the HTTP header parameter. The value can contain 1 to 40 characters, including letters, digits, hyphens (- -), and underscores (- _). If type is set to- QUERY_STRING, key indicates the name of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. All keys in the conditions list in the same rule must be the same.
- value string
- Specifies the value of the match item. - ->If type is set to - HOST_NAME, key is left blank, and value indicates the domain name, which can contain 1 to 128 characters, including letters, digits, hyphens (- -), periods (- .), and asterisks (- *), and must start with a letter, digit, or asterisk (- *). 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, key is left blank, and value indicates the request path, which can contain 1 to 128 characters. If compare_type is set to- STARTS_WITHor- EQUAL_TOfor the forwarding rule, the value must start with a slash (- /) and can contain only letters, digits, and special characters- _~';@^-%#&$.*+?,=!:|/()[]{}If type is set to- HEADER, key indicates the name of the HTTP header parameter, and value indicates the value of the HTTP header parameter. The value can contain 1 to 128 characters. Asterisks (- *) and question marks (- ?) are allowed, but spaces and double quotation marks are not allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- QUERY_STRING, key indicates the name of the query parameter, and value indicates the value of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. Asterisks (- *) and question marks (- ?) are allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- METHOD, key is left blank, and value indicates the HTTP method. The value can be- GET,- PUT,- POST,- DELETE,- PATCH,- HEAD, or- OPTIONS. If type is set to- SOURCE_IP, key is left blank, and value indicates the source IP address of the request. The value is an- IPv4or- IPv6CIDR block, for example,- 192.168.0.2/32or- elb. All keys in the conditions list in the same rule must be the same.
- key string
- Specifies the key of match item. - ->If type is set to - HOST_NAME,- PATH,- METHOD, or- SOURCE_IP, this parameter is left blank. If type is set to- HEADER, key indicates the name of the HTTP header parameter. The value can contain 1 to 40 characters, including letters, digits, hyphens (- -), and underscores (- _). If type is set to- QUERY_STRING, key indicates the name of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. All keys in the conditions list in the same rule must be the same.
- value str
- Specifies the value of the match item. - ->If type is set to - HOST_NAME, key is left blank, and value indicates the domain name, which can contain 1 to 128 characters, including letters, digits, hyphens (- -), periods (- .), and asterisks (- *), and must start with a letter, digit, or asterisk (- *). 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, key is left blank, and value indicates the request path, which can contain 1 to 128 characters. If compare_type is set to- STARTS_WITHor- EQUAL_TOfor the forwarding rule, the value must start with a slash (- /) and can contain only letters, digits, and special characters- _~';@^-%#&$.*+?,=!:|/()[]{}If type is set to- HEADER, key indicates the name of the HTTP header parameter, and value indicates the value of the HTTP header parameter. The value can contain 1 to 128 characters. Asterisks (- *) and question marks (- ?) are allowed, but spaces and double quotation marks are not allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- QUERY_STRING, key indicates the name of the query parameter, and value indicates the value of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. Asterisks (- *) and question marks (- ?) are allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- METHOD, key is left blank, and value indicates the HTTP method. The value can be- GET,- PUT,- POST,- DELETE,- PATCH,- HEAD, or- OPTIONS. If type is set to- SOURCE_IP, key is left blank, and value indicates the source IP address of the request. The value is an- IPv4or- IPv6CIDR block, for example,- 192.168.0.2/32or- elb. All keys in the conditions list in the same rule must be the same.
- key str
- Specifies the key of match item. - ->If type is set to - HOST_NAME,- PATH,- METHOD, or- SOURCE_IP, this parameter is left blank. If type is set to- HEADER, key indicates the name of the HTTP header parameter. The value can contain 1 to 40 characters, including letters, digits, hyphens (- -), and underscores (- _). If type is set to- QUERY_STRING, key indicates the name of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. All keys in the conditions list in the same rule must be the same.
- value String
- Specifies the value of the match item. - ->If type is set to - HOST_NAME, key is left blank, and value indicates the domain name, which can contain 1 to 128 characters, including letters, digits, hyphens (- -), periods (- .), and asterisks (- *), and must start with a letter, digit, or asterisk (- *). 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, key is left blank, and value indicates the request path, which can contain 1 to 128 characters. If compare_type is set to- STARTS_WITHor- EQUAL_TOfor the forwarding rule, the value must start with a slash (- /) and can contain only letters, digits, and special characters- _~';@^-%#&$.*+?,=!:|/()[]{}If type is set to- HEADER, key indicates the name of the HTTP header parameter, and value indicates the value of the HTTP header parameter. The value can contain 1 to 128 characters. Asterisks (- *) and question marks (- ?) are allowed, but spaces and double quotation marks are not allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- QUERY_STRING, key indicates the name of the query parameter, and value indicates the value of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. Asterisks (- *) and question marks (- ?) are allowed. An asterisk can match zero or more characters, and a question mark can match 1 character. If type is set to- METHOD, key is left blank, and value indicates the HTTP method. The value can be- GET,- PUT,- POST,- DELETE,- PATCH,- HEAD, or- OPTIONS. If type is set to- SOURCE_IP, key is left blank, and value indicates the source IP address of the request. The value is an- IPv4or- IPv6CIDR block, for example,- 192.168.0.2/32or- elb. All keys in the conditions list in the same rule must be the same.
- key String
- Specifies the key of match item. - ->If type is set to - HOST_NAME,- PATH,- METHOD, or- SOURCE_IP, this parameter is left blank. If type is set to- HEADER, key indicates the name of the HTTP header parameter. The value can contain 1 to 40 characters, including letters, digits, hyphens (- -), and underscores (- _). If type is set to- QUERY_STRING, key indicates the name of the query parameter. The value is case-sensitive and can contain 1 to 128 characters. Spaces, square brackets (- [ ]), curly brackets (- { }), angle brackets (- < >), backslashes (- \), double quotation marks (- #), ampersands (- &), vertical bars (- |), percent signs (- %), and tildes (- ~) are not supported. All keys in the conditions list in the same rule must be the same.
Import
Rules can be imported using the policy_id/rule_id, e.g.
$ pulumi import opentelekomcloud:index/lbRuleV3:LbRuleV3 this 8a7a79c2-cf17-4e65-b2ae-ddc8bfcf6c74/1bb93b8b-37a4-4b50-92cc-daa4c89d4e4c
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.