published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
ALB distributes incoming traffic based on the forwarding rules you set. You can configure multiple forwarding rules for a single listener. Basic edition ALB instances support forwarding rules based on domain and path. Standard edition ALB instances support forwarding rules based on domain, path, and HTTP headers, and support composite forwarding conditions.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
albRuleDemo:
type: volcenginecc: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: volcenginecc: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.
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 - Listener ID.
- Description string
- Forwarding rule description.
- Domain string
- Domain name of the forwarding rule.
- Forward
Group Volcengine.Config Rule Forward Group Config - Forwarding rule server group configuration.
- Priority int
- Standard edition forwarding rule priority.
- Redirect
Config Volcengine.Rule Redirect Config - Redirect-related configuration information.
- Rewrite
Config Volcengine.Rule Rewrite Config - Redirect-related configuration information.
- Rewrite
Enabled string - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- Rule
Action string - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- Rule
Actions List<Volcengine.Rule Rule Action> - Rule
Conditions List<Volcengine.Rule Rule Condition> - Server
Group stringId - Backend server group ID associated with the forwarding rule.
- Traffic
Limit stringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- Traffic
Limit intQps - Requests per second. Range: 100–100000.
- Url string
- Forwarding rule URL.
- Listener
Id string - Listener ID.
- Description string
- Forwarding rule description.
- Domain string
- Domain name of the forwarding rule.
- Forward
Group RuleConfig Forward Group Config Args - Forwarding rule server group configuration.
- Priority int
- Standard edition forwarding rule priority.
- Redirect
Config RuleRedirect Config Args - Redirect-related configuration information.
- Rewrite
Config RuleRewrite Config Args - Redirect-related configuration information.
- Rewrite
Enabled string - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- Rule
Action string - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- Rule
Actions []RuleRule Action Args - Rule
Conditions []RuleRule Condition Args - Server
Group stringId - Backend server group ID associated with the forwarding rule.
- Traffic
Limit stringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- Traffic
Limit intQps - Requests per second. Range: 100–100000.
- Url string
- Forwarding rule URL.
- listener
Id String - Listener ID.
- description String
- Forwarding rule description.
- domain String
- Domain name of the forwarding rule.
- forward
Group RuleConfig Forward Group Config - Forwarding rule server group configuration.
- priority Integer
- Standard edition forwarding rule priority.
- redirect
Config RuleRedirect Config - Redirect-related configuration information.
- rewrite
Config RuleRewrite Config - Redirect-related configuration information.
- rewrite
Enabled String - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule
Action String - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule
Actions List<RuleRule Action> - rule
Conditions List<RuleRule Condition> - server
Group StringId - Backend server group ID associated with the forwarding rule.
- traffic
Limit StringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic
Limit IntegerQps - Requests per second. Range: 100–100000.
- url String
- Forwarding rule URL.
- listener
Id string - Listener ID.
- description string
- Forwarding rule description.
- domain string
- Domain name of the forwarding rule.
- forward
Group RuleConfig Forward Group Config - Forwarding rule server group configuration.
- priority number
- Standard edition forwarding rule priority.
- redirect
Config RuleRedirect Config - Redirect-related configuration information.
- rewrite
Config RuleRewrite Config - Redirect-related configuration information.
- rewrite
Enabled string - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule
Action string - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule
Actions RuleRule Action[] - rule
Conditions RuleRule Condition[] - server
Group stringId - Backend server group ID associated with the forwarding rule.
- traffic
Limit stringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic
Limit numberQps - Requests per second. Range: 100–100000.
- url string
- Forwarding rule URL.
- listener_
id str - Listener ID.
- description str
- Forwarding rule description.
- domain str
- Domain name of the forwarding rule.
- forward_
group_ Ruleconfig Forward Group Config Args - Forwarding rule server group configuration.
- priority int
- Standard edition forwarding rule priority.
- redirect_
config RuleRedirect Config Args - Redirect-related configuration information.
- rewrite_
config RuleRewrite Config Args - Redirect-related configuration information.
- rewrite_
enabled str - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule_
action str - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule_
actions Sequence[RuleRule Action Args] - rule_
conditions Sequence[RuleRule Condition Args] - server_
group_ strid - Backend server group ID associated with the forwarding rule.
- traffic_
limit_ strenabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic_
limit_ intqps - Requests per second. Range: 100–100000.
- url str
- Forwarding rule URL.
- listener
Id String - Listener ID.
- description String
- Forwarding rule description.
- domain String
- Domain name of the forwarding rule.
- forward
Group Property MapConfig - Forwarding rule server group configuration.
- priority Number
- Standard edition forwarding rule priority.
- redirect
Config Property Map - Redirect-related configuration information.
- rewrite
Config Property Map - Redirect-related configuration information.
- rewrite
Enabled String - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule
Action String - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule
Actions List<Property Map> - rule
Conditions List<Property Map> - server
Group StringId - Backend server group ID associated with the forwarding rule.
- traffic
Limit StringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic
Limit NumberQps - Requests per second. Range: 100–100000.
- url String
- Forwarding rule 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: volcenginecc: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
- Forwarding rule description.
- Domain string
- Domain name of the forwarding rule.
- Forward
Group Volcengine.Config Rule Forward Group Config - Forwarding rule server group configuration.
- Listener
Id string - Listener ID.
- Priority int
- Standard edition forwarding rule priority.
- Redirect
Config Volcengine.Rule Redirect Config - Redirect-related configuration information.
- Rewrite
Config Volcengine.Rule Rewrite Config - Redirect-related configuration information.
- Rewrite
Enabled string - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- Rule
Action string - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- Rule
Actions List<Volcengine.Rule Rule Action> - Rule
Conditions List<Volcengine.Rule Rule Condition> - Rule
Id string - Forwarding rule ID.
- Server
Group stringId - Backend server group ID associated with the forwarding rule.
- Traffic
Limit stringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- Traffic
Limit intQps - Requests per second. Range: 100–100000.
- Url string
- Forwarding rule URL.
- Description string
- Forwarding rule description.
- Domain string
- Domain name of the forwarding rule.
- Forward
Group RuleConfig Forward Group Config Args - Forwarding rule server group configuration.
- Listener
Id string - Listener ID.
- Priority int
- Standard edition forwarding rule priority.
- Redirect
Config RuleRedirect Config Args - Redirect-related configuration information.
- Rewrite
Config RuleRewrite Config Args - Redirect-related configuration information.
- Rewrite
Enabled string - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- Rule
Action string - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- Rule
Actions []RuleRule Action Args - Rule
Conditions []RuleRule Condition Args - Rule
Id string - Forwarding rule ID.
- Server
Group stringId - Backend server group ID associated with the forwarding rule.
- Traffic
Limit stringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- Traffic
Limit intQps - Requests per second. Range: 100–100000.
- Url string
- Forwarding rule URL.
- description String
- Forwarding rule description.
- domain String
- Domain name of the forwarding rule.
- forward
Group RuleConfig Forward Group Config - Forwarding rule server group configuration.
- listener
Id String - Listener ID.
- priority Integer
- Standard edition forwarding rule priority.
- redirect
Config RuleRedirect Config - Redirect-related configuration information.
- rewrite
Config RuleRewrite Config - Redirect-related configuration information.
- rewrite
Enabled String - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule
Action String - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule
Actions List<RuleRule Action> - rule
Conditions List<RuleRule Condition> - rule
Id String - Forwarding rule ID.
- server
Group StringId - Backend server group ID associated with the forwarding rule.
- traffic
Limit StringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic
Limit IntegerQps - Requests per second. Range: 100–100000.
- url String
- Forwarding rule URL.
- description string
- Forwarding rule description.
- domain string
- Domain name of the forwarding rule.
- forward
Group RuleConfig Forward Group Config - Forwarding rule server group configuration.
- listener
Id string - Listener ID.
- priority number
- Standard edition forwarding rule priority.
- redirect
Config RuleRedirect Config - Redirect-related configuration information.
- rewrite
Config RuleRewrite Config - Redirect-related configuration information.
- rewrite
Enabled string - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule
Action string - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule
Actions RuleRule Action[] - rule
Conditions RuleRule Condition[] - rule
Id string - Forwarding rule ID.
- server
Group stringId - Backend server group ID associated with the forwarding rule.
- traffic
Limit stringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic
Limit numberQps - Requests per second. Range: 100–100000.
- url string
- Forwarding rule URL.
- description str
- Forwarding rule description.
- domain str
- Domain name of the forwarding rule.
- forward_
group_ Ruleconfig Forward Group Config Args - Forwarding rule server group configuration.
- listener_
id str - Listener ID.
- priority int
- Standard edition forwarding rule priority.
- redirect_
config RuleRedirect Config Args - Redirect-related configuration information.
- rewrite_
config RuleRewrite Config Args - Redirect-related configuration information.
- rewrite_
enabled str - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule_
action str - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule_
actions Sequence[RuleRule Action Args] - rule_
conditions Sequence[RuleRule Condition Args] - rule_
id str - Forwarding rule ID.
- server_
group_ strid - Backend server group ID associated with the forwarding rule.
- traffic_
limit_ strenabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic_
limit_ intqps - Requests per second. Range: 100–100000.
- url str
- Forwarding rule URL.
- description String
- Forwarding rule description.
- domain String
- Domain name of the forwarding rule.
- forward
Group Property MapConfig - Forwarding rule server group configuration.
- listener
Id String - Listener ID.
- priority Number
- Standard edition forwarding rule priority.
- redirect
Config Property Map - Redirect-related configuration information.
- rewrite
Config Property Map - Redirect-related configuration information.
- rewrite
Enabled String - Forwarding rule rewrite configuration switch. on: enabled. off: disabled.
- rule
Action String - Forwarding rule action. Empty: default forward to server group. Redirect: redirect.
- rule
Actions List<Property Map> - rule
Conditions List<Property Map> - rule
Id String - Forwarding rule ID.
- server
Group StringId - Backend server group ID associated with the forwarding rule.
- traffic
Limit StringEnabled - Forwarding rule QPS throttling switch. on: enabled. off: disabled.
- traffic
Limit NumberQps - Requests per second. Range: 100–100000.
- url String
- Forwarding rule URL.
Supporting Types
RuleForwardGroupConfig, RuleForwardGroupConfigArgs
- Server
Group List<Volcengine.Tuples Rule Forward Group Config Server Group Tuple> - Sticky
Session stringEnabled - Whether to enable inter-group session persistence. on: enabled. off: disabled.
- Sticky
Session intTimeout - Component session stickiness timeout. Unit: seconds.
- Server
Group []RuleTuples Forward Group Config Server Group Tuple - Sticky
Session stringEnabled - Whether to enable inter-group session persistence. on: enabled. off: disabled.
- Sticky
Session intTimeout - Component session stickiness timeout. Unit: seconds.
- server
Group List<RuleTuples Forward Group Config Server Group Tuple> - sticky
Session StringEnabled - Whether to enable inter-group session persistence. on: enabled. off: disabled.
- sticky
Session IntegerTimeout - Component session stickiness timeout. Unit: seconds.
- server
Group RuleTuples Forward Group Config Server Group Tuple[] - sticky
Session stringEnabled - Whether to enable inter-group session persistence. on: enabled. off: disabled.
- sticky
Session numberTimeout - Component session stickiness timeout. Unit: seconds.
- server_
group_ Sequence[Ruletuples Forward Group Config Server Group Tuple] - sticky_
session_ strenabled - Whether to enable inter-group session persistence. on: enabled. off: disabled.
- sticky_
session_ inttimeout - Component session stickiness timeout. Unit: seconds.
- server
Group List<Property Map>Tuples - sticky
Session StringEnabled - Whether to enable inter-group session persistence. on: enabled. off: disabled.
- sticky
Session NumberTimeout - Component session stickiness timeout. Unit: seconds.
RuleForwardGroupConfigServerGroupTuple, RuleForwardGroupConfigServerGroupTupleArgs
- Server
Group stringId - Destination server group ID.
- Weight int
- Server group weight.
- Server
Group stringId - Destination server group ID.
- Weight int
- Server group weight.
- server
Group StringId - Destination server group ID.
- weight Integer
- Server group weight.
- server
Group stringId - Destination server group ID.
- weight number
- Server group weight.
- server_
group_ strid - Destination server group ID.
- weight int
- Server group weight.
- server
Group StringId - Destination server group ID.
- weight Number
- Server group weight.
RuleRedirectConfig, RuleRedirectConfigArgs
- Redirect
Domain string - Redirect domain name. If the redirect domain name is left empty when creating or modifying a redirect forwarding rule, the API returns ${host}, which means the redirect domain matches the request domain. However, setting the redirect domain to ${host} is not supported when creating or modifying rules.
- Redirect
Http stringCode - Redirect status codes: 301, 302, 307, 308.
- Redirect
Port string - Redirect port. If the redirect port is left empty when creating or modifying a redirect forwarding rule, the API returns ${port}, which means the redirect port matches the request port (listener port). However, setting the redirect port to ${port} is not supported when creating or modifying rules.
- Redirect
Protocol string - Protocol used for redirect. HTTP, HTTPS.
- Redirect
Uri string - Redirect URI. If the redirect URI is left empty when creating or modifying a redirect forwarding rule, the API returns ${requesturi}, which means the redirect URI matches the request URI. However, setting the redirect URI to ${requesturi} is not supported when creating or modifying rules.
- Redirect
Domain string - Redirect domain name. If the redirect domain name is left empty when creating or modifying a redirect forwarding rule, the API returns ${host}, which means the redirect domain matches the request domain. However, setting the redirect domain to ${host} is not supported when creating or modifying rules.
- Redirect
Http stringCode - Redirect status codes: 301, 302, 307, 308.
- Redirect
Port string - Redirect port. If the redirect port is left empty when creating or modifying a redirect forwarding rule, the API returns ${port}, which means the redirect port matches the request port (listener port). However, setting the redirect port to ${port} is not supported when creating or modifying rules.
- Redirect
Protocol string - Protocol used for redirect. HTTP, HTTPS.
- Redirect
Uri string - Redirect URI. If the redirect URI is left empty when creating or modifying a redirect forwarding rule, the API returns ${requesturi}, which means the redirect URI matches the request URI. However, setting the redirect URI to ${requesturi} is not supported when creating or modifying rules.
- redirect
Domain String - Redirect domain name. If the redirect domain name is left empty when creating or modifying a redirect forwarding rule, the API returns ${host}, which means the redirect domain matches the request domain. However, setting the redirect domain to ${host} is not supported when creating or modifying rules.
- redirect
Http StringCode - Redirect status codes: 301, 302, 307, 308.
- redirect
Port String - Redirect port. If the redirect port is left empty when creating or modifying a redirect forwarding rule, the API returns ${port}, which means the redirect port matches the request port (listener port). However, setting the redirect port to ${port} is not supported when creating or modifying rules.
- redirect
Protocol String - Protocol used for redirect. HTTP, HTTPS.
- redirect
Uri String - Redirect URI. If the redirect URI is left empty when creating or modifying a redirect forwarding rule, the API returns ${requesturi}, which means the redirect URI matches the request URI. However, setting the redirect URI to ${requesturi} is not supported when creating or modifying rules.
- redirect
Domain string - Redirect domain name. If the redirect domain name is left empty when creating or modifying a redirect forwarding rule, the API returns ${host}, which means the redirect domain matches the request domain. However, setting the redirect domain to ${host} is not supported when creating or modifying rules.
- redirect
Http stringCode - Redirect status codes: 301, 302, 307, 308.
- redirect
Port string - Redirect port. If the redirect port is left empty when creating or modifying a redirect forwarding rule, the API returns ${port}, which means the redirect port matches the request port (listener port). However, setting the redirect port to ${port} is not supported when creating or modifying rules.
- redirect
Protocol string - Protocol used for redirect. HTTP, HTTPS.
- redirect
Uri string - Redirect URI. If the redirect URI is left empty when creating or modifying a redirect forwarding rule, the API returns ${requesturi}, which means the redirect URI matches the request URI. However, setting the redirect URI to ${requesturi} is not supported when creating or modifying rules.
- redirect_
domain str - Redirect domain name. If the redirect domain name is left empty when creating or modifying a redirect forwarding rule, the API returns ${host}, which means the redirect domain matches the request domain. However, setting the redirect domain to ${host} is not supported when creating or modifying rules.
- redirect_
http_ strcode - Redirect status codes: 301, 302, 307, 308.
- redirect_
port str - Redirect port. If the redirect port is left empty when creating or modifying a redirect forwarding rule, the API returns ${port}, which means the redirect port matches the request port (listener port). However, setting the redirect port to ${port} is not supported when creating or modifying rules.
- redirect_
protocol str - Protocol used for redirect. HTTP, HTTPS.
- redirect_
uri str - Redirect URI. If the redirect URI is left empty when creating or modifying a redirect forwarding rule, the API returns ${requesturi}, which means the redirect URI matches the request URI. However, setting the redirect URI to ${requesturi} is not supported when creating or modifying rules.
- redirect
Domain String - Redirect domain name. If the redirect domain name is left empty when creating or modifying a redirect forwarding rule, the API returns ${host}, which means the redirect domain matches the request domain. However, setting the redirect domain to ${host} is not supported when creating or modifying rules.
- redirect
Http StringCode - Redirect status codes: 301, 302, 307, 308.
- redirect
Port String - Redirect port. If the redirect port is left empty when creating or modifying a redirect forwarding rule, the API returns ${port}, which means the redirect port matches the request port (listener port). However, setting the redirect port to ${port} is not supported when creating or modifying rules.
- redirect
Protocol String - Protocol used for redirect. HTTP, HTTPS.
- redirect
Uri String - Redirect URI. If the redirect URI is left empty when creating or modifying a redirect forwarding rule, the API returns ${requesturi}, which means the redirect URI matches the request URI. However, setting the redirect URI to ${requesturi} is not supported when creating or modifying rules.
RuleRewriteConfig, RuleRewriteConfigArgs
- Rewrite
Path string - Rewrite path.
- Rewrite
Path string - Rewrite path.
- rewrite
Path String - Rewrite path.
- rewrite
Path string - Rewrite path.
- rewrite_
path str - Rewrite path.
- rewrite
Path String - Rewrite path.
RuleRuleAction, RuleRuleActionArgs
- Fixed
Response Volcengine.Config Rule Rule Action Fixed Response Config - FixedResponseConfig
- Forward
Group Volcengine.Config Rule Rule Action Forward Group Config - ForwardGroupConfig
- Redirect
Config Volcengine.Rule Rule Action Redirect Config - RedirectConfig
- Rewrite
Config Volcengine.Rule Rule Action Rewrite Config - RewriteConfig
- Traffic
Limit Volcengine.Config Rule Rule Action Traffic Limit Config - TrafficLimitConfig
- Type string
- Forwarding rule action types. ForwardGroup: forward to multiple virtual server groups. Redirect: redirect. Rewrite: rewrite. TrafficLimit: traffic limiting.
- 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
- Forwarding rule action types. ForwardGroup: forward to multiple virtual server groups. Redirect: redirect. Rewrite: rewrite. TrafficLimit: traffic limiting.
- 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
- Forwarding rule action types. ForwardGroup: forward to multiple virtual server groups. Redirect: redirect. Rewrite: rewrite. TrafficLimit: traffic limiting.
- 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
- Forwarding rule action types. ForwardGroup: forward to multiple virtual server groups. Redirect: redirect. Rewrite: rewrite. TrafficLimit: traffic limiting.
- 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
- Forwarding rule action types. ForwardGroup: forward to multiple virtual server groups. Redirect: redirect. Rewrite: rewrite. TrafficLimit: traffic limiting.
- 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
- Forwarding rule action types. ForwardGroup: forward to multiple virtual server groups. Redirect: redirect. Rewrite: rewrite. TrafficLimit: traffic limiting.
RuleRuleActionFixedResponseConfig, RuleRuleActionFixedResponseConfigArgs
- Content string
- Fixed response content.
- Content
Type string - Format of fixed response content. text/plain, text/css, text/html, application/javascript, application/json
- Http
Code string - Returned HTTP status code.
- Content string
- Fixed response content.
- Content
Type string - Format of fixed response content. text/plain, text/css, text/html, application/javascript, application/json
- Http
Code string - Returned HTTP status code.
- content String
- Fixed response content.
- content
Type String - Format of fixed response content. text/plain, text/css, text/html, application/javascript, application/json
- http
Code String - Returned HTTP status code.
- content string
- Fixed response content.
- content
Type string - Format of fixed response content. text/plain, text/css, text/html, application/javascript, application/json
- http
Code string - Returned HTTP status code.
- content str
- Fixed response content.
- content_
type str - Format of fixed response content. text/plain, text/css, text/html, application/javascript, application/json
- http_
code str - Returned HTTP status code.
- content String
- Fixed response content.
- content
Type String - Format of fixed response content. text/plain, text/css, text/html, application/javascript, application/json
- http
Code String - Returned HTTP status code.
RuleRuleActionForwardGroupConfig, RuleRuleActionForwardGroupConfigArgs
- server
Group Property MapSticky Session - ServerGroupStickySession
- server
Group List<Property Map>Tuples
RuleRuleActionForwardGroupConfigServerGroupStickySession, RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs
RuleRuleActionForwardGroupConfigServerGroupTuple, RuleRuleActionForwardGroupConfigServerGroupTupleArgs
- Server
Group stringId - Destination server group ID.
- Weight int
- Server group weight.
- Server
Group stringId - Destination server group ID.
- Weight int
- Server group weight.
- server
Group StringId - Destination server group ID.
- weight Integer
- Server group weight.
- server
Group stringId - Destination server group ID.
- weight number
- Server group weight.
- server_
group_ strid - Destination server group ID.
- weight int
- Server group weight.
- server
Group StringId - Destination server group ID.
- weight Number
- Server group weight.
RuleRuleActionRedirectConfig, RuleRuleActionRedirectConfigArgs
RuleRuleActionRewriteConfig, RuleRuleActionRewriteConfigArgs
- Path string
- Rewrite path.
- Path string
- Rewrite path.
- path String
- Rewrite path.
- path string
- Rewrite path.
- path str
- Rewrite path.
- path String
- Rewrite path.
RuleRuleActionTrafficLimitConfig, RuleRuleActionTrafficLimitConfigArgs
- Qps int
- Requests per second.
- Qps int
- Requests per second.
- qps Integer
- Requests per second.
- qps number
- Requests per second.
- qps int
- Requests per second.
- qps Number
- Requests per second.
RuleRuleCondition, RuleRuleConditionArgs
- Header
Config Volcengine.Rule Rule Condition Header Config - HeaderConfig。
- Host
Config Volcengine.Rule Rule Condition Host Config - HostConfig。
- Method
Config Volcengine.Rule Rule Condition Method Config - MethodConfig。
- Path
Config Volcengine.Rule Rule Condition Path Config - PathConfig。
- Query
String Volcengine.Config Rule Rule Condition Query String Config - QueryStringConfig。
- Type string
- Standard forwarding rule condition types. Host: domain name. Path: path. Header: HTTP header field. Method: request method. QueryString: query parameter.
- 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
- Standard forwarding rule condition types. Host: domain name. Path: path. Header: HTTP header field. Method: request method. QueryString: query parameter.
- 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
- Standard forwarding rule condition types. Host: domain name. Path: path. Header: HTTP header field. Method: request method. QueryString: query parameter.
- 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
- Standard forwarding rule condition types. Host: domain name. Path: path. Header: HTTP header field. Method: request method. QueryString: query parameter.
- 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
- Standard forwarding rule condition types. Host: domain name. Path: path. Header: HTTP header field. Method: request method. QueryString: query parameter.
- 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
- Standard forwarding rule condition types. Host: domain name. Path: path. Header: HTTP header field. Method: request method. QueryString: query parameter.
RuleRuleConditionHeaderConfig, RuleRuleConditionHeaderConfigArgs
RuleRuleConditionHostConfig, RuleRuleConditionHostConfigArgs
- Values List<string>
- Domain name of the forwarding rule. Supports wildcard and exact domains.
- Values []string
- Domain name of the forwarding rule. Supports wildcard and exact domains.
- values List<String>
- Domain name of the forwarding rule. Supports wildcard and exact domains.
- values string[]
- Domain name of the forwarding rule. Supports wildcard and exact domains.
- values Sequence[str]
- Domain name of the forwarding rule. Supports wildcard and exact domains.
- values List<String>
- Domain name of the forwarding rule. Supports wildcard and exact domains.
RuleRuleConditionMethodConfig, RuleRuleConditionMethodConfigArgs
- Values List<string>
- Request method. Supports HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE.
- Values []string
- Request method. Supports HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE.
- values List<String>
- Request method. Supports HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE.
- values string[]
- Request method. Supports HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE.
- values Sequence[str]
- Request method. Supports HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE.
- values List<String>
- Request method. Supports HEAD, GET, POST, OPTIONS, PUT, PATCH, DELETE.
RuleRuleConditionPathConfig, RuleRuleConditionPathConfigArgs
- Values List<string>
- Forwarding rule URL. Only absolute paths are supported.
- Values []string
- Forwarding rule URL. Only absolute paths are supported.
- values List<String>
- Forwarding rule URL. Only absolute paths are supported.
- values string[]
- Forwarding rule URL. Only absolute paths are supported.
- values Sequence[str]
- Forwarding rule URL. Only absolute paths are supported.
- values List<String>
- Forwarding rule URL. Only absolute paths are supported.
RuleRuleConditionQueryStringConfig, RuleRuleConditionQueryStringConfigArgs
RuleRuleConditionQueryStringConfigValue, RuleRuleConditionQueryStringConfigValueArgs
Import
$ pulumi import volcenginecc:alb/rule:Rule example "listener_id|rule_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
