Purchase or upgrade Anti-DDoS Pro instance
POST
https://ipanti.jdcloud-api.com/v1/regions/{regionId}/instances
Name | Type | Required or Not | Default Value | Description |
---|---|---|---|---|
regionId | String | True | Region ID, Anti-DDoS Pro dose not differentiate regions, upload to cn-north-1 directly |
Name | Type | Required or Not | Default Value | Description |
---|---|---|---|---|
createInstanceSpec | CreateInstanceSpec | True | Purchase or upgrade instance request parameters |
Name | Type | Required or Not | Default Value | Description |
---|---|---|---|---|
id | String | False | Instance Id, required in case of upgrade | |
name | String | False | Instance name, required in case of purchase | |
buyType | Integer | True | Purchase Type. - 1: Newly Purchase - 3: Upgrade |
|
carrier | Integer | True | Link Type. - 1: China Telecom - 3: China Telecom, China Unicom and China Mobile |
|
ipType | Integer | False | ip type that can be protected, only China Telecom Line supports IPV6 ISP line at present - 0: IPV4, - 1: IPV4/IPV6 |
|
bp | Integer | True | Basic bandwidth, unit: Gbps | |
ep | Integer | True | Elastic bandwidth: unit: Gbps | |
bw | Integer | True | Business bandwidth: unit Mbps | |
timeSpan | Long | False | Purchased protection package duration, required in case of purchase of Anti-DDoS Pro instance - When timeUnit is 3, the value can be 1-9 - When timeUnit is 4, the value can be 1-3 |
|
timeUnit | Integer | False | Purchased duration type, required in case of purchase of Anti-DDoS Pro instance - 3: month - 4: year |
|
returnUrl | String | False | The page jumped to after the payment succeeds. The field is transferred in the console interaction mode |
Name | Type | Description |
---|---|---|
result | Result | |
requestId | String | |
error | Error |
Name | Type | Description |
---|---|---|
err | Err |
Name | Type | Description |
---|---|---|
code | Long | Same as http code |
details | Object | |
message | String | |
status | String | Specific Error |
Name | Type | Description |
---|---|---|
code | Integer | 0: Purchasing or upgrading instance failed, 1: Purchasing or upgrading instance succeeded |
message | String | Order id is given when purchasing or upgrading instance succeeded, and reasons are specified when creating instance failed |
Return Code | Description |
---|---|
200 | OK |
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通