All Products
Search
Document Center

CDN:SetCdnDomainSMCertificate

Last Updated:Jul 05, 2024

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

Operation description

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

The accelerated domain name for which you want to configure the SM certificate.

Note The domain name must use HTTPS acceleration.
example.com
CertIdentifierstringYes

The ID of the SM certificate that you want to configure. The identifier of the certificate. The value is Certificate ID-cn-hangzhou. For example, if the certificate ID is 123, set the value of this parameter to 123-cn-hangzhou.

1234****-cn-hangzhou
SSLProtocolstringYes

Specifies whether to enable the SSL certificate. Valid values:

  • on
  • off
on

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

0AEDAF20-4DDF-4165-8750-47FF9C1929C8

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
400InvalidCertIdentifier.ValueNotSupportedThe specified value of parameter CertIdentifier is not valid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history