UpdatePcaCertificate
Updates the attributes of a certificate.
Operation description
After a CA certificate is created, it is in the normal issuance state by default. You can call this operation to change the state of the CA certificate from normal issuance to revoked. In the normal issuance state, the CA certificate can be used to issue certificates. In the revoked state, the CA certificate cannot be used to issue certificates, and the certificates issued by this CA certificate also become invalid.
Before calling this operation, you must call CreateRootCACertificate to create a root CA certificate and call CreateSubCACertificate to create a subordinate CA certificate.
QPS limit
The QPS limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls 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 name of the issued certificate. |
cert-name |
| Identifier |
string |
No |
The unique identifier of the CA certificate to be queried. Note
You can 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 |
Ensures the idempotence of the request. The client generates the value of this parameter. The value must be unique across different requests and can be up to 64 ASCII characters in length. The value cannot contain non-ASCII characters. |
update-pca-cert-20261110-4c7e1b9d |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
09470F19-CEE8-5C63-BF2C-02B5E3F07A17 |
| AccessDeniedDetail |
object |
The authentication error details. |
|
| AuthAction |
string |
The unauthorized action that is attempted. |
yundun-cert:XXX |
| AuthPrincipalDisplayName |
string |
The identity used for authentication in the request. Valid values:
|
RoleSessionName |
| AuthPrincipalOwnerId |
string |
AuthPrincipalOwnerId |
186XXX |
| AuthPrincipalType |
string |
The identity type. |
SubUser |
| EncodedDiagnosticMessage |
string |
The encoded complete diagnostic message. |
AQEAAAAAaEjlETkzRkQ5QjVELTI3NTEtM0I2Ni1BM0E1LThBQUYzMkJBNEJCQg== |
| NoPermissionType |
string |
The cause of the authentication failure. Valid values:
|
ImplicitDeny |
| PolicyType |
string |
The policy type. |
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.