alicloud_esa_rate_plan_instance
更新时间:
Provides a ESA Rate Plan Instance resource.
For information about ESA Rate Plan Instance and how to use it, see What is Rate Plan Instance.
-> NOTE: Available since v1.234.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_esa_rate_plan_instance" "default" {
type = "NS"
auto_renew = true
period = "1"
payment_type = "Subscription"
coverage = "overseas"
plan_name = "basic"
auto_pay = true
}
Argument Reference
The following arguments are supported:
payment_type
- (Optional, ForceNew) The payment type of the resource. Valid values:Subscription
: subscription.
auto_pay
- (Optional) Specifies whether to enable auto payment.auto_renew
- (Optional) Auto-renewal:true
: Enable auto-renewal.false
: Disable auto-renewal.
coverage
- (Optional) The service locations for the websites that can be associated with the plan. Multiple values are separated by commas (,). Valid values:domestic
: the Chinese mainland.overseas
: outside the Chinese mainland.global
: global.
period
- (Optional, Int) Subscription period (in months).plan_name
- (Optional) Package name.Value range:entranceplan_intl
:Entrance Planbasicplan_intl
:Pro Planvipplan_intl
:Premium Plan
type
- (Optional) The DNS setup option for the website. Valid values:NS
CNAME
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The time when the plan was purchased.status
- The status of the resource.instance_status
- The plan instance status.Renewing
: renewingupgrading
: upgradingreleasePrepaidService
: Prepaid overdue releasecreating
: creatingdowngrading
: downgradingceasePrepaidService
: prepaid servicerunning
: running
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Rate Plan Instance.delete
- (Defaults to 5 mins) Used when delete the Rate Plan Instance.update
- (Defaults to 5 mins) Used when update the Rate Plan Instance.
Import
ESA Rate Plan Instance can be imported using the id, e.g.
$ terraform import alicloud_esa_rate_plan_instance.example <id>
该文章对您有帮助吗?