批量创建全域公网带宽 - BatchCreateInternetBandwidth
功能介绍
批量创建全域公网带宽。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,当前API调用无需身份策略权限。
URI
POST /v3/{domain_id}/geip/internet-bandwidths/batch-create
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
domain_id | 是 | String |
最小长度:5 最大长度:32 |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Auth-Token | 是 | String | 用户的Token,如何获取用户Token请参见获取用户Token |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
internet_bandwidth | 是 | internet_bandwidth object | 批量创建全域公网带宽请求体对象 |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
ingress_size | 否 | Integer | 全域公网带宽大小(入云方向),具体取值范围以购买页面为准 最小值:1 |
charge_mode | 否 | String |
缺省值:bandwidth |
isp | 是 | String | 全域公网带宽接入的线路,接入线路信息可通过查询全域弹性公网IP池列表接口查询。 最小长度:1 最大长度:64 |
access_site | 是 | String | 接入点信息,具体接入点信息可通过查询接入点列表接口查询。 最小长度:1 最大长度:64 |
size | 是 | Integer | 全域公网带宽大小(出云方向),具体取值范围以购买页面为准 最小值:1 |
name | 否 | String |
最小长度:1 最大长度:64 |
description | 否 | String |
最小长度:0 最大长度:512 |
count | 否 | Integer | 批创个数 最小值:1 最大值:9999 |
tags | 否 | Array of tags objects | 全域公网带宽标签 |
enterprise_project_id | 否 | String |
最小长度:1 最大长度:36 |
type | 否 | String | 全域公网带宽类型 缺省值:standard 最小长度:1 最大长度:64 |
响应参数
状态码:201
参数 | 参数类型 | 描述 |
|---|---|---|
X-Request-Id | String | 本次请求编号 |
参数 | 参数类型 | 描述 |
|---|---|---|
request_id | String | 本次请求的编号 |
internet_bandwidths | Array of BatchCreateInternetBandwidth objects | 创建成功响应体对象 |
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 全域公网带宽的ID |
name | String |
最小长度:1 最大长度:64 |
isp | String | 全域公网带宽接入的线路,接入线路信息可通过查询全域弹性公网IP池列表接口查询。 |
ingress_size | Integer | 全域公网带宽大小(入云方向) |
access_site | String | 接入点信息,具体接入点信息可通过查询接入点列表接口查询。 |
size | Integer | 全域公网带宽大小(出云方向) |
description | String |
最小长度:0 最大长度:512 |
charge_mode | String |
|
domain_id | String |
|
status | String | 状态 |
created_at | String | 创建时间 |
updated_at | String | 更新时间 |
ret_status | String | 是否创建成功标识,取值:successful、failed。 |
is_change_service | Boolean | 是否切换服务到VPC |
tags | Array of Tag objects | 全域公网带宽标签 |
enterprise_project_id | String |
|
type | String | 全域公网带宽类型 |
请求示例
批量创建两个按带宽计费,大小为80的全域公网带宽
POST https://{Endpoint}/v3/{domain_id}/geip/internet-bandwidths/batch-create
{
"internet_bandwidth" : {
"access_site" : "cn-south-odin",
"charge_mode" : "bandwidth",
"isp" : "BGP",
"size" : 80,
"type" : "standard",
"name" : "test",
"count" : 2
}
} 响应示例
状态码:201
CREATED
{
"internet_bandwidths" : [ {
"enterprise_project_id" : 0,
"name" : "test-0002",
"id" : "64bef4f0-1ff6-4601-9416-1ebec6560ccc",
"isp" : "BGP",
"access_site" : "cn-south-odin",
"size" : 80,
"description" : null,
"charge_mode" : "bandwidth",
"domain_id" : "f35feb8670a94a04a08d6628e0d5165b",
"status" : "normal",
"ingress_size" : 80,
"ret_status" : "successful",
"tags" : [ ],
"type" : "standard"
}, {
"enterprise_project_id" : 0,
"name" : "test-0001",
"id" : "8efa2f2e-dc96-4bae-9323-ab5c472ad4bf",
"isp" : "BGP",
"access_site" : "cn-south-odin",
"size" : 80,
"description" : null,
"charge_mode" : "bandwidth",
"domain_id" : "f35feb8670a94a04a08d6628e0d5165b",
"status" : "normal",
"ingress_size" : 80,
"ret_status" : "successful",
"tags" : [ ],
"type" : "standard"
} ],
"request_id" : "8bcadb5d-1bf4-42e8-909f-1606ecf781ce"
} 状态码
状态码 | 描述 |
|---|---|
201 | CREATED |
错误码
请参见错误码。

