Enables or disables a ShangMi (SM) certificate for a domain name.
Note The maximum number of times that each user can call this operation per second is 30.
Debugging
Request parameters
Name | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | SetCdnDomainSMCertificate |
The operation that you want to perform. Set the value to SetCdnDomainSMCertificate. |
CertIdentifier | String | Yes | 1234**** |
The ID of the SM certificate that you want to configure. |
DomainName | String | Yes | example.com |
The accelerated domain name for which you want to configure the SM certificate. Note The domain name uses HTTPS secure acceleration.
|
SSLProtocol | String | Yes | on |
Specifies whether to enable the SSL certificate. Valid values:
|
Response parameters
Name | Type | Example | Description |
---|---|---|---|
RequestId | String | 0AEDAF20-4DDF-4165-8750-47FF9C1929C8 |
The ID of the request. |
Examples
Sample requests
http://cdn.aliyuncs.com?Action=SetCdnDomainSMCertificate&DomainName=example.com&CertIdentifier=1234****&SSLProtocol=on
&<Common request parameters>
Sample success responses
XML
format
<SetCdnDomainSMCertificateResponse>
<RequestId>0AEDAF20-4DDF-4165-8750-47FF9C1929C8</RequestId>
</SetCdnDomainSMCertificateResponse>
JSON
format
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C8"
}
Error codes
For a list of error codes, visit the API Error Center.