Updates the properties of a certificate.
Operation description
When a Certificate Authority (CA) certificate is created, its status is Normal by default. You can call this API operation to change the status of a CA certificate to Revoked. A CA certificate in the Normal status can be used to issue certificates. A revoked CA certificate cannot be used to issue certificates, and all certificates previously issued by it become invalid.
Before you call this API operation, you must create a root CA certificate by calling CreateRootCACertificate and a subordinate CA certificate by calling CreateSubCACertificate.
QPS limits
This API operation is limited to 10 queries per second (QPS) per user. If you exceed this limit, API calls are throttled, which may affect your business. Call this API operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:UpdatePcaCertificate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AliasName |
string |
No |
The alias of the certificate. |
cert-name |
| Identifier |
string |
No |
The unique identifier of the CA certificate. Note
Call DescribeCACertificateList to query the unique identifiers of all CA certificates. |
160ae6bb538d538c70c01f81dcf2**** |
| Tags |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key. |
runtime |
| Value |
string |
No |
The tag value. |
test |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-ae******4wia |
| ClientToken |
string |
No |
A client token used to ensure the idempotence of the request. The client generates this value to make sure that it is unique among different requests. The token can be a maximum of 64 ASCII characters and cannot contain non-ASCII characters. |
XXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The ID of the request. |
09470F19-CEE8-5C63-BF2C-02B5E3F07A17 |
| AccessDeniedDetail |
object |
The error details of the authorization. |
|
| AuthAction |
string |
The unauthorized operation that you attempted to perform. |
yundun-cert:XXX |
| AuthPrincipalDisplayName |
string |
The identity that is used for authorization in the request. Valid values:
|
RoleSessionName |
| AuthPrincipalOwnerId |
string |
The ID of the Alibaba Cloud account to which the authorized principal belongs. |
186XXX |
| AuthPrincipalType |
string |
The type of the identity. |
SubUser |
| EncodedDiagnosticMessage |
string |
The complete diagnostic information that is encrypted. |
AQEAAAAAaEjlETkzRkQ5QjVELTI3NTEtM0I2Ni1BM0E1LThBQUYzMkJBNEJCQg== |
| NoPermissionType |
string |
The reason why the authorization failed. Valid values: ExplicitDeny: The authorization is explicitly denied. ImplicitDeny: The authorization is implicitly denied. |
ImplicitDeny |
| PolicyType |
string |
The type of the policy. |
Custom |
Examples
Success response
JSON format
{
"RequestId": "09470F19-CEE8-5C63-BF2C-02B5E3F07A17",
"AccessDeniedDetail": {
"AuthAction": "yundun-cert:XXX",
"AuthPrincipalDisplayName": "RoleSessionName",
"AuthPrincipalOwnerId": "186XXX",
"AuthPrincipalType": "SubUser",
"EncodedDiagnosticMessage": "AQEAAAAAaEjlETkzRkQ5QjVELTI3NTEtM0I2Ni1BM0E1LThBQUYzMkJBNEJCQg==",
"NoPermissionType": "ImplicitDeny",
"PolicyType": "Custom"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.