In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.