Purchases pay-as-you-go Data Management (DMS).
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | BuyPayAsYouGoOrder |
The operation that you want to perform. Set the value to BuyPayAsYouGoOrder. |
| Tid | Long | No | 3*** |
The ID of the tenant. Note To view the ID of the tenant, go to the DMS console and move the pointer over the
profile picture in the upper-right corner. For more information, see View information about the current tenant.
|
| CommodityType | String | Yes | SensitiveDataProtection |
The type of the service.
|
| InsNum | Integer | Yes | 7 |
The maximum number of database instances that you can use DMS to manage. Note If this parameter is set to 1, you can use DMS to manage only one database instance.
|
| VersionType | String | No | stand |
The control mode. If you set the CommodityType parameter to VersionType, you must also specify this parameter. Valid values:
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | C51420E3-144A-4A94-B473-8662FCF4AD10 |
The ID of the request. |
| Success | Boolean | true |
Indicates whether the request was successful. Valid values:
|
| ErrorMessage | String | UnknownError |
The error message returned if the request failed. |
| ErrorCode | String | UnknownError |
The error code returned if the request failed. |
| InstanceId | String | dms_pre_public_cn-nif23l**** |
The ID of the instance for the purchased service if the request was successful. |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=BuyPayAsYouGoOrder
&CommodityType=SensitiveDataProtection
&InsNum=7
&VersionType=stand
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<BuyPayAsYouGoOrderResponse>
<RequestId>C51420E3-144A-4A94-B473-8662FCF4AD10</RequestId>
<Success>true</Success>
<InstanceId>dms_pre_public_cn-nif23l****</InstanceId>
</BuyPayAsYouGoOrderResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C51420E3-144A-4A94-B473-8662FCF4AD10",
"Success" : true,
"InstanceId" : "dms_pre_public_cn-nif23l****"
}
Error codes
For a list of error codes, see Service error codes.