All Products
Search
Document Center

Edge Security Acceleration:SetDcdnDomainSMCertificate

Last Updated:Oct 17, 2024

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

Operation description

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

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

Note The domain name must have HTTPS secure acceleration enabled.
example.com
CertIdentifierstringYes

The identifier of the certificate. The value is Certificate ID-cn-hangzhou. If the ID of the certificate is 123, CertIdentifier is set to 123-cn-hangzhou.

123-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 messageDescription
400InvalidCertIdentifier.ValueNotSupportedThe specified value of parameter CertIdentifier is not valid.The CertIdentifier parameter is set to an invalid value.

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