forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
13 KiB
13 KiB
Querying the Networks of a Specified ECS
Function
This API is used to query the networks of a specified ECS.
Constraints
None
URI
GET /v2.1/{project_id}/servers/{server_id}/ips
GET /v2/{project_id}/servers/{server_id}/ips
Table 1 describes the parameters in the URI.
Request
None
Response
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 |
|---|---|---|---|
Network address of the ECS |
Yes |
Array of objects |
Specifies the network where the ECS accesses. For details about the network parameter, see Table 4. |
Example Request
Query the networks of a specified ECS.
GET https://{endpoint}/v2/{project_id}/servers/{server_id}/ips
GET https://{endpoint}/v2.1/{project_id}/servers/{server_id}/ips
Example Response
{
"addresses": {
"Network address of the ECS": [
{
"version": 4,
"addr": "10.176.42.16"
},
{
"version": 6,
"addr": "::babe:10.176.42.16"
}
]
}
}
Returned Values
Parent topic: Network Management