ModifyInstance
Key Management Service (KMS) does not provide an operation for modifying instance configurations. You can call the ModifyInstance operation of the Alibaba Cloud Billing and Account Management API to modify the configuration of a KMS instance.
Background information
The Alibaba Cloud Billing and Account Management API is a general set of interfaces for managing Alibaba Cloud resources. It can be used to query service prices, manage instances, and retrieve billing information. For all operations supported by the Alibaba Cloud Billing and Account Management API, see API overview.
You can call the ModifyInstance operation of the Alibaba Cloud Billing and Account Management API to modify the configuration of a KMS instance. For more information about how to call this operation, see Request structure.
Debugging
Request parameters
|
Name |
Type |
Required |
Description |
Example |
|
ProductCode |
string |
Yes |
The product code. Set the value to kms. |
kms |
|
ProductType |
string |
No |
The product type.
|
kms_ddi_public_cn |
|
SubscriptionType |
string |
Yes |
The billing method. Valid values:
|
Subscription |
|
ModifyType |
string |
Yes |
The type of configuration change. Valid values:
|
Upgrade |
|
InstanceId |
String |
Yes |
The ID of the KMS instance whose configuration you want to modify. |
kst-shh669f4f4ea2fzs5**** |
|
ClientToken |
string |
No |
The client idempotency token. The server checks whether a request with the same ClientToken has already been received. If so, the server returns the result of the previous request. |
JASIOFKVNVIXXXXXX |
|
Parameter |
object [] |
No |
The module list. |
|
|
└Value |
string |
Yes |
The value of the nth module property. Valid values of n: 1 to 100. |
disk |
|
└Code |
string |
Yes |
The code of the nth module property. Valid values of n: 1 to 100. If multiple module properties are specified, the parameters are concatenated in the format of n=1,2,3…n. |
InstanceType |
Parameter settings
|
Name |
Type |
Required |
Example |
Description |
|
Parameter.1.Code |
String |
No |
Spec |
The performance specification of the KMS instance. |
|
Parameter.1.Value |
String |
No |
1000 |
For valid values, see the KMS buy page. |
|
Parameter.2.Code |
String |
No |
KeyNum |
The key quota of the KMS instance. |
|
Parameter.2.Value |
String |
No |
1000 |
For valid values, see the KMS buy page. |
|
Parameter.3.Code |
String |
No |
SecretNum |
The secret quota of the KMS instance. |
|
Parameter.3.Value |
String |
No |
1000 |
For valid values, see the KMS buy page. |
|
Parameter.4.Code |
String |
No |
VpcNum |
The VPC access management quota of the KMS instance. |
|
Parameter.4.Value |
String |
No |
10 |
For valid values, see the KMS buy page. |
|
Parameter.5.Code |
String |
No |
log |
Specifies whether to enable logging for the KMS instance. |
|
Parameter.5.Value |
String |
No |
1 |
Valid values:
|
|
Parameter.6.Code |
String |
No |
logStore |
The log capacity. |
|
Parameter.6.Value |
String |
No |
1000 |
For valid values, see the KMS buy page. |
Response parameters
|
Name |
Type |
Example |
Description |
|
Code |
String |
Success |
The status code of the request. |
|
Data |
Struct |
The return data of the request. |
|
|
└HostId |
String |
testid |
The host ID. |
|
└OrderId |
String |
2026532523**** |
The ID of the created order. |
|
Message |
String |
Successful! |
The error message of the request. |
|
RequestId |
String |
65AE3CCE-D625-5CD5-A874-2DAB0CF80B37 |
The ID of the request. |
|
Success |
Boolean |
true |
Indicates whether the request was successful. |
Examples
Sample success responses
XML format
<ModifyInstanceResponse>
<Message>Successful!</Message>
<RequestId>65AE3CCE-D625-5CD5-A874-2DAB0CF80B37</RequestId>
<Success>true</Success>
<Code>Success</Code>
<Data>
<OrderId>2026532523****</OrderId>
<HostId>testid</HostId>
</Data>
</ModifyInstanceResponse>
JSON format
{
"Message": "Successful!",
"RequestId": "65AE3CCE-D625-5CD5-A874-2DAB0CF80B37",
"Data": {
"OrderId": 23648989570****,
"HostId": "testid"
},
"Code": "Success",
"Success": true
}