Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-03-17 11:09:49
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.
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.
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. |
Parameter | Type | Description |
---|---|---|
CertificateId | string | The unique ID of the certificate. |
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"}}
Pure Mode