SetCertificate

Last updated:2021-03-17 11:09:49

SetCertificate

Description

You can call this operation to update a certificate, which corresponds to the certificate editing feature of the Kingsoft Cloud CDN console. You can upload server certificates and private keys.

Request syntax

The API request contains the specified directory /2016-09-01/cert/SetCertificate, common request headers, and operation-specific request parameters. For more information, see the sample request.

Request parameters

Parameter Required Type Description
CertificateId Yes string The unique ID of the certificate.
CertificateName Yes String The name of the certificate.
ServerCertificate Yes String The content of the certificate.
PrivateKey Yes String The private key that corresponds to the certificate.

Response parameters

Parameter Type Description
CertificateId string The unique ID of the certificate.

Examples

Sample request

POST method:

POST /2016-09-01/statistics/SetCertificates 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetCertificates 
x-version: 2016-09-01
Content-Type: application/json

{
    "CertificateId": 852,
    "CertificateName": "testone",
    "ServerCertificate": "====ServerCertificate====",
    "PrivateKey": "====PrivateKey===="
}

Sample response

{"CertificateId":"1231231"}}

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈