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.


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

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:

  • on: enables the SSL certificate.
  • off: disables the SSL certificate.

Response parameters

Name 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

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