文档

alicloud_ga_domain

更新时间:
一键部署

Provides a Ga Domain resource.

For information about Ga Domain and how to use it, see What is Domain.

-> NOTE: Available since v1.197.0.

Example Usage

Basic Usage

resource "alicloud_ga_accelerator" "default" {
  duration        = 1
  auto_use_coupon = true
  spec            = "1"
}

resource "alicloud_ga_domain" "default" {
  domain         = "changes.com.cn"
  accelerator_id = alicloud_ga_accelerator.default.id
}

Argument Reference

The following arguments are supported:

  • accelerator_id - (Required, ForceNew) The ID of the global acceleration instance.
  • domain - (Required, ForceNew) The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.

Attributes Reference

The following attributes are exported:

  • id - The key of the resource supplied above. The value is formulated as <accelerator_id>:<domain>.
  • status - The status of the resource

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Domain.
  • delete - (Defaults to 5 mins) Used when delete the Domain.

Import

Ga Domain can be imported using the id, e.g.

$ terraform import alicloud_ga_domain.example <accelerator_id>:<domain>

  • 本页导读 (0)
文档反馈