This API is used to update information about a bandwidth.
Name |
Mandatory |
Type |
Description |
---|---|---|---|
bandwidth |
Yes |
bandwidth object |
Specifies the bandwidth objects. For details, see Table 3. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
|
size |
No |
Integer |
|
PUT https://{Endpoint}/v1/{project_id}/bandwidths/{bandwidth_id} { "bandwidth": {"name": "bandwidth123", "size": 10 } }
Name |
Type |
Description |
---|---|---|
bandwidth |
bandwidth object |
Specifies the bandwidth objects. For details, see Table 5. |
Name |
Type |
Description |
---|---|---|
name |
String |
|
size |
Integer |
|
id |
String |
Specifies the bandwidth ID, which uniquely identifies the bandwidth. |
share_type |
String |
|
publicip_info |
Array of publicip_info objects |
|
tenant_id |
String |
Specifies the project ID. |
bandwidth_type |
String |
|
charge_mode |
String |
If the value is traffic, the bandwidth is billed by traffic. |
billing_info |
String |
Specifies the bill information. If billing_info is specified, the bandwidth is in yearly/monthly billing mode. |
enterprise_project_id |
String |
NOTE:
This parameter is unsupported. Do not use it. |
status |
String |
|
created_at |
String |
|
updated_at |
String |
|
Name |
Type |
Description |
---|---|---|
publicip_id |
String |
Specifies the ID of the EIP that uses the bandwidth. |
publicip_address |
String |
Specifies the obtained EIP if only IPv4 EIPs are available. |
publicip_type |
String |
|
{ "bandwidth": { "id": "3fa5b383-5a73-4dcb-a314-c6128546d855", "name": "bandwidth123", "size": 10, "share_type": "PER", "publicip_info": [ { "publicip_id": "6285e7be-fd9f-497c-bc2d-dd0bdea6efe0", "publicip_address": "161.xx.xx.9", "publicip_type": "5_bgp", "ip_version": 4 } ], "tenant_id": "8b7e35ad379141fc9df3e178bd64f55c", "bandwidth_type": "bgp", "charge_mode": "traffic", "billing_info": "", "status": "NORMAL" } }
See Status Codes.
See Error Codes.