Queries IP addresses or host names in traced data.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListIpOrHosts |
The operation that you want to perform. Set the value to |
RegionId | String | Yes | cn-beijing |
The region ID of the instance. For example, you can set the parameter to |
ServiceName | String | No | service1 |
The name of the service. The parameter is optional. If you specify a service name, the IP addresses in this service are returned. |
StartTime | Long | No | 1583683200000 |
The beginning of the time range to query. |
EndTime | Long | No | 1583723776974 |
The end of the time range to query. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IpNames | List | [ "10.0.0.0", "10.0.0.1" ] |
The list of IP addresses. |
RequestId | String | 1E2B6A4C-6B83-4062-8B6F-AEEC1FC47DED |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListIpOrHosts
&RegionId=cn-beijing
&<Common request parameters>
Sample success responses
XML
format
<RequestId>23D9757C-CB58-41A5-BBE7-2A9A0652B2F4</RequestId>
<IpNames>
<IpName>172.19.33.172</IpName>
<IpName>null</IpName>
<IpName>10.0.0.5</IpName>
</IpNames>
JSON
format
{
"RequestId": "23D9757C-CB58-41A5-BBE7-2A9A0652B2F4",
"IpNames": {
"IpName": [
"172.19.33.172",
"10.0.0.5"
]
}
}