Uploading a Certificate
Function
This API is used to upload a certificate to SCM.
URI
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
cert_name |
Yes |
String |
Certificate name. The value is a string of 0 to 63 characters. |
cert |
Yes |
String |
Certificate chain content. |
private_key |
Yes |
String |
Private key of a certificate. |
Response
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
cert_id |
Yes |
String |
Certificate ID. |
Example
The following describes how to upload a certificate named test.
- Example request
{ "cert_name":"test", "cert":"-----BEGIN CERTIFICATE----- *** -----END CERTIFICATE-----", "private_key": "-----BEGIN RSA PRIVATE KEY----- *** -----END RSA PRIVATEKEY-----" }
- Example response
{ "cert_id": " scs1481110651012" }
or
{ "error_code": "SCM.XXXX", "error_msg": "XXXX" }
Status Codes
For details about error codes, see Error Codes
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot