alicloud_api_gateway_group

更新时间:

Provides an api group resource.To create an API, you must firstly create a group which is a basic attribute of the API.

For information about Api Gateway Group and how to use it, see Create An Api Group

-> NOTE: Available since v1.19.0.

-> NOTE: Terraform will auto build api group while it uses alicloud_api_gateway_group to build api group.

Example Usage

Basic Usage


resource "alicloud_api_gateway_group" "default" {
  name        = "tf_example"
  description = "tf_example"
  base_path   = "/"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the api gateway group. Defaults to null.
  • description - (Optional) The description of the api gateway group. Defaults to null.
  • instance_id - (Optional, ForceNew, Available in 1.179.0+) The id of the api gateway.
  • base_path - (Optional, Computed, Available since v1.228.0) The base path of the api gateway group. Defaults to /.

Attributes Reference

The following attributes are exported:

  • id - The ID of the api group of api gateway.
  • sub_domain - (Available in 1.69.0+) Second-level domain name automatically assigned to the API group.
  • vpc_domain - (Available in 1.69.0+) Second-level VPC domain name automatically assigned to the API group.

Import

Api gateway group can be imported using the id, e.g.

$ terraform import alicloud_api_gateway_group.example "ab2351f2ce904edaa8d92a0510832b91"