alicloud_esa_client_certificate
更新时间:
Provides a ESA Client Certificate resource.
For information about ESA Client Certificate and how to use it, see What is Client Certificate.
-> NOTE: Available since v1.244.0.
Example Usage
Basic Usage
data "alicloud_esa_sites" "default" {
plan_subscribe_type = "enterpriseplan"
site_name = "gositecdn.cn"
}
resource "alicloud_esa_client_certificate" "default" {
site_id = data.alicloud_esa_sites.default.sites.0.id
pkey_type = "RSA"
validity_days = "365"
}
Argument Reference
The following arguments are supported:
csr- (Optional) Certificate signing request content.pkey_type- (Optional) The private key algorithm type.site_id- (Required, ForceNew, Int) Site Idvalidity_days- (Required) Certificate validity period.status- (Optional) The certificate status. Valid values:revoked,active.
Attributes Reference
The following attributes are exported:
id- The ID of the resource supplied above.The value is formulated as<site_id>:<client_cert_id>.client_cert_id- ClientCertificate Idcreate_time- The time when the certificate was created.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Client Certificate.delete- (Defaults to 5 mins) Used when delete the Client Certificate.update- (Defaults to 5 mins) Used when update the Client Certificate.
Import
ESA Client Certificate can be imported using the id, e.g.
$ terraform import alicloud_esa_client_certificate.example <site_id>:<client_cert_id>
该文章对您有帮助吗?