published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
ALB 按照您设置的转发规则,对不同特征的访问流量进行分发。您可以为一个监听器配置多条转发规则。基础版 ALB 实例支持基于域名和路径的转发规则。标准版 ALB 实例支持基于域名、路径和 HTTP 标头的转发规则,并支持复合转发条件。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
albRuleDemo:
type: bytepluscc:alb:Rule
name: AlbRuleDemo
properties:
description: test-rewrite
domain: www.xxxx.test.com
listenerId: lsn-bdwhrmgvcyyo8dv4xxxxxx
rewriteConfig:
rewrite_path: /test
rewriteEnabled: on
ruleAction: ""
trafficLimitEnabled: off
trafficLimitQps: 0
url: /
forwardGroupConfig:
server_group_tuples:
- serverGroupId: rsp-1pf4pgyq8zitc845wfxxxxxx
weight: 100
- serverGroupId: rsp-1pf4pgyq8zitc845wfxxxxxx
weight: 100
sticky_session_enabled: on
sticky_session_timeout: 2000
Create Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);@overload
def Rule(resource_name: str,
args: RuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Rule(resource_name: str,
opts: Optional[ResourceOptions] = None,
listener_id: Optional[str] = None,
rewrite_config: Optional[RuleRewriteConfigArgs] = None,
rule_action: Optional[str] = None,
domain: Optional[str] = None,
priority: Optional[int] = None,
redirect_config: Optional[RuleRedirectConfigArgs] = None,
description: Optional[str] = None,
rewrite_enabled: Optional[str] = None,
forward_group_config: Optional[RuleForwardGroupConfigArgs] = None,
rule_actions: Optional[Sequence[RuleRuleActionArgs]] = None,
rule_conditions: Optional[Sequence[RuleRuleConditionArgs]] = None,
server_group_id: Optional[str] = None,
traffic_limit_enabled: Optional[str] = None,
traffic_limit_qps: Optional[int] = None,
url: Optional[str] = None)func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)type: bytepluscc:alb:Rule
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 RuleArgs
- 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 RuleArgs
- 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 RuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleArgs
- 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 ruleResource = new Bytepluscc.Alb.Rule("ruleResource", new()
{
ListenerId = "string",
RewriteConfig = new Bytepluscc.Alb.Inputs.RuleRewriteConfigArgs
{
RewritePath = "string",
},
RuleAction = "string",
Domain = "string",
Priority = 0,
RedirectConfig = new Bytepluscc.Alb.Inputs.RuleRedirectConfigArgs
{
RedirectDomain = "string",
RedirectHttpCode = "string",
RedirectPort = "string",
RedirectProtocol = "string",
RedirectUri = "string",
},
Description = "string",
RewriteEnabled = "string",
ForwardGroupConfig = new Bytepluscc.Alb.Inputs.RuleForwardGroupConfigArgs
{
ServerGroupTuples = new[]
{
new Bytepluscc.Alb.Inputs.RuleForwardGroupConfigServerGroupTupleArgs
{
ServerGroupId = "string",
Weight = 0,
},
},
StickySessionEnabled = "string",
StickySessionTimeout = 0,
},
RuleActions = new[]
{
new Bytepluscc.Alb.Inputs.RuleRuleActionArgs
{
FixedResponseConfig = new Bytepluscc.Alb.Inputs.RuleRuleActionFixedResponseConfigArgs
{
Content = "string",
ContentType = "string",
HttpCode = "string",
},
ForwardGroupConfig = new Bytepluscc.Alb.Inputs.RuleRuleActionForwardGroupConfigArgs
{
ServerGroupStickySession = new Bytepluscc.Alb.Inputs.RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs
{
Enabled = "string",
Timeout = 0,
},
ServerGroupTuples = new[]
{
new Bytepluscc.Alb.Inputs.RuleRuleActionForwardGroupConfigServerGroupTupleArgs
{
ServerGroupId = "string",
Weight = 0,
},
},
},
RedirectConfig = new Bytepluscc.Alb.Inputs.RuleRuleActionRedirectConfigArgs
{
Host = "string",
HttpCode = "string",
Path = "string",
Port = "string",
Protocol = "string",
},
RewriteConfig = new Bytepluscc.Alb.Inputs.RuleRuleActionRewriteConfigArgs
{
Path = "string",
},
TrafficLimitConfig = new Bytepluscc.Alb.Inputs.RuleRuleActionTrafficLimitConfigArgs
{
Qps = 0,
},
Type = "string",
},
},
RuleConditions = new[]
{
new Bytepluscc.Alb.Inputs.RuleRuleConditionArgs
{
HeaderConfig = new Bytepluscc.Alb.Inputs.RuleRuleConditionHeaderConfigArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
HostConfig = new Bytepluscc.Alb.Inputs.RuleRuleConditionHostConfigArgs
{
Values = new[]
{
"string",
},
},
MethodConfig = new Bytepluscc.Alb.Inputs.RuleRuleConditionMethodConfigArgs
{
Values = new[]
{
"string",
},
},
PathConfig = new Bytepluscc.Alb.Inputs.RuleRuleConditionPathConfigArgs
{
Values = new[]
{
"string",
},
},
QueryStringConfig = new Bytepluscc.Alb.Inputs.RuleRuleConditionQueryStringConfigArgs
{
Values = new[]
{
new Bytepluscc.Alb.Inputs.RuleRuleConditionQueryStringConfigValueArgs
{
Key = "string",
Value = "string",
},
},
},
Type = "string",
},
},
ServerGroupId = "string",
TrafficLimitEnabled = "string",
TrafficLimitQps = 0,
Url = "string",
});
example, err := alb.NewRule(ctx, "ruleResource", &alb.RuleArgs{
ListenerId: pulumi.String("string"),
RewriteConfig: &alb.RuleRewriteConfigArgs{
RewritePath: pulumi.String("string"),
},
RuleAction: pulumi.String("string"),
Domain: pulumi.String("string"),
Priority: pulumi.Int(0),
RedirectConfig: &alb.RuleRedirectConfigArgs{
RedirectDomain: pulumi.String("string"),
RedirectHttpCode: pulumi.String("string"),
RedirectPort: pulumi.String("string"),
RedirectProtocol: pulumi.String("string"),
RedirectUri: pulumi.String("string"),
},
Description: pulumi.String("string"),
RewriteEnabled: pulumi.String("string"),
ForwardGroupConfig: &alb.RuleForwardGroupConfigArgs{
ServerGroupTuples: alb.RuleForwardGroupConfigServerGroupTupleArray{
&alb.RuleForwardGroupConfigServerGroupTupleArgs{
ServerGroupId: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
StickySessionEnabled: pulumi.String("string"),
StickySessionTimeout: pulumi.Int(0),
},
RuleActions: alb.RuleRuleActionArray{
&alb.RuleRuleActionArgs{
FixedResponseConfig: &alb.RuleRuleActionFixedResponseConfigArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
HttpCode: pulumi.String("string"),
},
ForwardGroupConfig: &alb.RuleRuleActionForwardGroupConfigArgs{
ServerGroupStickySession: &alb.RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs{
Enabled: pulumi.String("string"),
Timeout: pulumi.Int(0),
},
ServerGroupTuples: alb.RuleRuleActionForwardGroupConfigServerGroupTupleArray{
&alb.RuleRuleActionForwardGroupConfigServerGroupTupleArgs{
ServerGroupId: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
},
RedirectConfig: &alb.RuleRuleActionRedirectConfigArgs{
Host: pulumi.String("string"),
HttpCode: pulumi.String("string"),
Path: pulumi.String("string"),
Port: pulumi.String("string"),
Protocol: pulumi.String("string"),
},
RewriteConfig: &alb.RuleRuleActionRewriteConfigArgs{
Path: pulumi.String("string"),
},
TrafficLimitConfig: &alb.RuleRuleActionTrafficLimitConfigArgs{
Qps: pulumi.Int(0),
},
Type: pulumi.String("string"),
},
},
RuleConditions: alb.RuleRuleConditionArray{
&alb.RuleRuleConditionArgs{
HeaderConfig: &alb.RuleRuleConditionHeaderConfigArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
HostConfig: &alb.RuleRuleConditionHostConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
MethodConfig: &alb.RuleRuleConditionMethodConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
PathConfig: &alb.RuleRuleConditionPathConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
QueryStringConfig: &alb.RuleRuleConditionQueryStringConfigArgs{
Values: alb.RuleRuleConditionQueryStringConfigValueArray{
&alb.RuleRuleConditionQueryStringConfigValueArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
Type: pulumi.String("string"),
},
},
ServerGroupId: pulumi.String("string"),
TrafficLimitEnabled: pulumi.String("string"),
TrafficLimitQps: pulumi.Int(0),
Url: pulumi.String("string"),
})
var ruleResource = new com.byteplus.bytepluscc.alb.Rule("ruleResource", com.byteplus.bytepluscc.alb.RuleArgs.builder()
.listenerId("string")
.rewriteConfig(RuleRewriteConfigArgs.builder()
.rewritePath("string")
.build())
.ruleAction("string")
.domain("string")
.priority(0)
.redirectConfig(RuleRedirectConfigArgs.builder()
.redirectDomain("string")
.redirectHttpCode("string")
.redirectPort("string")
.redirectProtocol("string")
.redirectUri("string")
.build())
.description("string")
.rewriteEnabled("string")
.forwardGroupConfig(RuleForwardGroupConfigArgs.builder()
.serverGroupTuples(RuleForwardGroupConfigServerGroupTupleArgs.builder()
.serverGroupId("string")
.weight(0)
.build())
.stickySessionEnabled("string")
.stickySessionTimeout(0)
.build())
.ruleActions(RuleRuleActionArgs.builder()
.fixedResponseConfig(RuleRuleActionFixedResponseConfigArgs.builder()
.content("string")
.contentType("string")
.httpCode("string")
.build())
.forwardGroupConfig(RuleRuleActionForwardGroupConfigArgs.builder()
.serverGroupStickySession(RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs.builder()
.enabled("string")
.timeout(0)
.build())
.serverGroupTuples(RuleRuleActionForwardGroupConfigServerGroupTupleArgs.builder()
.serverGroupId("string")
.weight(0)
.build())
.build())
.redirectConfig(RuleRuleActionRedirectConfigArgs.builder()
.host("string")
.httpCode("string")
.path("string")
.port("string")
.protocol("string")
.build())
.rewriteConfig(RuleRuleActionRewriteConfigArgs.builder()
.path("string")
.build())
.trafficLimitConfig(RuleRuleActionTrafficLimitConfigArgs.builder()
.qps(0)
.build())
.type("string")
.build())
.ruleConditions(RuleRuleConditionArgs.builder()
.headerConfig(RuleRuleConditionHeaderConfigArgs.builder()
.key("string")
.values("string")
.build())
.hostConfig(RuleRuleConditionHostConfigArgs.builder()
.values("string")
.build())
.methodConfig(RuleRuleConditionMethodConfigArgs.builder()
.values("string")
.build())
.pathConfig(RuleRuleConditionPathConfigArgs.builder()
.values("string")
.build())
.queryStringConfig(RuleRuleConditionQueryStringConfigArgs.builder()
.values(RuleRuleConditionQueryStringConfigValueArgs.builder()
.key("string")
.value("string")
.build())
.build())
.type("string")
.build())
.serverGroupId("string")
.trafficLimitEnabled("string")
.trafficLimitQps(0)
.url("string")
.build());
rule_resource = bytepluscc.alb.Rule("ruleResource",
listener_id="string",
rewrite_config={
"rewrite_path": "string",
},
rule_action="string",
domain="string",
priority=0,
redirect_config={
"redirect_domain": "string",
"redirect_http_code": "string",
"redirect_port": "string",
"redirect_protocol": "string",
"redirect_uri": "string",
},
description="string",
rewrite_enabled="string",
forward_group_config={
"server_group_tuples": [{
"server_group_id": "string",
"weight": 0,
}],
"sticky_session_enabled": "string",
"sticky_session_timeout": 0,
},
rule_actions=[{
"fixed_response_config": {
"content": "string",
"content_type": "string",
"http_code": "string",
},
"forward_group_config": {
"server_group_sticky_session": {
"enabled": "string",
"timeout": 0,
},
"server_group_tuples": [{
"server_group_id": "string",
"weight": 0,
}],
},
"redirect_config": {
"host": "string",
"http_code": "string",
"path": "string",
"port": "string",
"protocol": "string",
},
"rewrite_config": {
"path": "string",
},
"traffic_limit_config": {
"qps": 0,
},
"type": "string",
}],
rule_conditions=[{
"header_config": {
"key": "string",
"values": ["string"],
},
"host_config": {
"values": ["string"],
},
"method_config": {
"values": ["string"],
},
"path_config": {
"values": ["string"],
},
"query_string_config": {
"values": [{
"key": "string",
"value": "string",
}],
},
"type": "string",
}],
server_group_id="string",
traffic_limit_enabled="string",
traffic_limit_qps=0,
url="string")
const ruleResource = new bytepluscc.alb.Rule("ruleResource", {
listenerId: "string",
rewriteConfig: {
rewritePath: "string",
},
ruleAction: "string",
domain: "string",
priority: 0,
redirectConfig: {
redirectDomain: "string",
redirectHttpCode: "string",
redirectPort: "string",
redirectProtocol: "string",
redirectUri: "string",
},
description: "string",
rewriteEnabled: "string",
forwardGroupConfig: {
serverGroupTuples: [{
serverGroupId: "string",
weight: 0,
}],
stickySessionEnabled: "string",
stickySessionTimeout: 0,
},
ruleActions: [{
fixedResponseConfig: {
content: "string",
contentType: "string",
httpCode: "string",
},
forwardGroupConfig: {
serverGroupStickySession: {
enabled: "string",
timeout: 0,
},
serverGroupTuples: [{
serverGroupId: "string",
weight: 0,
}],
},
redirectConfig: {
host: "string",
httpCode: "string",
path: "string",
port: "string",
protocol: "string",
},
rewriteConfig: {
path: "string",
},
trafficLimitConfig: {
qps: 0,
},
type: "string",
}],
ruleConditions: [{
headerConfig: {
key: "string",
values: ["string"],
},
hostConfig: {
values: ["string"],
},
methodConfig: {
values: ["string"],
},
pathConfig: {
values: ["string"],
},
queryStringConfig: {
values: [{
key: "string",
value: "string",
}],
},
type: "string",
}],
serverGroupId: "string",
trafficLimitEnabled: "string",
trafficLimitQps: 0,
url: "string",
});
type: bytepluscc:alb:Rule
properties:
description: string
domain: string
forwardGroupConfig:
serverGroupTuples:
- serverGroupId: string
weight: 0
stickySessionEnabled: string
stickySessionTimeout: 0
listenerId: string
priority: 0
redirectConfig:
redirectDomain: string
redirectHttpCode: string
redirectPort: string
redirectProtocol: string
redirectUri: string
rewriteConfig:
rewritePath: string
rewriteEnabled: string
ruleAction: string
ruleActions:
- fixedResponseConfig:
content: string
contentType: string
httpCode: string
forwardGroupConfig:
serverGroupStickySession:
enabled: string
timeout: 0
serverGroupTuples:
- serverGroupId: string
weight: 0
redirectConfig:
host: string
httpCode: string
path: string
port: string
protocol: string
rewriteConfig:
path: string
trafficLimitConfig:
qps: 0
type: string
ruleConditions:
- headerConfig:
key: string
values:
- string
hostConfig:
values:
- string
methodConfig:
values:
- string
pathConfig:
values:
- string
queryStringConfig:
values:
- key: string
value: string
type: string
serverGroupId: string
trafficLimitEnabled: string
trafficLimitQps: 0
url: string
Rule 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 Rule resource accepts the following input properties:
- Listener
Id string - 监听器ID。
- Description string
- 转发规则的描述。
- Domain string
- 转发规则的域名。
- Forward
Group Byteplus.Config Rule Forward Group Config - 转发规则服务器组配置
- Priority int
- 标准版转发规则优先级。
- Redirect
Config Byteplus.Rule Redirect Config - 重定向相关配置信息。
- Rewrite
Config Byteplus.Rule Rewrite Config - 重定向相关配置信息。
- Rewrite
Enabled string - 转发规则重写配置开关。on:开启。off:关闭。
- Rule
Action string - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- Rule
Actions List<Byteplus.Rule Rule Action> - Rule
Conditions List<Byteplus.Rule Rule Condition> - Server
Group stringId - 转发规则关联的后端服务器组ID。
- Traffic
Limit stringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- Traffic
Limit intQps - 每秒请求数。取值范围:100~100000。
- Url string
- 转发规则的URL。
- Listener
Id string - 监听器ID。
- Description string
- 转发规则的描述。
- Domain string
- 转发规则的域名。
- Forward
Group RuleConfig Forward Group Config Args - 转发规则服务器组配置
- Priority int
- 标准版转发规则优先级。
- Redirect
Config RuleRedirect Config Args - 重定向相关配置信息。
- Rewrite
Config RuleRewrite Config Args - 重定向相关配置信息。
- Rewrite
Enabled string - 转发规则重写配置开关。on:开启。off:关闭。
- Rule
Action string - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- Rule
Actions []RuleRule Action Args - Rule
Conditions []RuleRule Condition Args - Server
Group stringId - 转发规则关联的后端服务器组ID。
- Traffic
Limit stringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- Traffic
Limit intQps - 每秒请求数。取值范围:100~100000。
- Url string
- 转发规则的URL。
- listener
Id String - 监听器ID。
- description String
- 转发规则的描述。
- domain String
- 转发规则的域名。
- forward
Group RuleConfig Forward Group Config - 转发规则服务器组配置
- priority Integer
- 标准版转发规则优先级。
- redirect
Config RuleRedirect Config - 重定向相关配置信息。
- rewrite
Config RuleRewrite Config - 重定向相关配置信息。
- rewrite
Enabled String - 转发规则重写配置开关。on:开启。off:关闭。
- rule
Action String - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule
Actions List<RuleRule Action> - rule
Conditions List<RuleRule Condition> - server
Group StringId - 转发规则关联的后端服务器组ID。
- traffic
Limit StringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic
Limit IntegerQps - 每秒请求数。取值范围:100~100000。
- url String
- 转发规则的URL。
- listener
Id string - 监听器ID。
- description string
- 转发规则的描述。
- domain string
- 转发规则的域名。
- forward
Group RuleConfig Forward Group Config - 转发规则服务器组配置
- priority number
- 标准版转发规则优先级。
- redirect
Config RuleRedirect Config - 重定向相关配置信息。
- rewrite
Config RuleRewrite Config - 重定向相关配置信息。
- rewrite
Enabled string - 转发规则重写配置开关。on:开启。off:关闭。
- rule
Action string - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule
Actions RuleRule Action[] - rule
Conditions RuleRule Condition[] - server
Group stringId - 转发规则关联的后端服务器组ID。
- traffic
Limit stringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic
Limit numberQps - 每秒请求数。取值范围:100~100000。
- url string
- 转发规则的URL。
- listener_
id str - 监听器ID。
- description str
- 转发规则的描述。
- domain str
- 转发规则的域名。
- forward_
group_ Ruleconfig Forward Group Config Args - 转发规则服务器组配置
- priority int
- 标准版转发规则优先级。
- redirect_
config RuleRedirect Config Args - 重定向相关配置信息。
- rewrite_
config RuleRewrite Config Args - 重定向相关配置信息。
- rewrite_
enabled str - 转发规则重写配置开关。on:开启。off:关闭。
- rule_
action str - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule_
actions Sequence[RuleRule Action Args] - rule_
conditions Sequence[RuleRule Condition Args] - server_
group_ strid - 转发规则关联的后端服务器组ID。
- traffic_
limit_ strenabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic_
limit_ intqps - 每秒请求数。取值范围:100~100000。
- url str
- 转发规则的URL。
- listener
Id String - 监听器ID。
- description String
- 转发规则的描述。
- domain String
- 转发规则的域名。
- forward
Group Property MapConfig - 转发规则服务器组配置
- priority Number
- 标准版转发规则优先级。
- redirect
Config Property Map - 重定向相关配置信息。
- rewrite
Config Property Map - 重定向相关配置信息。
- rewrite
Enabled String - 转发规则重写配置开关。on:开启。off:关闭。
- rule
Action String - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule
Actions List<Property Map> - rule
Conditions List<Property Map> - server
Group StringId - 转发规则关联的后端服务器组ID。
- traffic
Limit StringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic
Limit NumberQps - 每秒请求数。取值范围:100~100000。
- url String
- 转发规则的URL。
Outputs
All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:
Look up Existing Rule Resource
Get an existing Rule 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?: RuleState, opts?: CustomResourceOptions): Rule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
forward_group_config: Optional[RuleForwardGroupConfigArgs] = None,
listener_id: Optional[str] = None,
priority: Optional[int] = None,
redirect_config: Optional[RuleRedirectConfigArgs] = None,
rewrite_config: Optional[RuleRewriteConfigArgs] = None,
rewrite_enabled: Optional[str] = None,
rule_action: Optional[str] = None,
rule_actions: Optional[Sequence[RuleRuleActionArgs]] = None,
rule_conditions: Optional[Sequence[RuleRuleConditionArgs]] = None,
rule_id: Optional[str] = None,
server_group_id: Optional[str] = None,
traffic_limit_enabled: Optional[str] = None,
traffic_limit_qps: Optional[int] = None,
url: Optional[str] = None) -> Rulefunc GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)resources: _: type: bytepluscc:alb:Rule 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.
- Description string
- 转发规则的描述。
- Domain string
- 转发规则的域名。
- Forward
Group Byteplus.Config Rule Forward Group Config - 转发规则服务器组配置
- Listener
Id string - 监听器ID。
- Priority int
- 标准版转发规则优先级。
- Redirect
Config Byteplus.Rule Redirect Config - 重定向相关配置信息。
- Rewrite
Config Byteplus.Rule Rewrite Config - 重定向相关配置信息。
- Rewrite
Enabled string - 转发规则重写配置开关。on:开启。off:关闭。
- Rule
Action string - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- Rule
Actions List<Byteplus.Rule Rule Action> - Rule
Conditions List<Byteplus.Rule Rule Condition> - Rule
Id string - 转发规则ID。
- Server
Group stringId - 转发规则关联的后端服务器组ID。
- Traffic
Limit stringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- Traffic
Limit intQps - 每秒请求数。取值范围:100~100000。
- Url string
- 转发规则的URL。
- Description string
- 转发规则的描述。
- Domain string
- 转发规则的域名。
- Forward
Group RuleConfig Forward Group Config Args - 转发规则服务器组配置
- Listener
Id string - 监听器ID。
- Priority int
- 标准版转发规则优先级。
- Redirect
Config RuleRedirect Config Args - 重定向相关配置信息。
- Rewrite
Config RuleRewrite Config Args - 重定向相关配置信息。
- Rewrite
Enabled string - 转发规则重写配置开关。on:开启。off:关闭。
- Rule
Action string - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- Rule
Actions []RuleRule Action Args - Rule
Conditions []RuleRule Condition Args - Rule
Id string - 转发规则ID。
- Server
Group stringId - 转发规则关联的后端服务器组ID。
- Traffic
Limit stringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- Traffic
Limit intQps - 每秒请求数。取值范围:100~100000。
- Url string
- 转发规则的URL。
- description String
- 转发规则的描述。
- domain String
- 转发规则的域名。
- forward
Group RuleConfig Forward Group Config - 转发规则服务器组配置
- listener
Id String - 监听器ID。
- priority Integer
- 标准版转发规则优先级。
- redirect
Config RuleRedirect Config - 重定向相关配置信息。
- rewrite
Config RuleRewrite Config - 重定向相关配置信息。
- rewrite
Enabled String - 转发规则重写配置开关。on:开启。off:关闭。
- rule
Action String - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule
Actions List<RuleRule Action> - rule
Conditions List<RuleRule Condition> - rule
Id String - 转发规则ID。
- server
Group StringId - 转发规则关联的后端服务器组ID。
- traffic
Limit StringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic
Limit IntegerQps - 每秒请求数。取值范围:100~100000。
- url String
- 转发规则的URL。
- description string
- 转发规则的描述。
- domain string
- 转发规则的域名。
- forward
Group RuleConfig Forward Group Config - 转发规则服务器组配置
- listener
Id string - 监听器ID。
- priority number
- 标准版转发规则优先级。
- redirect
Config RuleRedirect Config - 重定向相关配置信息。
- rewrite
Config RuleRewrite Config - 重定向相关配置信息。
- rewrite
Enabled string - 转发规则重写配置开关。on:开启。off:关闭。
- rule
Action string - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule
Actions RuleRule Action[] - rule
Conditions RuleRule Condition[] - rule
Id string - 转发规则ID。
- server
Group stringId - 转发规则关联的后端服务器组ID。
- traffic
Limit stringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic
Limit numberQps - 每秒请求数。取值范围:100~100000。
- url string
- 转发规则的URL。
- description str
- 转发规则的描述。
- domain str
- 转发规则的域名。
- forward_
group_ Ruleconfig Forward Group Config Args - 转发规则服务器组配置
- listener_
id str - 监听器ID。
- priority int
- 标准版转发规则优先级。
- redirect_
config RuleRedirect Config Args - 重定向相关配置信息。
- rewrite_
config RuleRewrite Config Args - 重定向相关配置信息。
- rewrite_
enabled str - 转发规则重写配置开关。on:开启。off:关闭。
- rule_
action str - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule_
actions Sequence[RuleRule Action Args] - rule_
conditions Sequence[RuleRule Condition Args] - rule_
id str - 转发规则ID。
- server_
group_ strid - 转发规则关联的后端服务器组ID。
- traffic_
limit_ strenabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic_
limit_ intqps - 每秒请求数。取值范围:100~100000。
- url str
- 转发规则的URL。
- description String
- 转发规则的描述。
- domain String
- 转发规则的域名。
- forward
Group Property MapConfig - 转发规则服务器组配置
- listener
Id String - 监听器ID。
- priority Number
- 标准版转发规则优先级。
- redirect
Config Property Map - 重定向相关配置信息。
- rewrite
Config Property Map - 重定向相关配置信息。
- rewrite
Enabled String - 转发规则重写配置开关。on:开启。off:关闭。
- rule
Action String - 转发规则动作。空:默认转发至服务器组。Redirect:重定向。
- rule
Actions List<Property Map> - rule
Conditions List<Property Map> - rule
Id String - 转发规则ID。
- server
Group StringId - 转发规则关联的后端服务器组ID。
- traffic
Limit StringEnabled - 转发规则 QPS 限速开关。on:开启。off:关闭。
- traffic
Limit NumberQps - 每秒请求数。取值范围:100~100000。
- url String
- 转发规则的URL。
Supporting Types
RuleForwardGroupConfig, RuleForwardGroupConfigArgs
- Server
Group List<Byteplus.Tuples Rule Forward Group Config Server Group Tuple> - Sticky
Session stringEnabled - 是否开启组间会话保持。on:开启。off:不开启。
- Sticky
Session intTimeout - 组件回话保持的超时时间。单位:秒。
- Server
Group []RuleTuples Forward Group Config Server Group Tuple - Sticky
Session stringEnabled - 是否开启组间会话保持。on:开启。off:不开启。
- Sticky
Session intTimeout - 组件回话保持的超时时间。单位:秒。
- server
Group List<RuleTuples Forward Group Config Server Group Tuple> - sticky
Session StringEnabled - 是否开启组间会话保持。on:开启。off:不开启。
- sticky
Session IntegerTimeout - 组件回话保持的超时时间。单位:秒。
- server
Group RuleTuples Forward Group Config Server Group Tuple[] - sticky
Session stringEnabled - 是否开启组间会话保持。on:开启。off:不开启。
- sticky
Session numberTimeout - 组件回话保持的超时时间。单位:秒。
- server_
group_ Sequence[Ruletuples Forward Group Config Server Group Tuple] - sticky_
session_ strenabled - 是否开启组间会话保持。on:开启。off:不开启。
- sticky_
session_ inttimeout - 组件回话保持的超时时间。单位:秒。
- server
Group List<Property Map>Tuples - sticky
Session StringEnabled - 是否开启组间会话保持。on:开启。off:不开启。
- sticky
Session NumberTimeout - 组件回话保持的超时时间。单位:秒。
RuleForwardGroupConfigServerGroupTuple, RuleForwardGroupConfigServerGroupTupleArgs
- Server
Group stringId - 转发到的目的服务器组 ID。
- Weight int
- 服务器组权重。
- Server
Group stringId - 转发到的目的服务器组 ID。
- Weight int
- 服务器组权重。
- server
Group StringId - 转发到的目的服务器组 ID。
- weight Integer
- 服务器组权重。
- server
Group stringId - 转发到的目的服务器组 ID。
- weight number
- 服务器组权重。
- server_
group_ strid - 转发到的目的服务器组 ID。
- weight int
- 服务器组权重。
- server
Group StringId - 转发到的目的服务器组 ID。
- weight Number
- 服务器组权重。
RuleRedirectConfig, RuleRedirectConfigArgs
- Redirect
Domain string - 重定向的域名。若创建/修改重定向类型的转发规则时,重定向域名设置为空,接口会返回${host},该变量含义为重定向域名与请求域名保持一致,但不支持创建/修改时,将重定向域名设置为${host}.。
- Redirect
Http stringCode - 重定向状态码。301、302、307、308。
- Redirect
Port string - 重定向的端口。若创建/修改重定向类型的转发规则时,重定向端口设置为空,接口会返回${port},该变量含义为重定向端口与请求端口(监听器端口)保持一致,但不支持创建/修改时,将重定向端口设置为${port}.。
- Redirect
Protocol string - 重定向使用的协议。HTTP、HTTPS。
- Redirect
Uri string - 重定向的URI。若创建/修改重定向类型的转发规则时,重定向uri设置为空,接口会返回${requesturi},该变量含义为重定向uri与请求uri保持一致,但不支持创建/修改时,将重定向uri设置为${requesturi}.。
- Redirect
Domain string - 重定向的域名。若创建/修改重定向类型的转发规则时,重定向域名设置为空,接口会返回${host},该变量含义为重定向域名与请求域名保持一致,但不支持创建/修改时,将重定向域名设置为${host}.。
- Redirect
Http stringCode - 重定向状态码。301、302、307、308。
- Redirect
Port string - 重定向的端口。若创建/修改重定向类型的转发规则时,重定向端口设置为空,接口会返回${port},该变量含义为重定向端口与请求端口(监听器端口)保持一致,但不支持创建/修改时,将重定向端口设置为${port}.。
- Redirect
Protocol string - 重定向使用的协议。HTTP、HTTPS。
- Redirect
Uri string - 重定向的URI。若创建/修改重定向类型的转发规则时,重定向uri设置为空,接口会返回${requesturi},该变量含义为重定向uri与请求uri保持一致,但不支持创建/修改时,将重定向uri设置为${requesturi}.。
- redirect
Domain String - 重定向的域名。若创建/修改重定向类型的转发规则时,重定向域名设置为空,接口会返回${host},该变量含义为重定向域名与请求域名保持一致,但不支持创建/修改时,将重定向域名设置为${host}.。
- redirect
Http StringCode - 重定向状态码。301、302、307、308。
- redirect
Port String - 重定向的端口。若创建/修改重定向类型的转发规则时,重定向端口设置为空,接口会返回${port},该变量含义为重定向端口与请求端口(监听器端口)保持一致,但不支持创建/修改时,将重定向端口设置为${port}.。
- redirect
Protocol String - 重定向使用的协议。HTTP、HTTPS。
- redirect
Uri String - 重定向的URI。若创建/修改重定向类型的转发规则时,重定向uri设置为空,接口会返回${requesturi},该变量含义为重定向uri与请求uri保持一致,但不支持创建/修改时,将重定向uri设置为${requesturi}.。
- redirect
Domain string - 重定向的域名。若创建/修改重定向类型的转发规则时,重定向域名设置为空,接口会返回${host},该变量含义为重定向域名与请求域名保持一致,但不支持创建/修改时,将重定向域名设置为${host}.。
- redirect
Http stringCode - 重定向状态码。301、302、307、308。
- redirect
Port string - 重定向的端口。若创建/修改重定向类型的转发规则时,重定向端口设置为空,接口会返回${port},该变量含义为重定向端口与请求端口(监听器端口)保持一致,但不支持创建/修改时,将重定向端口设置为${port}.。
- redirect
Protocol string - 重定向使用的协议。HTTP、HTTPS。
- redirect
Uri string - 重定向的URI。若创建/修改重定向类型的转发规则时,重定向uri设置为空,接口会返回${requesturi},该变量含义为重定向uri与请求uri保持一致,但不支持创建/修改时,将重定向uri设置为${requesturi}.。
- redirect_
domain str - 重定向的域名。若创建/修改重定向类型的转发规则时,重定向域名设置为空,接口会返回${host},该变量含义为重定向域名与请求域名保持一致,但不支持创建/修改时,将重定向域名设置为${host}.。
- redirect_
http_ strcode - 重定向状态码。301、302、307、308。
- redirect_
port str - 重定向的端口。若创建/修改重定向类型的转发规则时,重定向端口设置为空,接口会返回${port},该变量含义为重定向端口与请求端口(监听器端口)保持一致,但不支持创建/修改时,将重定向端口设置为${port}.。
- redirect_
protocol str - 重定向使用的协议。HTTP、HTTPS。
- redirect_
uri str - 重定向的URI。若创建/修改重定向类型的转发规则时,重定向uri设置为空,接口会返回${requesturi},该变量含义为重定向uri与请求uri保持一致,但不支持创建/修改时,将重定向uri设置为${requesturi}.。
- redirect
Domain String - 重定向的域名。若创建/修改重定向类型的转发规则时,重定向域名设置为空,接口会返回${host},该变量含义为重定向域名与请求域名保持一致,但不支持创建/修改时,将重定向域名设置为${host}.。
- redirect
Http StringCode - 重定向状态码。301、302、307、308。
- redirect
Port String - 重定向的端口。若创建/修改重定向类型的转发规则时,重定向端口设置为空,接口会返回${port},该变量含义为重定向端口与请求端口(监听器端口)保持一致,但不支持创建/修改时,将重定向端口设置为${port}.。
- redirect
Protocol String - 重定向使用的协议。HTTP、HTTPS。
- redirect
Uri String - 重定向的URI。若创建/修改重定向类型的转发规则时,重定向uri设置为空,接口会返回${requesturi},该变量含义为重定向uri与请求uri保持一致,但不支持创建/修改时,将重定向uri设置为${requesturi}.。
RuleRewriteConfig, RuleRewriteConfigArgs
- Rewrite
Path string - 重写路径。
- Rewrite
Path string - 重写路径。
- rewrite
Path String - 重写路径。
- rewrite
Path string - 重写路径。
- rewrite_
path str - 重写路径。
- rewrite
Path String - 重写路径。
RuleRuleAction, RuleRuleActionArgs
- Fixed
Response Byteplus.Config Rule Rule Action Fixed Response Config - FixedResponseConfig
- Forward
Group Byteplus.Config Rule Rule Action Forward Group Config - ForwardGroupConfig
- Redirect
Config Byteplus.Rule Rule Action Redirect Config - RedirectConfig
- Rewrite
Config Byteplus.Rule Rule Action Rewrite Config - RewriteConfig
- Traffic
Limit Byteplus.Config Rule Rule Action Traffic Limit Config - TrafficLimitConfig
- Type string
- 转发规则动作类型。ForwardGroup:转发至多个虚拟服务器组。Redirect: 重定向。Rewrite: 重写。TrafficLimit:流量限速。
- Fixed
Response RuleConfig Rule Action Fixed Response Config - FixedResponseConfig
- Forward
Group RuleConfig Rule Action Forward Group Config - ForwardGroupConfig
- Redirect
Config RuleRule Action Redirect Config - RedirectConfig
- Rewrite
Config RuleRule Action Rewrite Config - RewriteConfig
- Traffic
Limit RuleConfig Rule Action Traffic Limit Config - TrafficLimitConfig
- Type string
- 转发规则动作类型。ForwardGroup:转发至多个虚拟服务器组。Redirect: 重定向。Rewrite: 重写。TrafficLimit:流量限速。
- fixed
Response RuleConfig Rule Action Fixed Response Config - FixedResponseConfig
- forward
Group RuleConfig Rule Action Forward Group Config - ForwardGroupConfig
- redirect
Config RuleRule Action Redirect Config - RedirectConfig
- rewrite
Config RuleRule Action Rewrite Config - RewriteConfig
- traffic
Limit RuleConfig Rule Action Traffic Limit Config - TrafficLimitConfig
- type String
- 转发规则动作类型。ForwardGroup:转发至多个虚拟服务器组。Redirect: 重定向。Rewrite: 重写。TrafficLimit:流量限速。
- fixed
Response RuleConfig Rule Action Fixed Response Config - FixedResponseConfig
- forward
Group RuleConfig Rule Action Forward Group Config - ForwardGroupConfig
- redirect
Config RuleRule Action Redirect Config - RedirectConfig
- rewrite
Config RuleRule Action Rewrite Config - RewriteConfig
- traffic
Limit RuleConfig Rule Action Traffic Limit Config - TrafficLimitConfig
- type string
- 转发规则动作类型。ForwardGroup:转发至多个虚拟服务器组。Redirect: 重定向。Rewrite: 重写。TrafficLimit:流量限速。
- fixed_
response_ Ruleconfig Rule Action Fixed Response Config - FixedResponseConfig
- forward_
group_ Ruleconfig Rule Action Forward Group Config - ForwardGroupConfig
- redirect_
config RuleRule Action Redirect Config - RedirectConfig
- rewrite_
config RuleRule Action Rewrite Config - RewriteConfig
- traffic_
limit_ Ruleconfig Rule Action Traffic Limit Config - TrafficLimitConfig
- type str
- 转发规则动作类型。ForwardGroup:转发至多个虚拟服务器组。Redirect: 重定向。Rewrite: 重写。TrafficLimit:流量限速。
- fixed
Response Property MapConfig - FixedResponseConfig
- forward
Group Property MapConfig - ForwardGroupConfig
- redirect
Config Property Map - RedirectConfig
- rewrite
Config Property Map - RewriteConfig
- traffic
Limit Property MapConfig - TrafficLimitConfig
- type String
- 转发规则动作类型。ForwardGroup:转发至多个虚拟服务器组。Redirect: 重定向。Rewrite: 重写。TrafficLimit:流量限速。
RuleRuleActionFixedResponseConfig, RuleRuleActionFixedResponseConfigArgs
- Content string
- 返回的固定内容。
- Content
Type string - 返回的固定内容的格式。text/plain、text/css、text/html、application/javascript、application/json
- Http
Code string - 返回的 HTTP 状态码。
- Content string
- 返回的固定内容。
- Content
Type string - 返回的固定内容的格式。text/plain、text/css、text/html、application/javascript、application/json
- Http
Code string - 返回的 HTTP 状态码。
- content String
- 返回的固定内容。
- content
Type String - 返回的固定内容的格式。text/plain、text/css、text/html、application/javascript、application/json
- http
Code String - 返回的 HTTP 状态码。
- content string
- 返回的固定内容。
- content
Type string - 返回的固定内容的格式。text/plain、text/css、text/html、application/javascript、application/json
- http
Code string - 返回的 HTTP 状态码。
- content str
- 返回的固定内容。
- content_
type str - 返回的固定内容的格式。text/plain、text/css、text/html、application/javascript、application/json
- http_
code str - 返回的 HTTP 状态码。
- content String
- 返回的固定内容。
- content
Type String - 返回的固定内容的格式。text/plain、text/css、text/html、application/javascript、application/json
- http
Code String - 返回的 HTTP 状态码。
RuleRuleActionForwardGroupConfig, RuleRuleActionForwardGroupConfigArgs
- server
Group Property MapSticky Session - ServerGroupStickySession
- server
Group List<Property Map>Tuples
RuleRuleActionForwardGroupConfigServerGroupStickySession, RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs
RuleRuleActionForwardGroupConfigServerGroupTuple, RuleRuleActionForwardGroupConfigServerGroupTupleArgs
- Server
Group stringId - 转发到的目的服务器组 ID。
- Weight int
- 服务器组权重。
- Server
Group stringId - 转发到的目的服务器组 ID。
- Weight int
- 服务器组权重。
- server
Group StringId - 转发到的目的服务器组 ID。
- weight Integer
- 服务器组权重。
- server
Group stringId - 转发到的目的服务器组 ID。
- weight number
- 服务器组权重。
- server_
group_ strid - 转发到的目的服务器组 ID。
- weight int
- 服务器组权重。
- server
Group StringId - 转发到的目的服务器组 ID。
- weight Number
- 服务器组权重。
RuleRuleActionRedirectConfig, RuleRuleActionRedirectConfigArgs
RuleRuleActionRewriteConfig, RuleRuleActionRewriteConfigArgs
- Path string
- 重写路径。
- Path string
- 重写路径。
- path String
- 重写路径。
- path string
- 重写路径。
- path str
- 重写路径。
- path String
- 重写路径。
RuleRuleActionTrafficLimitConfig, RuleRuleActionTrafficLimitConfigArgs
- Qps int
- 每秒请求数。
- Qps int
- 每秒请求数。
- qps Integer
- 每秒请求数。
- qps number
- 每秒请求数。
- qps int
- 每秒请求数。
- qps Number
- 每秒请求数。
RuleRuleCondition, RuleRuleConditionArgs
- Header
Config Byteplus.Rule Rule Condition Header Config - HeaderConfig。
- Host
Config Byteplus.Rule Rule Condition Host Config - HostConfig。
- Method
Config Byteplus.Rule Rule Condition Method Config - MethodConfig。
- Path
Config Byteplus.Rule Rule Condition Path Config - PathConfig。
- Query
String Byteplus.Config Rule Rule Condition Query String Config - QueryStringConfig。
- Type string
- 标准版转发规则条件类型。Host: 域名。Path: 路径。Header:HTTP头字段。Method: 请求方法。QueryString: 查询参数。
- Header
Config RuleRule Condition Header Config - HeaderConfig。
- Host
Config RuleRule Condition Host Config - HostConfig。
- Method
Config RuleRule Condition Method Config - MethodConfig。
- Path
Config RuleRule Condition Path Config - PathConfig。
- Query
String RuleConfig Rule Condition Query String Config - QueryStringConfig。
- Type string
- 标准版转发规则条件类型。Host: 域名。Path: 路径。Header:HTTP头字段。Method: 请求方法。QueryString: 查询参数。
- header
Config RuleRule Condition Header Config - HeaderConfig。
- host
Config RuleRule Condition Host Config - HostConfig。
- method
Config RuleRule Condition Method Config - MethodConfig。
- path
Config RuleRule Condition Path Config - PathConfig。
- query
String RuleConfig Rule Condition Query String Config - QueryStringConfig。
- type String
- 标准版转发规则条件类型。Host: 域名。Path: 路径。Header:HTTP头字段。Method: 请求方法。QueryString: 查询参数。
- header
Config RuleRule Condition Header Config - HeaderConfig。
- host
Config RuleRule Condition Host Config - HostConfig。
- method
Config RuleRule Condition Method Config - MethodConfig。
- path
Config RuleRule Condition Path Config - PathConfig。
- query
String RuleConfig Rule Condition Query String Config - QueryStringConfig。
- type string
- 标准版转发规则条件类型。Host: 域名。Path: 路径。Header:HTTP头字段。Method: 请求方法。QueryString: 查询参数。
- header_
config RuleRule Condition Header Config - HeaderConfig。
- host_
config RuleRule Condition Host Config - HostConfig。
- method_
config RuleRule Condition Method Config - MethodConfig。
- path_
config RuleRule Condition Path Config - PathConfig。
- query_
string_ Ruleconfig Rule Condition Query String Config - QueryStringConfig。
- type str
- 标准版转发规则条件类型。Host: 域名。Path: 路径。Header:HTTP头字段。Method: 请求方法。QueryString: 查询参数。
- header
Config Property Map - HeaderConfig。
- host
Config Property Map - HostConfig。
- method
Config Property Map - MethodConfig。
- path
Config Property Map - PathConfig。
- query
String Property MapConfig - QueryStringConfig。
- type String
- 标准版转发规则条件类型。Host: 域名。Path: 路径。Header:HTTP头字段。Method: 请求方法。QueryString: 查询参数。
RuleRuleConditionHeaderConfig, RuleRuleConditionHeaderConfigArgs
RuleRuleConditionHostConfig, RuleRuleConditionHostConfigArgs
- Values List<string>
- 转发规则的域名,支持泛域名和精确域名。
- Values []string
- 转发规则的域名,支持泛域名和精确域名。
- values List<String>
- 转发规则的域名,支持泛域名和精确域名。
- values string[]
- 转发规则的域名,支持泛域名和精确域名。
- values Sequence[str]
- 转发规则的域名,支持泛域名和精确域名。
- values List<String>
- 转发规则的域名,支持泛域名和精确域名。
RuleRuleConditionMethodConfig, RuleRuleConditionMethodConfigArgs
- Values List<string>
- 请求方法。支持HEAD、GET、POST、OPTIONS、PUT、PATCH、DELETE。
- Values []string
- 请求方法。支持HEAD、GET、POST、OPTIONS、PUT、PATCH、DELETE。
- values List<String>
- 请求方法。支持HEAD、GET、POST、OPTIONS、PUT、PATCH、DELETE。
- values string[]
- 请求方法。支持HEAD、GET、POST、OPTIONS、PUT、PATCH、DELETE。
- values Sequence[str]
- 请求方法。支持HEAD、GET、POST、OPTIONS、PUT、PATCH、DELETE。
- values List<String>
- 请求方法。支持HEAD、GET、POST、OPTIONS、PUT、PATCH、DELETE。
RuleRuleConditionPathConfig, RuleRuleConditionPathConfigArgs
- Values List<string>
- 转发规则的URL,仅支持绝对路径。
- Values []string
- 转发规则的URL,仅支持绝对路径。
- values List<String>
- 转发规则的URL,仅支持绝对路径。
- values string[]
- 转发规则的URL,仅支持绝对路径。
- values Sequence[str]
- 转发规则的URL,仅支持绝对路径。
- values List<String>
- 转发规则的URL,仅支持绝对路径。
RuleRuleConditionQueryStringConfig, RuleRuleConditionQueryStringConfigArgs
RuleRuleConditionQueryStringConfigValue, RuleRuleConditionQueryStringConfigValueArgs
Import
$ pulumi import bytepluscc:alb/rule:Rule example "listener_id|rule_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
