查询一台或多台实例详细信息的方法-创新互联
这篇文章主要介绍查询一台或多台实例详细信息的方法,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
成都创新互联公司主营东风网站建设的网络公司,主营网站建设方案,app软件定制开发,东风h5重庆小程序开发公司搭建,东风网站营销推广欢迎东风等地区企业咨询DescribeInstances
查询一台或多台实例的详细信息。
描述
请求参数的作用类似于一个过滤器,过滤器为逻辑与(AND)关系。如果某一参数为空,则过滤器不起作用。但是参数InstanceIds如果是一个空JSON数组,即[],则视为该过滤器有效,且返回空。
请求参数
返回参数
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeInstances &RegionId=cn-hangzhou &<公共请求参数> 返回示例
XML格式
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格式
{ "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" }
错误码
以下为本接口特有的错误码。更多错误码,请访问 API错误中心。
以上是查询一台或多台实例详细信息的方法的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!
网页题目:查询一台或多台实例详细信息的方法-创新互联
网页链接:http://lswzjz.com/article/hogsi.html