This API is used to query the specified network of an ECS.
None
GET /v2.1/{project_id}/servers/{server_id}/ips/{networkName}
GET /v2/{project_id}/servers/{server_id}/ips/{networkName}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
server_id |
Yes |
String |
Specifies the ECS ID. |
networkName |
Yes |
String |
Specifies the ECS network name. |
None
Table 3 describes the response parameters.
Parameter |
Type |
Description |
---|---|---|
Network address of the ECS |
List(Dict) |
Specifies the network where the ECS accesses. For details about the network, see Table 4. |
Query the specified network of a specified ECS.
GET https://{endpoint}/v2/{project_id}/servers/{server_id}/ips/{networkName} GET https://{endpoint}/v2.1/{project_id}/servers/{server_id}/ips/{networkName}
{
"Network address of the ECS": [
{
"version": 4,
"addr": "10.0.0.4"
},
{
"version": 4,
"addr": "192.150.73.132"
}
]
}