alicloud_api_gateway_model

Provides a Api Gateway Model resource.

For information about Api Gateway Model and how to use it, see What is Model.

Example Usage

Basic Usage

resource "alicloud_api_gateway_group" "default" {
  name        = "example_value"
  description = "example_value"
}

resource "alicloud_api_gateway_model" "default" {
  group_id    = alicloud_api_gateway_group.default.id
  model_name  = "example_value"
  schema      = "{\"type\":\"object\",\"properties\":{\"id\":{\"format\":\"int64\",\"maximum\":100,\"exclusiveMaximum\":true,\"type\":\"integer\"},\"name\":{\"maxLength\":10,\"type\":\"string\"}}}"
  description = "example_value"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Api Gateway Model can be imported using the id, e.g.

$ terraform import alicloud_api_gateway_model.example <group_id>:<model_name>