UpdateInstance
Updates an instance.
Try it now
Test
RAM authorization
|
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. The instance must be purchased as a subscription instance in the Alibaba Cloud Management Console. The format is cas_dv-cn-XXX. |
cas-cn-68n1mm16**** |
| CertificateName |
string |
No |
The name of the instance. When a certificate is issued, this name is used as the default name of the certificate. |
123 |
| Domain |
string |
No |
The domain name to be bound to the certificate. Requirements:
Important
When you bind multiple domain names to a certificate, this parameter is required. This parameter and the Csr parameter cannot be empty at the same time. If you specify both this parameter and the Csr parameter, the value of the CN field in the Csr parameter is used as the domain name bound to the certificate. |
test.com |
| KeyAlgorithm |
string |
No |
The certificate algorithm. Default value: RSA_2048. Valid values:
|
RSA_2048 |
| AutoReissue |
string |
No |
Specifies whether to enable automatic hosting. Valid values:
|
enable |
| CompanyId |
integer |
No |
The ID of the company information. This parameter is required for OV and EV certificates. Otherwise, you cannot call the ApplyCertificate operation to apply for a certificate. |
44211 |
| ContactIdList |
array |
No |
The list of contact IDs. If contacts already exist, you do not need to specify this parameter. If no contacts are configured, you must specify at least one contact ID. Otherwise, you cannot call the ApplyCertificate operation to apply for a certificate later. |
|
|
integer |
No |
The contact ID. |
123 |
|
| GenerateCsrMethod |
string |
No |
The method used to generate the certificate signing request (CSR). Default value: online. Valid values:
|
online |
| Csr |
string |
No |
The content of the CSR. You can use OpenSSL or Keytool to generate a CSR. For more information, see How to generate a CSR file. |
-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST----- |
| ValidationMethod |
string |
No |
The verification method for the certificate application. Valid values:
|
DNS |
| City |
string |
No |
The city where the company or organization of the user who purchases the certificate is located. This field is 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. This field is required when generating a CSR for a DV certificate. Default value: Beijing. |
Beijing |
| CountryCode |
string |
No |
The code of the country or region where the organization of the certificate is located. For example, CN indicates China, and US indicates the United States. This field is required when generating a CSR for a DV certificate. Default value: CN. |
CN |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-ae******4wia |
| Tags |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag. |
||
| TagKey |
string |
No |
The tag key of the instance. Valid values of N: 1 to 20. If you specify this parameter, it cannot be an empty string. The tag key can be up to 64 characters in length. It cannot start with |
test |
| TagValue |
string |
No |
The tag value of the instance. Valid values of N: 1 to 20. If you specify this parameter, it can be an empty string. The tag value can be up to 128 characters in length. It cannot start with |
test |
| AutoRenewalStatus |
string |
No |
The auto-renewal status. Valid values:
|
enable |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used to 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.