All Products
Search
Document Center

Certificate Management Service:UpdatePcaCertificate

Last Updated:Dec 16, 2025

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • RAM user: UID of the RAM user

  • RAM role: RoleName:RoleSessionName

  • Federated user: ProviderType/ProviderName

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.