功能介绍
创建共享带宽。
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
enterprise_project_id |
否 |
String |
关于企业项目ID的获取及企业项目特性的详细信息,请参见《企业管理用户指南》。 缺省值:0 最大长度:36 |
name |
是 |
String |
最小长度:1 最大长度:64 |
size |
是 |
Integer |
|
charge_mode |
否 |
String |
枚举值:
|
public_border_group |
否 |
String |
最小长度:1 最大长度:64 |
bandwidth_type |
否 |
String |
最小长度:1 最大长度:64 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
bandwidth_type |
String |
最小长度:1 最大长度:36 |
billing_info |
String |
最小长度:0 最大长度:255 |
charge_mode |
String |
枚举值:
|
id |
String |
最大长度:36 |
name |
String |
最小长度:1 最大长度:64 |
publicip_info |
|
|
share_type |
String |
枚举值:
|
size |
Integer |
|
tenant_id |
String |
最大长度:36 |
enterprise_project_id |
String |
关于企业项目ID的获取及企业项目特性的详细信息,请参见《企业管理用户指南》。 最大长度:36 |
status |
String |
枚举值:
|
enable_bandwidth_rules |
Boolean |
|
rule_quota |
Integer |
最小值:0 最大值:1024 |
bandwidth_rules |
|
|
created_at |
String |
|
updated_at |
String |
|
public_border_group |
String |
最小长度:1 最大长度:64 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
最大长度:36 |
name |
String |
最小长度:0 最大长度:64 |
admin_state_up |
Boolean |
|
egress_size |
Integer |
最小值:0 缺省值:0 |
egress_guarented_size |
Integer |
最小值:0 缺省值:0 |
publicip_info |
|
参数 |
参数类型 |
描述 |
---|---|---|
publicip_address |
String |
最大长度:15 |
publicip_id |
String |
最大长度:36 |
publicip_type |
String |
最大长度:36 |
publicipv6_address |
String |
最大长度:39 |
ip_version |
Integer |
枚举值:
|
请求示例
创建大小为10M,宽带名称bandwidth123的共享带宽。
{
"bandwidth" : {
"enterprise_project_id" : "b261ac1f-2489-4bc7-b31b-c33c3346a439",
"size" : 10,
"name" : "bandwidth123"
}
}
响应示例
状态码: 200
POST操作正常返回
{
"bandwidth" : {
"tenant_id" : "8b7e35ad379141fc9df3e178bd64f55c",
"enterprise_project_id" : "b261ac1f-2489-4bc7-b31b-c33c3346a439",
"billing_info" : "",
"size" : 10,
"share_type" : "WHOLE",
"bandwidth_type" : "share",
"publicip_info" : [ ],
"name" : "bandwidth123",
"charge_mode" : "bandwidth",
"enable_bandwidth_rules" : false,
"rule_quota" : 0,
"bandwidth_rules" : [ ],
"id" : "3fa5b383-5a73-4dcb-a314-c6128546d855",
"status" : "NORMAL"
}
}
状态码
状态码 |
描述 |
---|---|
200 |
POST操作正常返回 |
错误码
请参见错误码。