Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of querying the details of one or more instances

Shulou Source: shulou.com Published: 2022-06-02 04:28:29 10月04日 Update

This article mainly introduces the method of querying the detailed information of one or more instances. The introduction in this article is very detailed and has certain reference value. Interested friends must read it!

DescribeInstances

Query the details of one or more instances.

described

The request parameter acts like a filter, with a logical AND relationship. If a parameter is blank, the filter does not work. However, if the parameter InstanceIds is an empty JSON array, that is,[], the filter is considered valid and returns null.

request parameters

return parameter

example

request example

https://ecs.aliyuncs.com/? Action=DescribeInstances&RegionId=cn-hangzhou& Return Example

XML format

1 6 10 8EF01A45-FFFA-497B-B5C3-1DE1B74DB32D ubuntu_16_0402_64_20G_alibase_20170818.vhd ecs.g5 00:16:3e:32:b4:dc 172.17.XX.XXX eni-2zeh9atclduxvf1zcyal XXXXXXXXXXX 1000 cn-beijing-e PayByBandwidth NoSpot Not-applicable d9bd1cdc-624d-4736-9da5-2ba2f741a304 true 8192 2 172.17.XX.XXX vsw-2zeh0r1pabwtg6wcssgca vpc-2zeuphj08tt7q3brdb36x 1 true sg-2ze21r9qb638hvtrvsus 0.0 Week ECS-BUY-2017-57-10 linux Ubuntu 16.04 64 vpc 47.94.XX.XX iZ2zeh9atclduxvf1zxuylZ ecs.g5.large 2017-12-10T04:04Z fqwfew fefqe weqfwq fqewfwqewf ewqffeqw fqfwewfqw Running false cn-beijing 0 PrePaid 2017-12-17T16:00Z

JSON format

{ "Instances": { "Instance": [ { "CreationTime": "2015-07-27T07:08Z", "DeviceAvailable": "true", "EipAddress": {}, "ExpiredTime": "2011-09-08T16:00Z", "HostName": "iZ94t3s0jxkZ", "ImageId": "centos6u5_64_20G_aliaegis_20150130.vhd", "InnerIpAddress": { "IpAddress": [ "10.170.XX.XXX" ] }, "InstanceChargeType": "PostPaid", "InstanceId": "XXXXXXXXX", "InstanceName": "dd\u6027\u80fd\u6d4b\u8bd5", "InstanceNetworkType": "classic", "InstanceType": "ecs.s2.large", "InternetChargeType": "PayByTraffic", "InternetMaxBandwidthIn": "-1", "InternetMaxBandwidthOut": "1", "IoOptimized": "false", "OperationLocks": { "LockReason": [] }, "PublicIpAddress": { "IpAddress": [ "120.25.XX.XXX" ] }, "RegionId": "cn-shenzhen", "SecurityGroupIds": { "SecurityGroupId": [ "sg-94kd0cyg0" ] }, "SerialNumber": "51d1353b-22bf-4567-a176-8b3e12e43135", "Status": "Running", "VpcAttributes": { "PrivateIpAddress": { "IpAddress": [] } }, "ZoneId": "cn-shenzhen-a" } ] }, "PageNumber": "1", "PageSize": "10", "RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A", "TotalCount": "1"}

error code

The following error codes are specific to this interface. For more error codes, visit the API Error Center.

The above is all about how to query the details of one or more instances. Thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Tags: Parameters filters errors information multiple instance query example method function content more format validity value interest buddy partner interface array Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Apple vpn Shulou Tech Info OPPO Reno