This API is used to assign a private IP address.
Name |
Mandatory |
Type |
Description |
---|---|---|---|
privateips |
Yes |
Array of privateip objects |
Specifies the private IP address objects. For details, see Table 3. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
subnet_id |
Yes |
String |
Specifies the ID of the subnet from which IP addresses are assigned. If you use the management console, the value of this parameter is the Network ID value. |
ip_address |
No |
String |
|
POST https://{Endpoint}/v1/{project_id}/privateips { "privateips": [ { "subnet_id": "531dec0f-3116-411b-a21b-e612e42349fd" }, { "subnet_id": "531dec0f-3116-411b-a21b-e612e42349fd", "ip_address": "192.168.1.17" } ] }
Name |
Type |
Description |
---|---|---|
privateips |
Array of privateip objects |
Specifies the private IP address objects. For details, see Table 5. |
Name |
Type |
Description |
---|---|---|
status |
String |
|
id |
String |
Specifies the ID of the private IP address, which uniquely identifies the private IP address. |
subnet_id |
String |
Specifies the ID of the subnet from which IP addresses are assigned. If you use the management console, the value of this parameter is the Network ID value. |
tenant_id |
String |
Specifies the project ID. |
device_owner |
String |
|
ip_address |
String |
Specifies the assigned private IP address. |
{ "privateips": [ { "status": "DOWN", "id": "c60c2ce1-1e73-44bd-bf48-fd688448ff7b", "subnet_id": "531dec0f-3116-411b-a21b-e612e42349fd", "tenant_id": "8b7e35ad379141fc9df3e178bd64f55c", "device_owner": "", "ip_address": "192.168.1.10" }, { "status": "DOWN", "id": "4b123c18-ae92-4dfa-92cd-d44002359aa1", "subnet_id": "531dec0f-3116-411b-a21b-e612e42349fd", "tenant_id": "8b7e35ad379141fc9df3e178bd64f55c", "device_owner": "", "ip_address": "192.168.1.17" } ] }
See Status Codes.
See Error Codes.