這篇文章主要介紹查詢一臺(tái)或多臺(tái)實(shí)例詳細(xì)信息的方法,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
我們擁有十載網(wǎng)頁(yè)設(shè)計(jì)和網(wǎng)站建設(shè)經(jīng)驗(yàn),從網(wǎng)站策劃到網(wǎng)站制作,我們的網(wǎng)頁(yè)設(shè)計(jì)師為您提供的解決方案。為企業(yè)提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、外貿(mào)網(wǎng)站建設(shè)、微信開發(fā)、微信小程序開發(fā)、手機(jī)網(wǎng)站制作設(shè)計(jì)、H5建站、等業(yè)務(wù)。無(wú)論您有什么樣的網(wǎng)站設(shè)計(jì)或者設(shè)計(jì)方案要求,我們都將富于創(chuàng)造性的提供專業(yè)設(shè)計(jì)服務(wù)并滿足您的需求。
DescribeInstances
查詢一臺(tái)或多臺(tái)實(shí)例的詳細(xì)信息。
描述
請(qǐng)求參數(shù)的作用類似于一個(gè)過(guò)濾器,過(guò)濾器為邏輯與(AND)關(guān)系。如果某一參數(shù)為空,則過(guò)濾器不起作用。但是參數(shù)InstanceIds如果是一個(gè)空J(rèn)SON數(shù)組,即[],則視為該過(guò)濾器有效,且返回空。
請(qǐng)求參數(shù)
返回參數(shù)
示例
請(qǐng)求示例
https://ecs.aliyuncs.com/?Action=DescribeInstances &RegionId=cn-hangzhou &<公共請(qǐng)求參數(shù)> 返回示例
XML格式
<DescribeInstancesResponse> <PageNumber>1</PageNumber> <TotalCount>6</TotalCount> <PageSize>10</PageSize> <RequestId>8EF01A45-FFFA-497B-B5C3-1DE1B74DB32D</RequestId> <Instances> <Instance> <InnerIpAddress/> <ImageId>ubuntu_16_0402_64_20G_alibase_20170818.vhd</ImageId> <InstanceTypeFamily>ecs.g5</InstanceTypeFamily> <VlanId/> <NetworkInterfaces> <NetworkInterface> <MacAddress>00:16:3e:32:b4:dc</MacAddress> <PrimaryIpAddress>172.17.XX.XXX</PrimaryIpAddress> <NetworkInterfaceId>eni-2zeh9atclduxvf1zcyal</NetworkInterfaceId> </NetworkInterface> </NetworkInterfaces> <InstanceId>XXXXXXXXXXX</InstanceId> <EipAddress> <IpAddress/> <AllocationId/> <InternetChargeType/> </EipAddress> <InternetMaxBandwidthIn>1000</InternetMaxBandwidthIn> <ZoneId>cn-beijing-e</ZoneId> <InternetChargeType>PayByBandwidth</InternetChargeType> <SpotStrategy>NoSpot</SpotStrategy> <StoppedMode>Not-applicable</StoppedMode> <SerialNumber>d9bd1cdc-624d-4736-9da5-2ba2f741a304</SerialNumber> <IoOptimized>true</IoOptimized> <Memory>8192</Memory> <Cpu>2</Cpu> <VpcAttributes> <NatIpAddress/> <PrivateIpAddress> <IpAddress>172.17.XX.XXX</IpAddress> </PrivateIpAddress> <VSwitchId>vsw-2zeh0r1pabwtg6wcssgca</VSwitchId> <VpcId>vpc-2zeuphj08tt7q3brdb36x</VpcId> </VpcAttributes> <InternetMaxBandwidthOut>1</InternetMaxBandwidthOut> <DeviceAvailable>true</DeviceAvailable> <SecurityGroupIds> <SecurityGroupId>sg-2ze21r9qb638hvtrvsus</SecurityGroupId> </SecurityGroupIds> <SpotPriceLimit>0.0</SpotPriceLimit> <SaleCycle>Week</SaleCycle> <AutoReleaseTime/> <InstanceName>ECS-BUY-2017-57-10</InstanceName> <Description/> <ResourceGroupId/> <OSType>linux</OSType> <OSName>Ubuntu 16.04 64</OSName> <InstanceNetworkType>vpc</InstanceNetworkType> <PublicIpAddress> <IpAddress>47.94.XX.XX</IpAddress> </PublicIpAddress> <HostName>iZ2zeh9atclduxvf1zxuylZ</HostName> <InstanceType>ecs.g5.large</InstanceType> <CreationTime>2017-12-10T04:04Z</CreationTime> <Tags> <Tag> <TagValue>fqwfew</TagValue> <TagKey>fefqe</TagKey> </Tag> <Tag> <TagValue>weqfwq</TagValue> <TagKey>fqewfwqewf</TagKey> </Tag> <Tag> <TagValue>ewqffeqw</TagValue> <TagKey>fqfwewfqw</TagKey> </Tag> </Tags> <Status>Running</Status> <ClusterId/> <Recyclable>false</Recyclable> <RegionId>cn-beijing</RegionId> <GPUSpec/> <OperationLocks/> <GPUAmount>0</GPUAmount> <InstanceChargeType>PrePaid</InstanceChargeType> <ExpiredTime>2017-12-17T16:00Z</ExpiredTime> </Instance> </Instances> </DescribeInstancesResponse>
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問(wèn) API錯(cuò)誤中心。
以上是查詢一臺(tái)或多臺(tái)實(shí)例詳細(xì)信息的方法的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
網(wǎng)頁(yè)題目:查詢一臺(tái)或多臺(tái)實(shí)例詳細(xì)信息的方法
網(wǎng)頁(yè)URL:http://aaarwkj.com/article18/psocdp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機(jī)、面包屑導(dǎo)航、手機(jī)網(wǎng)站建設(shè)、品牌網(wǎng)站設(shè)計(jì)、網(wǎng)站營(yíng)銷、網(wǎng)站改版
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
移動(dòng)網(wǎng)站建設(shè)知識(shí)