Queries a list of addresses based on address names, descriptions, health check templates referenced by the addresses, or address IDs.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
alidns:SearchCloudGtmAddresses | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AcceptLanguage | string | No | The language of the response. Valid values:
| en-US |
Names | array | No | Address name, usually for users to distinguish between different addresses. | |
string | No | Address name search criteria, supporting simultaneous input of multiple keywords for query. | ["address_1", "test"] | |
NameSearchCondition | string | No | The logical condition for querying addresses by name. This parameter is required if you want to query addresses by name. Valid values:
| or |
AvailableStatus | string | No | Search by address availability status with precise conditions:
| available |
Type | string | No | Search precisely by address type conditions:
| IPv4 |
Address | string | No | Query by service address with precise conditions, supporting IP addresses or domain names. | 223.5.XX.XX |
MonitorTemplateName | string | No | Health check template name. | Ping-IPv4 |
EnableStatus | string | No | Query by exact address enable status:
| enable |
HealthStatus | string | No | The health state of the addresses that you want to query. Valid values:
| ok |
Remarks | array | No | Remarks for the address. | |
string | No | Address remark search criteria, supporting simultaneous input of multiple keywords for query. | ["", "test"] | |
RemarkSearchCondition | string | No | The logical condition for querying addresses by additional description. This parameter is required if you want to query addresses by additional description. Valid values: and: displays the results that match all search conditions. or: displays the results that match some or all search conditions. | or |
PageNumber | integer | Yes | Current page number, starting from 1, default is 1. | 1 |
PageSize | integer | Yes | The number of rows per page when paginating queries, with a maximum value of 100 and a default of 20. | 20 |
AddressId | string | No | The address ID. This ID uniquely identifies the address. | addr-89518218114368**92 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382",
"PageNumber": 1,
"PageSize": 20,
"TotalPages": 1,
"TotalItems": 15,
"Addresses": {
"Address": [
{
"AddressId": "addr-89518218114368**92",
"CreateTime": "2024-03-23T13:09Z",
"CreateTimestamp": 1527690629357,
"UpdateTime": "2024-03-29T13:20Z",
"UpdateTimestamp": 1527690629357,
"Name": "Address-1",
"Type": "IPv4",
"Address": "223.5.XX.XX",
"AttributeInfo": "The parameter should be none.",
"Remark": "test",
"EnableStatus": "enable",
"AvailableMode": "auto",
"ManualAvailableStatus": "available",
"AvailableStatus": "available",
"HealthStatus": "ok",
"HealthJudgement": "p50_ok",
"HealthTasks": {
"HealthTask": [
{
"Port": 80,
"TemplateId": "mtp-895180524251002880",
"TemplateName": "IPv4-Ping",
"MonitorStatus": "ok"
}
]
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.