Key Management Service (KMS) does not provide an operation to modify a KMS instance. To modify an instance, you can call the ModifyInstance operation of the transactions and bills management API. This API is called BSS API for short.
Background information
The BSS API is a set of common operations used to manage Alibaba Cloud resources. For example, you can call the operations to query service prices, manage instances, and obtain bills. For more information about the operations of the BSS API, see List of operations by function.
You can call the ModifyInstance operation provided by the BSS API to modify a KMS instance. For more information about how to call the operation, see Request syntax and signature method V3.
Debugging
Request parameters
Parameter | Type | Required | Description | Example |
ProductCode | string | Yes | The code of the service. Set the value to kms. | kms |
ProductType | string | No | The service type. Valid values:
| kms_ddi_public_cn |
SubscriptionType | string | Yes | The billing method. Valid values:
| Subscription |
ModifyType | string | Yes | The type of configuration changes. Valid values:
| Upgrade |
InstanceId | String | Yes | kst-shh669f4f4ea2fzs5**** | The ID of the KMS instance whose configurations you want to change. |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. The server checks whether a request that uses the same client token has been received. If a request that uses the same client token has been received, the server returns the same request result as the previous request. | JASIOFKVNVIXXXXXX |
Parameter | object [] | No | The modules. | |
└Value | string | Yes | The value of the Nth attribute configured for the KMS instance. Valid values of N: 1 to 100. | disk |
└Code | string | Yes | The code of the Nth attribute configured for the KMS instance. Valid values of N: 1 to 100. If you want to configure multiple attributes, concatenate the attributes in ascending numerical order. | InstanceType |
Parameter settings
Parameter | Type | Required | Example | Description |
Parameter.1.Code | String | No | Spec | The performance data of the KMS instance. |
Parameter.1.Value | String | No | 1000 | You can go to the KMS buy page to view valid values. |
Parameter.2.Code | String | No | KeyNum | The key quota of the KMS instance. |
Parameter.2.Value | String | No | 1000 | You can go to the KMS buy page to view valid values. |
Parameter.3.Code | String | No | SecretNum | The secret quota of the KMS instance. |
Parameter.3.Value | String | No | 1000 | You can go to the KMS buy page to view valid values. |
Parameter.4.Code | String | No | VpcNum | The access management quota of the KMS instance. |
Parameter.4.Value | String | No | 10 | You can go to the KMS buy page to view valid values. |
Parameter.5.Code | String | No | log | Specifies whether to enable the Simple Log Service for KMS feature 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 | You can go to the KMS buy page to view valid values. |
Response parameters
Parameter | Type | Example | Description |
Code | String | Success | The status code. |
Data | Struct | The returned information. | |
└HostId | String | testid | The ID of the host. |
└OrderId | String | 2026532523**** | The ID of the order. |
Message | String | Successful! | The message returned for Code. |
RequestId | String | 65AE3CCE-D625-5CD5-A874-2DAB0CF80B37 | The request ID. |
Success | Boolean | true | Indicates whether the call is 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
}