» alicloud_api_gateway_apis

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 - (Optional) 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.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • 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.