createInstance

Products

Anti-DDoS Pro

2019-08-20 09:20:41

createInstance

Description

Purchase or upgrade Anti-DDoS Pro instance

Request Method

POST

Request Address

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

Request Parameter

Name Type Required or Not Default Value Description
createInstanceSpec CreateInstanceSpec True Purchase or upgrade instance request parameters

CreateInstanceSpec

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

Response parameter

Name Type Description
result Result
requestId String
error Error

Error

Name Type Description
err Err

Err

Name Type Description
code Long Same as http code
details Object
message String
status String Specific Error

Result

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

Return Code Description
200 OK
Feedback

开始与售前顾问沟通

可直接拨打电话 400-098-8505转1

我们的产品专家为您找到最合适的产品/解决⽅案

在线咨询 5*8⼩时

1v1线上咨询获取售前专业咨询

点击咨询
企微服务助手

专业产品顾问,随时随地沟通