alicloud_api_gateway_apps

更新时间:

This data source provides the apps of the current Alibaba Cloud user.

Example Usage

data "alicloud_api_gateway_apps" "data_apigatway" {
  output_file = "outapps"
}

output "first_app_id" {
  value = "${data.alicloud_api_gateway_apps.data_apigatway.apps.0.id}"
}

Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to filter apps by name.
  • ids - (Optional, Available in 1.52.2+) A list of app IDs.
  • tags - (Optional, Available in v1.55.3+) A mapping of tags to assign to the resource.
  • 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:

  • ids - A list of app IDs.
  • names - A list of app names.
  • apps - A list of apps. Each element contains the following attributes:
    • id - App ID, which is generated by the system and globally unique.
    • name - App name.
    • description - App description.
    • created_time - Creation time (Greenwich mean time).
    • modified_time - Last modification time (Greenwich mean time).
    • app_code - App code.