This API is used to query the networks of an ECS.
None
GET /v2.1/{project_id}/servers/{server_id}/ips
GET /v2/{project_id}/servers/{server_id}/ips
None
Table 2 describes the response parameters.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
addresses |
Yes |
Object |
Specifies the network address of the ECS. For details, see Table 3. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Name of the network where the ECS accesses |
Yes |
Array of objects |
Specifies the network where the ECS accesses. For details about the network parameter, see Table 4. |
GET https://{endpoint}/v2/{project_id}/servers/{server_id}/ips
GET https://{endpoint}/v2.1/{project_id}/servers/{server_id}/ips
{
"addresses": {
"demo_net": [
{
"version": 4,
"addr": "10.0.0.4"
},
{
"version": 4,
"addr": "192.150.73.132"
}
],
"private_net": [
{
"version": 4,
"addr": "10.176.42.16"
},
{
"version": 6,
"addr": "::babe:10.176.42.16"
}
]
}
}