alicloud_esa_sites
更新时间:2025-04-02 01:36:47
This data source provides Esa Site available to the user.What is Site
-> NOTE: Available since v1.244.0.
Example Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_esa_rate_plan_instance" "defaultIEoDfU" {
type = "NS"
auto_renew = true
period = "1"
payment_type = "Subscription"
coverage = "overseas"
auto_pay = true
plan_name = "basic"
}
resource "alicloud_esa_site" "default" {
site_name = "bcd.com"
coverage = "overseas"
access_type = "NS"
instance_id = alicloud_esa_rate_plan_instance.defaultIEoDfU.id
}
data "alicloud_esa_sites" "default" {
ids = ["${alicloud_esa_site.default.id}"]
name_regex = alicloud_esa_site.default.site_name
site_name = "bcd.com"
}
output "alicloud_esa_site_example_id" {
value = data.alicloud_esa_sites.default.sites.0.id
}
Argument Reference
The following arguments are supported:
access_type
- (ForceNew, Optional) Access type. Value:-NS: Managed access via NS.-CNAME: access through CNAME.coverage
- (ForceNew, Optional) Acceleration areaonly_enterprise
- (ForceNew, Optional) Only the Enterprise version, pass true when the table only queries the enterprise version of the site.page_number
- (ForceNew, Optional) Current page number.page_size
- (ForceNew, Optional) Number of records per page.plan_subscribe_type
- (ForceNew, Optional) Package subscription type. Value:-basicplan: Basic version.-standardplan: Standard version.-advancedplan: Advanced version.-enterpriseplan: Enterprise Edition.resource_group_id
- (ForceNew, Optional) The ID of the resource groupsite_name
- (ForceNew, Optional) Site Namesite_search_type
- (ForceNew, Optional) The search match pattern for the site name. The default value is exact match. Valid values:-prefix: matches the prefix.-suffix: The suffix matches.-exact: exact match.-fuzzy: fuzzy match.status
- (ForceNew, Optional) The status of the resourcetags
- (ForceNew, Optional) Resource tagsids
- (Optional, ForceNew, Computed) A list of Site IDs.name_regex
- (Optional, ForceNew) A regex string to filter results by Group Metric Rule name.output_file
- (Optional, ForceNew) File name where to save data source results (after runningterraform plan
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids
- A list of Site IDs.names
- A list of name of Sites.sites
- A list of Site Entries. Each element contains the following attributes:access_type
- Access type. Value:-NS: Managed access via NS.-CNAME: access through CNAME.coverage
- Acceleration areacreate_time
- Creation timeinstance_id
- The ID of the associated package instance.modify_time
- Modification timename_server_list
- Site Resolution Name Server Listresource_group_id
- The ID of the resource groupsite_id
- Site IDsite_name
- Site Namestatus
- The status of the resourceid
- The ID of the resource supplied above.
该文章对您有帮助吗?
- 本页导读 (1)
- Example Usage
- Argument Reference
- Attributes Reference