alicloud_sae_grey_tag_routes
更新时间:
This data source provides the Sae GreyTagRoutes of the current Alibaba Cloud user.
-> NOTE: Available in v1.160.0+.
Example Usage
Basic Usage
data "alicloud_sae_grey_tag_routes" "nameRegex" {
app_id = "example_id"
name_regex = "^my-GreyTagRoute"
}
output "sae_grey_tag_routes_id" {
value = data.alicloud_sae_grey_tag_routes.nameRegex.routes.0.id
}
Argument Reference
The following arguments are supported:
app_id
- (Required, ForceNew) The ID of the SAE Application.ids
- (Optional, ForceNew, Computed) A list of GreyTagRoute IDs.name_regex
- (Optional, ForceNew) A regex string to filter results by GreyTagRoute name.output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
Argument Reference
The following attributes are exported in addition to the arguments listed above:
names
- A list of GreyTagRoute names.routes
- A list of Sae GreyTagRoutes. Each element contains the following attributes:id
- The ID of the GreyTagRoute.dubbo_rules
- The grayscale rule created for Dubbo Application.method_name
- The method nameservice_name
- The service name.version
- The service version.condition
- The conditional Patterns for Grayscale Rules.group
- The service group.items
- A list of conditions items.index
- The parameter number.expr
- The parameter value gets the expression.cond
- The comparison operator.value
- The value of the parameter.operator
- The operator.
description
- The description of GreyTagRoute.grey_tag_route_name
- The name of GreyTagRoute.sc_rules
- The grayscale rule created for SpringCloud Application.path
- The path corresponding to the grayscale rule.condition
- The Conditional Patterns for Grayscale Rules.items
- A list of conditions items.name
- The name of the parameter.type
- The Compare types.cond
- The comparison operator.value
- The value of the parameter.operator
- The operator.
文档内容是否对您有帮助?