RenewInstance

Updated at:

Renews the subscription for a Database Audit instance.

Debugging

You can call this operation directly in OpenAPI Explorer to perform debugging. OpenAPI Explorer automatically calculates the signature value. After the request is sent, OpenAPI Explorer automatically generates the SDK code for the request.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

RenewInstance

The operation that you want to perform. Set the value to RenewInstance.

InstanceId

String

Yes

dbaudit-cn-****

The ID of the Database Audit instance that you want to renew.

ProductCode

String

Yes

dbaudit

The product code for Database Audit is dbaudit.

RenewPeriod

Integer

Yes

6

The renewal period of the subscription instance. Unit: months. Valid values:

  • 1 to 9

  • 12

  • 24

  • 36

ClientToken

String

No

JASIOFKVNVI****

A client-generated token that is used to ensure the idempotence of the request. The server queries whether a request with the same client token has been received. If a request with the same client token has been received, the server returns the result of the previous request. This ensures that the request is not repeatedly submitted.

ProductType

String

No

dbaudit

The product type for Database Audit is dbaudit.

Response parameters

Parameter

Type

Example

Description

Code

String

Success

The status code of the request.

Data

Object

The data returned.

OrderId

String

2026532523****

The ID of the order.

Message

String

Successful!

The status message that corresponds to Code.

RequestId

String

6000EE23-274B-4E07-A697-FF2E999520A4

The ID of the request.

Success

Boolean

true

Indicates whether the request was successful.

Examples

Sample request

http(s)://[Endpoint]/?Action=RenewInstance
&InstanceId=dbaudit-cn-****
&ProductCode=dbaudit
&RenewPeriod=6
&<Common request parameters>

Sample responses

XML format

<RenewInstanceResponse>
    <Message>Successful!</Message>
    <RequestId>6000EE23-274B-4E07-A697-FF2E999520A4</RequestId>
    <Success>true</Success>
    <Code>Success</Code>
    <Data>
        <OrderId>2026532523****</OrderId>
    </Data>
</RenewInstanceResponse>

JSON format

{
    "Message": "Successful!",
    "RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
    "Success": true,
    "Code": "Success",
    "Data": {
        "OrderId": "2026532523****"
    }
}

Error codes

For a list of error codes, see the Error Center.