alicloud_dcdn_ipa_domain
更新时间:
Provides a DCDN Ipa Domain resource.
For information about DCDN Ipa Domain and how to use it, see What is Ipa Domain.
-> NOTE: Available since v1.158.0.
Example Usage
Basic Usage
resource "random_integer" "default" {
min = 10000
max = 99999
}
data "alicloud_resource_manager_resource_groups" "default" {}
resource "alicloud_dcdn_ipa_domain" "example" {
domain_name = "example-${random_integer.default.result}.com"
resource_group_id = data.alicloud_resource_manager_resource_groups.default.groups.0.id
scope = "overseas"
status = "online"
sources {
content = "www.alicloud-provider.cn"
port = 8898
priority = "20"
type = "domain"
weight = 10
}
}
Argument Reference
The following arguments are supported:
domain_name
- (Required, ForceNew) The domain name to be added to IPA. Wildcard domain names are supported. A wildcard domain name must start with a period (.).resource_group_id
- (Optional) The ID of the resource group. If you do not set this parameter, the system automatically assigns the ID of the default resource group.scope
- (Optional, ForceNew) The accelerated region. Valid values:domestic
,global
,overseas
.sources
- (Required) Sources. Seesources
below.status
- (Optional) The status of DCDN Ipa Domain. Valid values:online
,offline
. Default toonline
.
sources
The sources supports the following:
content
- (Required) The address of the origin server. You can specify an IP address or a domain name.port
- (Required) The custom port number. Valid values:0
to65535
.priority
- (Required) The priority of the origin server. Valid values:20
and30
. Default value:20
. A value of 20 specifies that the origin is a primary origin. A value of 30 specifies that the origin is a secondary origin.type
- (Required) The type of the origin server. Valid values:ipaddr
,domain
,oss
.weight
- (Required) The weight of the origin server. You must specify a value that is less than100
. Default value:10
.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Ipa Domain. Its value is same asdomain_name
.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 10 mins) Used when Creating DCDN Ipa domain instance.update
- (Defaults to 5 mins) Used when Creating DCDN Ipa domain instance.delete
- (Defaults to 10 mins) Used when terminating the DCDN Ipa domain instance.
Import
DCDN Ipa Domain can be imported using the id, e.g.
$ terraform import alicloud_dcdn_ipa_domain.example <domain_name>
文档内容是否对您有帮助?