This data source provides the apis of the current Alibaba Cloud user.
Example Usage
data "alicloud_api_gateway_apis" "data_apigatway_apis" {
output_file = "output_ApiGatawayApis"
}
output "first_api_id" {
value = "${data.alicloud_api_gateway_apis.data_apigatway.apis.0.id}"
}
Argument Reference
The following arguments are supported:
api_id
- (Deprecated, Optional) (It has been deprecated from version 1.52.2, and use field 'ids' to replace.) ID of the specified API.group_id
- (Optional) ID of the specified group.name_regex
- (Optional) A regex string to filter api gateway apis by name.ids
- (Optional, Available 1.52.2+) A list of api IDs.output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids
- A list of api IDs.names
- A list of api names.apis
- A list of apis. Each element contains the following attributes:id
- API ID, which is generated by the system and globally unique.name
- API name.description
- API description.region_id
- The ID of the region where the API is located.group_id
- The group id that the apis belong to.group_name
- The group name that the apis belong to.
反馈
- 本页导读 (0)
文档反馈