All Products
Search
Document Center

Certificate Management Service:UpdateInstance

Last Updated:Mar 13, 2026

Updates the configuration of a Certificate Management Service instance.

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

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the instance.

cas-cn-68n1mm16****

CertificateName

string

No

The name of the instance. When issuing a certificate, this value serves as the default certificate name.

123

Domain

string

No

The domain name to bind to the certificate. Requirements are as follows:

  • Supports single domain names or wildcard domain names (for example, *.aliyundoc.com).

  • Supports multiple domain names. Separate multiple domain names with commas (,). The first domain determines whether a free domain is included.

Important

If you bind multiple domain names to the certificate, this parameter is required. This parameter and the Csr parameter cannot both be empty. If you set both parameters, the system uses the CN field value from the Csr as the domain name for the certificate.

test.com

KeyAlgorithm

string

No

The certificate algorithm. Default value: RSA_2048.

  • RSA_2048

  • RSA_3072

  • RSA_4096

  • ECC_256

  • SM2

RSA_2048

AutoReissue

string

No

Whether to enable automatic management.

  • enable: enabled

  • disable: disabled

enable

CompanyId

integer

No

The company information ID. Required for OV and EV certificates. Otherwise, you cannot call ApplyCertificate to request a certificate.

44211

ContactIdList

array

No

The list of contact IDs. You must specify at least one contact. Otherwise, you cannot call ApplyCertificate to request a certificate.

integer

No

The contact information ID.

123

GenerateCsrMethod

string

No

The CSR generation method. Default value: online.

  • online: The system generates the CSR. The Csr field is ignored.

  • upload: You upload the CSR. The Csr field is required.

online

Csr

string

No

The CSR content. You can generate a CSR using OpenSSL or Keytool. For more information, see How to create a CSR file.

-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----

ValidationMethod

string

No

The certificate validation method.

  • DNS: DNS validation using TXT or CNAME records.

  • HTTP: File-based validation.

DNS

City

string

No

The city where the company or organization of the certificate requester is located. Required when generating a CSR for a DV certificate. Default value: Beijing.

Beijing

Province

string

No

The province or region where the company is located. Required when generating a CSR for a DV certificate. Default value: Beijing.

Beijing

CountryCode

string

No

The country or region code of the certificate organization. For example, CN represents China, and US represents the United States. Required when generating a CSR for a DV certificate. Default value: CN.

CN

ResourceGroupId

string

No

The ID of the resource group to which the instance belongs.

rg-ae******4wia

Tags

array<object>

No

A list of tags.

object

No

The list of tags.

TagKey

string

No

The tag key of the instance. Valid values for N: 1 to 20. If you specify this value, it cannot be an empty string.

It can contain up to 64 characters. It cannot start with aliyun or acs:, and it cannot contain http:// or https://.

test

TagValue

string

No

The tag value of the instance. Valid values for N: 1 to 20. If you specify this value, it can be an empty string.

It can contain up to 128 characters. It cannot start with aliyun or acs:, and it cannot contain http:// or https://.

test

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request. Alibaba Cloud generates a unique identifier for each request to help troubleshoot and locate issues.

0068247C-A454-5FC9-93BF-C41CBB5CD19E

Examples

Success response

JSON format

{
  "RequestId": "0068247C-A454-5FC9-93BF-C41CBB5CD19E"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.