UpdatePcaCertificate

Updated at:

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

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 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:

  • RAM user: the UID of the RAM user

  • RAM role: RoleName:RoleSessionName

  • Federated: ProviderType/ProviderName

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:

  • ExplicitDeny: explicit denial

  • ImplicitDeny: implicit denial

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.