Queries the IP addresses of an application.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListIpOrHosts

The operation that you want to perform. Set the value to ListIpOrHosts.

RegionId String Yes cn-beijing

The ID of the region.

ServiceName String No service1

The name of the application. If you do not set this parameter, the IP addresses of all applications in the specified region are returned.

StartTime Long No 1583683200000

The beginning of the time range to query. Unit: milliseconds.

EndTime Long No 1583723776974

The end of the time range to query. Unit: milliseconds.

Response parameters

Parameter Type Example Description
RequestId String 1E2B6A4C-6B83-4062-8B6F-AEEC1FC4****

The ID of the request.

IpNames Array of String [ "172.19.XXX.XXX", "10.0.X.X" ]

The list of IP addresses.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "23D9757C-CB58-41A5-BBE7-2A9A0652****",
  "IpNames" : {
    "IpName" : [ "172.19.XXX.XXX", "10.0.X.X" ]

Error codes

For a list of error codes, visit the API Error Center.