Updated on 2026-09-18 GMT+08:00

Querying the Networks of a Specified ECS (Discarded)

Function

This API is used to query the networks of a specified ECS.

This API has been discarded. Use the API described in Querying Details About an ECS.

Constraints

None

URI

GET /v2.1/{project_id}/servers/{server_id}/ips

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

For details about how to obtain the ID, see Obtaining a Project ID.

server_id

Yes

Specifies the ECS ID.

Request

None

Response

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Mandatory

Type

Description

addresses

Yes

Map<String, Array of objects>

Specifies the network address of the ECS. For details, see Table 3.

Table 3 addresses parameter structure description

Parameter

Mandatory

Type

Description

Network address of the ECS

Yes

Array of objects

Specifies the network where the ECS resides. For details about the network, see ECS.

Table 4 ECS network parameter structure description

Parameter

Mandatory

Type

Description

addr

No

String

Specifies the IP address.

version

No

Integer

Specifies the IP address type. The value can be 4 or 6.

  • 4: IPv4
  • 6: IPv6

Example Request

Query the networks of a specified ECS.

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"
            }
        ]
    }
}