Provides a Quotas Template Applications resource. Template Batch Application.
For information about Quotas Template Applications and how to use it, see What is Template Applications.
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_resource_manager_account" "account" {
display_name = "${var.name}-${random_integer.default.result}"
}
resource "alicloud_quotas_template_applications" "default" {
env_language = "zh"
notice_type = "0"
quota_category = "WhiteListLabel"
desire_value = "1"
reason = "example"
quota_action_code = "quotas.label_multi/A"
effective_time = "2023-12-03T16:00:00Z"
aliyun_uids = [
"${alicloud_resource_manager_account.account.id}"
]
product_code = "quotas"
expire_time = "2023-12-26T16:00:00Z"
}
alicloud_quotas_template_applications
or removing it from your configurationTerraform cannot destroy resource alicloud_quotas_template_applications
. Terraform will remove this resource from the state file, however resources may remain.
The following arguments are supported:
aliyun_uids
- (Required, ForceNew) The list of Alibaba Cloud accounts (primary accounts) of the resource directory members to which the quota is applied.dimensions
The dimensions supports the following:
key
- (Optional, ForceNew) Quota dimension Key.value
- (Optional, ForceNew) Quota dimension Value.The following attributes are exported:
id
- The ID of the resource supplied above.quota_application_details
- List of quota application details.
aliyun_uid
- Alibaba Cloud account (primary account).application_id
- The ID of the quota promotion request.approve_value
- The approved quota value of the quota increase request.audit_reason
- Approval comments on quota increase applications.env_language
- The language of the quota alert notification. Value: zh: Chinese, en: English.notice_type
- Whether to notify the quota increase application result. Value: 0: No, 3: Yes.period
- Quota calculation period.period_unit
- Quota calculation cycle unit.period_value
- The quota calculation period value.dimensions
- Quota dimension.quota_arn
- Quota ARN.quota_description
- The quota description.quota_name
- The quota name.quota_unit
- Quota unit.reason
- The reason for the quota increase application.status
- The approval status of the quota promotion application. Value:The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Template Applications.Quotas Template Applications can be imported using the id, e.g.
$ terraform import alicloud_quotas_template_applications.example <id>