Domain name for API request: cwp.intl.tencentcloudapi.com.
This API is used to create allowlist orders.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: CreateWhiteListOrder. |
Version | Yes | String | Common Params. The value used for this API: 2018-02-28. |
Region | No | String | Common Params. This parameter is not required. |
LicenseType | Yes | Integer | Authorization type |
LicenseNum | Yes | Integer | Number of authorizations (The minimum value is 1, and the maximum value is 99999.) |
Deadline | Yes | Integer | Expiration time (The minimum value is 1.) |
RuleName | Yes | String | Rule name, big asset center: asset_center |
SourceType | No | Integer | Order type. 1: trial; 2: free; 3: experience; 4: free SSL certificate gift; 5: free CVM |
RegionId | No | Integer | Region: 1 Guangzhou; 9 Singapore. The default is 1. Do not select 9 unless necessary. |
ExtraParam | No | String | Additional parameters; JSON string, including ResourceId and LicenseType. |
Parameter Name | Type | Description |
---|---|---|
Resource | OrderResource | Resource object |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to create trial orders.
POST / HTTP/1.1
Host: cwp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateWhiteListOrder
<Common request parameters>
{
"LicenseType": 1,
"LicenseNum": 10,
"Deadline": 10,
"SourceType": 1,
"RuleName": "asset_center"
}
{
"Response": {
"RequestId": "d1245804-b922-4c3b-8499-f95dce26b33c",
"Resource": {
"Id": 1,
"ResourceId": "white_2415**",
"BeginTime": "2022-05-31 00:00:00",
"EndTime": "2022-06-10 00:00:00",
"LicenseType": 1
}
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
OperationDenied | The operation was denied. |
ResourceNotFound | The resource does not exist. |
本页内容是否解决了您的问题?