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. |
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 which the certificate is bound. Requirements:
Important
When the certificate is bound to multiple domain names, this parameter is required. This parameter and the Csr parameter cannot both be empty. If you specify both this parameter and the Csr parameter, the CN field value in the Csr parameter is used as the domain name to which the certificate is bound. |
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 company information ID. 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 a contact already exists, you do not need to specify this parameter. If no contact has been configured, specify at least one contact ID. Otherwise, you cannot call the ApplyCertificate operation to apply for a certificate. |
|
|
integer |
No |
The contact information 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 CSR content. You can use OpenSSL or Keytool to generate a CSR. For more information, see How do I create a CSR file?. |
-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST----- |
| ValidationMethod |
string |
No |
The validation method for the certificate application. Valid values:
|
DNS |
| City |
string |
No |
The city where the company or organization of the certificate purchaser 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 country or region code of the certificate organization. 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 list of tags. |
||
| TagKey |
string |
No |
The tag key of the instance. Valid values of N: 1 to 20. If you specify this parameter, the value cannot be an empty string. The tag key can be up to 64 characters in length and 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, the value can be an empty string. The tag value can be up to 128 characters in length and cannot start with |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot 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.