This API is used to add an EIP to a shared bandwidth.
Name |
Mandatory |
Type |
Description |
---|---|---|---|
bandwidth |
Yes |
bandwidth object |
Specifies the bandwidth objects. For details, see Table 3. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
publicip_info |
Yes |
Array of publicip_info objects |
|
Name |
Mandatory |
Type |
Description |
---|---|---|---|
publicip_id |
Yes |
String |
Specifies the ID of the EIP that uses the bandwidth. |
publicip_type |
No |
String |
|
POST https://{Endpoint}/v2.0/{project_id}/bandwidths/{bandwidth_id}/insert { "bandwidth": { "publicip_info": [ { "publicip_id": "29b114d1-2d41-4741-a1f0-b6f80aabceff", "publicip_type": "5_bgp", } ] } }
Name |
Type |
Description |
---|---|---|
bandwidth |
bandwidth object |
Specifies the bandwidth objects. For details, see Table 6. |
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 |
|
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 |
|
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. |
ip_version |
Integer |
|
publicip_type |
String |
|
{ "bandwidth": { "id": "3fa5b383-5a73-4dcb-a314-c6128546d855", "name": "bandwidth123", "size": 10, "share_type": "WHOLE", "publicip_info": [ { "publicip_id": "1d184b2c-4ec9-49b5-a3f9-27600a76ba3f", "publicip_address": "99.xx.xx.82", "publicip_type": "5_bgp", "ip_version": 4 } ], "tenant_id": "8b7e35ad379141fc9df3e178bd64f55c", "charge_mode": "traffic", "billing_info": "", "bandwidth_type": "share", "status": "NORMAL" } }
See Status Codes.
See Error Codes.