Uploads a certificate, including a standard SM certificate or a non-SM certificate.
Operation description
The maximum number of calls per user is 100 per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:UploadUserCertificate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The custom name of the certificate. Maximum length: 63 characters. Supports all character types, including letters, digits, and underscores. Note
Certificate names must be unique within the same account. |
cert-1 |
| Cert |
string |
No |
The content of the non-SM certificate in PEM format. |
-----BEGIN CERTIFICATE----- MIIF...... -----END CERTIFICATE----- |
| Key |
string |
No |
The private key of the non-SM certificate in PEM format. |
-----BEGIN CERTIFICATE----- MIICDzCCAbagAw -----END CERTIFICATE----- |
| EncryptCert |
string |
No |
The content of the SM encryption certificate in PEM format. This field is ignored if Cert and Key are not empty. |
-----BEGIN CERTIFICATE----- MIICDzCCA*** -----END CERTIFICATE----- |
| EncryptPrivateKey |
string |
No |
The private key of the SM encryption certificate in PEM format. This field is ignored if Cert and Key are not empty. |
-----BEGIN EC PRIVATE KEY----- MHcCAQEEI**** -----END EC PRIVATE KEY----- |
| SignCert |
string |
No |
The content of the SM signing certificate in PEM format. This field is ignored if Cert and Key are not empty. |
-----BEGIN CERTIFICATE----- MIICDzCCAbagAw**** -----END CERTIFICATE----- |
| SignPrivateKey |
string |
No |
The private key of the SM signing certificate in PEM format. This field is ignored if Cert and Key are not empty. |
-----BEGIN EC PRIVATE KEY----- MHcCAQEEILR**** -----END EC PRIVATE KEY----- |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-ae****vty |
| Tags |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag object. |
||
| Key |
string |
No |
The tag key. |
testKey |
| Value |
string |
No |
The tag value. |
1 |
| ClientToken |
string |
No |
The client token used to ensure the idempotence of the request. |
XXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| CertId |
integer |
The certificate ID. |
12345 |
| RequestId |
string |
The request ID. |
BDB81BA2-E1F5-4D08-A2DD-4BE2BF44C90E |
| ResourceId |
string |
The instance ID of the certificate to operate on. |
cas-upload-xki1d0 |
Examples
Success response
JSON format
{
"CertId": 12345,
"RequestId": "BDB81BA2-E1F5-4D08-A2DD-4BE2BF44C90E",
"ResourceId": "cas-upload-xki1d0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.