RenewInstance

Updated at:

Key Management Service (KMS) does not provide an operation to renew a KMS instance. To renew a KMS instance, you can call the RenewInstance 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 API overview.

You can call the RenewInstance operation provided by the BSS API to renew a KMS instance. For more information about how to call the operation, see Request syntax and signature method V3.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Description

Example

ProductCode

String

Yes

The code of the service. Set the value to kms, which indicates KMS.

kms

InstanceId

String

Yes

The ID of the KMS instance.

kst-hzz65f176a0ogplgq****

RenewPeriod

Integer

Yes

The duration of the subscription renewal. Unit: months. Valid values:

  • 1 to 9

  • 12

  • 24

  • 36

6

ProductType

String

No

The service type. Valid values:

  • kms_ddi_public_cn: China site (aliyun.com)

  • kms_ddi_public_intl: International site (alibabacloud.com)

kms_ddi_public_cn

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. The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests.

JASIOFKVNVI****

Response parameters

Parameter

Type

Example

Description

Code

String

Success

The status code.

Data

Struct

The returned information.

└OrderId

String

23629137930****

The ID of the order.

Message

String

Successful!

The message returned for Code.

RequestId

String

C60F3341-3E85-5FCA-8290-3437D290D9B9

The request ID.

Success

Boolean

true

Indicates whether the call is successful.

Examples

Sample success responses

XML format

<RenewInstanceResponse>
    <Message>Successful!</Message>
    <RequestId>C60F3341-3E85-5FCA-8290-3437D290D9B9</RequestId>
    <Data>
      <OrderId>23629137930****</OrderId>
    </Data>
    <Code>Success</Code>
    <Success>true</Success>
</RenewInstanceResponse>

JSON format

{
  "Message": "Successful!",
  "RequestId": "C60F3341-3E85-5FCA-8290-3437D290D9B9",
  "Data": {
    "OrderId": 23629137930****
  },
  "Code": "Success",
  "Success": true
}