這篇文章主要介紹查詢一臺(tái)或多臺(tái)實(shí)例詳細(xì)信息的方法,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
成都創(chuàng)新互聯(lián)公司主營(yíng)東風(fēng)網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,app軟件定制開發(fā),東風(fēng)h5重慶小程序開發(fā)公司搭建,東風(fēng)網(wǎng)站營(yíng)銷推廣歡迎東風(fēng)等地區(qū)企業(yè)咨詢DescribeInstances
查詢一臺(tái)或多臺(tái)實(shí)例的詳細(xì)信息。
描述
請(qǐng)求參數(shù)的作用類似于一個(gè)過濾器,過濾器為邏輯與(AND)關(guān)系。如果某一參數(shù)為空,則過濾器不起作用。但是參數(shù)InstanceIds如果是一個(gè)空J(rèn)SON數(shù)組,即[],則視為該過濾器有效,且返回空。
請(qǐng)求參數(shù)
返回參數(shù)
示例
請(qǐng)求示例
https://ecs.aliyuncs.com/?Action=DescribeInstances &RegionId=cn-hangzhou &<公共請(qǐng)求參數(shù)> 返回示例
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" }
錯(cuò)誤碼
以下為本接口特有的錯(cuò)誤碼。更多錯(cuò)誤碼,請(qǐng)?jiān)L問 API錯(cuò)誤中心。
以上是查詢一臺(tái)或多臺(tái)實(shí)例詳細(xì)信息的方法的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!