Queries the details of one or more Edge Node Service (ENS) instances.
Operation description
- You can call this operation up to 800 times per second per account.
- You can call this operation up to 100 times per second per user.
- You can specify multiple request parameters to be queried. Specified parameters are evaluated by using the AND operator. Only the specified parameters are included in the filter conditions. However, if InstanceIds is set to an empty JSON array, it is regarded as a valid filter condition and an empty result is returned.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
EnsRegionId | string | No | The region ID. | cn-beijing-cmcc |
InstanceId | string | No | The ID of the instance. | i-5iqczfxps7csjrxeca**** |
EnsRegionIds | string | No | The IDs of the regions. The value is a JSON array that consists of up to 100 IDs. Separate multiple IDs with commas (,). | ["cn-suzhou-telecom","cn-chengdu-telecom"] |
InstanceIds | string | No | The IDs of the instances. The value is a JSON array that consists of up to 100 IDs. Separate IDs with commas (,). | ["i-5iqczfxps7csjrxeca07****", "i-5iqczfxps7csjrxeca07****"]] |
InstanceName | string | No | The name of the instance. | TestName |
ImageId | string | No | The ID of the image. | centos_6_08_64_20G_alibase_**** |
PageNumber | integer | No | The number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | string | No | The number of entries to return on each page. The maximum value is 100. Default value: 10. | 10 |
Status | string | No | The status of the instance. Valid values:
| Running |
OrderByParams | string | No | The method that you want to use to sort instances. The value of this parameter is in the JSON format. You can sort instances by name, expiration time, node ID, or creation time. You can specify one or more methods. | {"InstanceNameSort":"asc","ExpireTimeSort":"asc","CreationTimeSort":"desc"}} |
EnsServiceId | string | No | The ID of the edge service. You can use the ID to query information about the instances that are created in the edge service. | ens-20190730202316s**** |
InstanceResourceType | string | No | The condition that you want to use to filter instances by category. Valid values:
| EnsService |
SearchKey | string | No | The keyword that you use to query the logs of the service. You can specify the values of parameters such as ip, InstanceName, and InstanceId as the keyword. | Joshua |
NetworkId | string | No | The ID of the network. | n-2zeuphj08tt7q3brd**** |
VSwitchId | string | No | The ID of the vSwitch. | vsw-2zeh0r1pabwtg6wcs**** |
SecurityGroupId | string | No | The ID of the security group. | sg-5kyicq2kfcapxrdds6tar7jqb |
IntranetIp | string | No | The internal IP address of the instance. | 47.100.XX.XX |
Tags | object [] | No | ||
Key | string | No | The tag key. Valid values: 1 to 20. | |
Value | string | No | The tag value. Valid values: 1 to 20. |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 0,
"PageSize": 60,
"PageNumber": 1,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 2,
"Instances": {
"Instance": [
{
"CreationTime": "2019-07-26T06:40:43Z",
"Status": "Running",
"SpecName": "ens.sn1.stiny",
"InstanceTypeFamily": "x86_vm",
"InstanceResourceType": "EnsService",
"HostName": "testHostName",
"InstanceId": "i-instanc****",
"InternetMaxBandwidthIn": 40,
"InternetMaxBandwidthOut": 100,
"EnsRegionId": "cn-hangzhou-telecom",
"Cpu": "2",
"ExpiredTime": "2119-07-13T02:38:57Z",
"InstanceName": "i-5itef0f28t17bcdw9deu6meub",
"Disk": 71680,
"OSName": "centos 6.8 x86_64",
"Memory": 2048,
"ImageId": "m-****",
"DataDisk": {
"DataDisk": [
{
"device_type": "pangu",
"disk_type": "system",
"Size": 51200,
"DiskName": "DiskName",
"uuid": "d-5itef1wtxj961mbff8xe9****",
"storage": 20480,
"DiskId": "d-5ip4c2dhmas0vjd5u1r****",
"Category": "file",
"name": "name",
"DiskSize": 0
}
]
},
"PublicIpAddresses": {
"PublicIpAddress": [
{
"Ip": "119.147.xx.xx",
"GateWay": "119.147.xx.xx",
"Isp": "unicom"
}
]
},
"PrivateIpAddresses": {
"PrivateIpAddress": [
{
"Ip": "119.147.xx.xx",
"GateWay": "119.147.xx.xx",
"Isp": "cmcc"
}
]
},
"SecurityGroupIds": {
"SecurityGroupId": [
"sg-5kyicq2kfcapxrdds6ta****"
]
},
"InnerIpAddress": {
"IpAddress": [
"10.170.xx.xx"
]
},
"PublicIpAddress": {
"IpAddress": [
"119.147.xx.xx"
]
},
"SystemDisk": {
"device_type": "pangu",
"disk_type": "system",
"Size": 51200,
"DiskName": "DiskName",
"uuid": "d-5ip4c2dhmas0rn7rt0p96****",
"storage": 20480,
"DiskId": "d-5ip4c2dhmas0rn7rt0p9****",
"Category": "file",
"name": "DiskName"
},
"NetworkAttributes": {
"NetworkId": "n-2zeuphj08tt7q3brd****",
"VSwitchId": "vsw-2zeh0r1pabwtg6wcs****",
"PrivateIpAddress": {
"IpAddress": [
"172.17.**.**"
]
}
},
"Tags": {
"Tags": [
{
"TagValue": "",
"TagKey": ""
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter | The input parameter domainName that is mandatory for processing this request is not supplied. | - |
400 | InstanceIdNotFound | The input parameter instancdId that is not found. | - |
400 | NoPermission | Permission denied. | - |
400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-01-25 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | see changesets | ||||||||||
| ||||||||||||
2024-01-04 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||
|