Enables or disables the ShangMi (SM) certificate for a domain name.

Note You can call this operation up to 30 times per second.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetDcdnDomainSMCertificate

The operation that you want to perform. Set the value to SetDcdnDomainSMCertificate.

CertIdentifier String Yes 648****-cn-hangzhou

The ID of the certificate.

DomainName String Yes example.com

The accelerated domain name for which the SM certificate is configured.

Note HTTPS acceleration must be enabled for the accelerated domain name.
SSLProtocol String Yes on

Specifies whether to enable the HTTPS certificate.

on: enables the HTTPS certificate.

off: disables the HTTPS certificate.

Response parameters

Parameter Type Example Description
RequestId String 0AEDAF20-4DDF-4165-8750-47FF9C1929C8

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C8"

Error codes

HttpCode Error code Error message Description
400 InvalidCertIdentifier.ValueNotSupported The specified value of parameter CertIdentifier is not valid. The error message returned because the value that is specified for the CertIdentifier parameter is invalid.

For a list of error codes, visit the API Error Center.