DescribeInstances_云服务器 ECS_API文档-阿里云OpenAPI开发者门户
json 格式复制
```
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"PageSize": 10,
"PageNumber": 1,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 1,
"Instances": {
"Instance": [
{
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"Memory": 16384,
"InstanceChargeType": "PostPaid",
"Cpu": 8,
"OSName": "CentOS 7.4 64 位",
"InstanceNetworkType": "vpc",
"InnerIpAddress": {
"IpAddress": [
"10.170.**.**"
]
},
"ExpiredTime": "2017-12-10T04:04Z",
"ImageId": "m-bp67acfmxazb4p****",
"EipAddress": {
"Bandwidth": 5,
"AllocationId": "eip-2ze88m67qx5z****",
"IpAddress": "42.112.**.**",
"IsSupportUnassociate": true,
"InternetChargeType": "PayByTraffic"
},
"ImageOptions": {
"LoginAsNonRoot": false,
"CurrentOSNVMeSupported": true
},
"VlanId": "10",
"HostName": "testHostName",
"Tags": {
"Tag": [
{
"TagKey": "TestKey",
"TagValue": "TestValue"
}
]
},
"Status": "Running",
"HibernationOptions": {
"Configured": false
},
"AdditionalInfo": {
"EnableHighDensityMode": true
},
"MetadataOptions": {
"HttpPutResponseHopLimit": 0,
"HttpTokens": "optional",
"HttpEndpoint": "enabled"
},
"InstanceId": "i-bp67acfmxazb4p****",
"StoppedMode": "KeepCharging",
"CpuOptions": {
"TopologyType": "DiscreteCoreToHTMapping",
"TurboMode": "",
"EnableVISST": true,
"EnableVRDT": true,
"ThreadsPerCore": 2,
"Numa": "null",
"CoreCount": 2
},
"StartTime": "2017-12-10T04:04Z",
"PrivateDnsNameOptions": {
"EnableInstanceIdDnsARecord": false,
"HostnameType": "Custom",
"EnableIpDnsPtrRecord": true,
"EnableIpDnsARecord": true,
"EnableInstanceIdDnsAAAARecord": false
},
"DeletionProtection": false,
"SecurityGroupIds": {
"SecurityGroupId": [
"sg-bp67acfmxazb4p****"
]
},
"VpcAttributes": {
"PrivateIpAddress": {
"IpAddress": [
"172.17.**.**"
]
},
"VpcId": "vpc-2zeuphj08tt7q3brd****",
"VSwitchId": "vsw-2zeh0r1pabwtg6wcs****",
"NatIpAddress": "172.17.**.**"
},
"InternetChargeType": "PayByTraffic",
"DeploymentSetId": "ds-bp67acfmxazb4p****",
"InstanceName": "InstanceNameTest",
"SpotInterruptionBehavior": "Terminate",
"InternetMaxBandwidthOut": 5,
"SerialNumber": "51d1353b-22bf-4567-a176-8b3e12e4****",
"OSType": "linux",
"CreationTime": "2017-12-10T04:04Z",
"AutoReleaseTime": "2017-12-10T04:04Z",
"Description": "testDescription",
"EnableNVS": true,
"LocalStorageCapacity": 1000,
"InstanceTypeFamily": "ecs.g5",
"DedicatedInstanceAttribute": {
"Tenancy": "default",
"Affinity": "default"
},
"SpotDuration": 1,
"LocalStorageAmount": 2,
"PublicIpAddress": {
"IpAddress": [
"121.40.**.**"
]
},
"GPUSpec": "NVIDIA V100",
"NetworkInterfaces": {
"NetworkInterface": [
{
"Type": "Primary",
"Ipv6Sets": {
"Ipv6Set": [
{
"Ipv6Address": "2408:4321:180:1701:94c7:bc38:3bfa:***"
}
]
},
"Ipv6PrefixSets": {
"Ipv6PrefixSet": [
{
"Ipv6Prefix": "2001:1111:*:*::/80"
}
]
},
"PrimaryIpAddress": "172.17.**.***",
"MacAddress": "00:16:3e:32:b4:**",
"NetworkInterfaceId": "eni-2zeh9atclduxvf1z****",
"Ipv4PrefixSets": {
"Ipv4PrefixSet": [
{
"Ipv4Prefix": "192.168.*.*/28"
}
]
},
"PrivateIpSets": {
"PrivateIpSet": [
{
"PrivateIpAddress": "172.17.**.**",
"PrivateDnsName": "dnsTestName",
"Primary": true
}
]
}
}
]
},
"SpotPriceLimit": 0.98,
"SaleCycle": "month",
"DeviceAvailable": true,
"InstanceType": "ecs.g5.large",
"SpotStrategy": "NoSpot",
"OSNameEn": "CentOS 7.4 64 bit",
"KeyPairName": "testKeyPairName",
"IoOptimized": true,
"ZoneId": "cn-hangzhou-g",
"ClusterId": "c-bp67acfmxazb4p****",
"HpcClusterId": "hpc-bp67acfmxazb4p****",
"ISP": "null",
"DeploymentSetGroupNo": 1,
"EcsCapacityReservationAttr": {
"CapacityReservationPreference": "cr-bp67acfmxazb4p****",
"CapacityReservationId": "cr-bp67acfmxazb4p****"
},
"DedicatedHostAttribute": {
"DedicatedHostId": "dh-bp67acfmxazb4p****",
"DedicatedHostName": "testDedicatedHostName",
"DedicatedHostClusterId": "dc-bp67acfmxazb4h****"
},
"GPUAmount": 4,
"OperationLocks": {
"LockReason": [
{
"LockReason": "Recycling",
"LockMsg": "The specified instance is locked due to financial reason."
}
]
},
"RdmaIpAddress": {
"IpAddress": [
"10.10.10.102"
]
},
"InternetMaxBandwidthIn": 50,
"ClockOptions": {
"PtpStatus": ""
},
"Recyclable": false,
"RegionId": "cn-hangzhou",
"CreditSpecification": "Standard"
}
]
}
}
```
xml 格式复制
```
<DescribeInstancesResponse>
<NextToken>caeba0bbb2be03f84eb48b699f0a4883</NextToken>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
<TotalCount>1</TotalCount>
<Instances>
<Instance>
<CreationTime>2017-12-10T04:04Z</CreationTime>
<SerialNumber>51d1353b-22bf-4567-a176-8b3e12e4****</SerialNumber>
<Status>Running</Status>
<DeploymentSetId>ds-bp67acfmxazb4p****</DeploymentSetId>
<KeyPairName>testKeyPairName</KeyPairName>
<SaleCycle>month</SaleCycle>
<SpotStrategy>NoSpot</SpotStrategy>
<DeviceAvailable>true</DeviceAvailable>
<LocalStorageCapacity>1000</LocalStorageCapacity>
<Description>testDescription</Description>
<SpotDuration>1</SpotDuration>
<InstanceNetworkType>vpc</InstanceNetworkType>
<InstanceName>InstanceNameTest</InstanceName>
<OSNameEn>CentOS 7.4 64 bit</OSNameEn>
<HpcClusterId>hpc-bp67acfmxazb4p****</HpcClusterId>
<SpotPriceLimit>0.98</SpotPriceLimit>
<Memory>16384</Memory>
<OSName>CentOS 7.4 64 位</OSName>
<DeploymentSetGroupNo>1</DeploymentSetGroupNo>
<ImageId>m-bp67acfmxazb4p****</ImageId>
<VlanId>10</VlanId>
<ClusterId>c-bp67acfmxazb4p****</ClusterId>
<GPUSpec>NVIDIA V100</GPUSpec>
<AutoReleaseTime>2017-12-10T04:04Z</AutoReleaseTime>
<DeletionProtection>false</DeletionProtection>
<StoppedMode>KeepCharging</StoppedMode>
<GPUAmount>4</GPUAmount>
<HostName>testHostName</HostName>
<InstanceId>i-bp67acfmxazb4p****</InstanceId>
<InternetMaxBandwidthOut>5</InternetMaxBandwidthOut>
<InternetMaxBandwidthIn>50</InternetMaxBandwidthIn>
<InstanceType>ecs.g5.large</InstanceType>
<InstanceChargeType>PostPaid</InstanceChargeType>
<RegionId>cn-hangzhou</RegionId>
<IoOptimized>true</IoOptimized>
<StartTime>2017-12-10T04:04Z</StartTime>
<Cpu>8</Cpu>
<LocalStorageAmount>2</LocalStorageAmount>
<ExpiredTime>2017-12-10T04:04Z</ExpiredTime>
<ResourceGroupId>rg-bp67acfmxazb4p****</ResourceGroupId>
<InternetChargeType>PayByTraffic</InternetChargeType>
<ZoneId>cn-hangzhou-g</ZoneId>
<Recyclable>false</Recyclable>
<ISP>null</ISP>
<CreditSpecification>Standard</CreditSpecification>
<InstanceTypeFamily>ecs.g5</InstanceTypeFamily>
<OSType>linux</OSType>
<NetworkInterfaces>
<NetworkInterface>
<Type>Primary</Type>
<MacAddress>00:16:3e:32:b4:**</MacAddress>
<PrimaryIpAddress>172.17.**.***</PrimaryIpAddress>
<NetworkInterfaceId>eni-2zeh9atclduxvf1z****</NetworkInterfaceId>
<PrivateIpSets>
<PrivateIpSet>
<PrivateIpAddress>172.17.**.**</PrivateIpAddress>
<Primary>true</Primary>
</PrivateIpSet>
</PrivateIpSets>
<Ipv6Sets>
<Ipv6Set>
<Ipv6Address>2408:4321:180:1701:94c7:bc38:3bfa:***</Ipv6Address>
</Ipv6Set>
</Ipv6Sets>
<Ipv4PrefixSets>
<Ipv4PrefixSet>
<Ipv4Prefix>192.168.*.*/28</Ipv4Prefix>
</Ipv4PrefixSet>
</Ipv4PrefixSets>
<Ipv6PrefixSets>
<Ipv6PrefixSet>
<Ipv6Prefix>2001:1111:*:*::/80</Ipv6Prefix>
</Ipv6PrefixSet>
</Ipv6PrefixSets>
<OperationLocks>
<OperationLock>
<LockMsg>The specified instance is locked due to financial reason.</LockMsg>
<LockReason>Recycling</LockReason>
</OperationLock>
</OperationLocks>
<Tags>
<Tag>
<TagValue>TestValue</TagValue>
<TagKey>TestKey</TagKey>
</Tag>
</Tags>
<RdmaIpAddresses>
<RdmaIpAddress>10.10.10.102</RdmaIpAddress>
</RdmaIpAddresses>
<SecurityGroupIds>
<SecurityGroupId>sg-bp67acfmxazb4p****</SecurityGroupId>
</SecurityGroupIds>
<PublicIpAddress>
<PublicIpAddres>121.40.**.**</PublicIpAddres>
</PublicIpAddress>
<InnerIpAddress>
<InnerIpAddres>10.170.**.**</InnerIpAddres>
</InnerIpAddress>
<VpcAttributes>
<VpcId>vpc-2zeuphj08tt7q3brd****</VpcId>
<NatIpAddress>172.17.**.**</NatIpAddress>
<VSwitchId>vsw-2zeh0r1pabwtg6wcs****</VSwitchId>
<PrivateIpAddress>
<PrivateIpAddres>172.17.**.**</PrivateIpAddres>
</PrivateIpAddress>
</VpcAttributes>
<EipAddress>
<IsSupportUnassociate>true</IsSupportUnassociate>
<InternetChargeType>PayByTraffic</InternetChargeType>
<IpAddress>42.112.**.**</IpAddress>
<Bandwidth>5</Bandwidth>
<AllocationId>eip-2ze88m67qx5z****</AllocationId>
</EipAddress>
<HibernationOptions>
<Configured>false</Configured>
</HibernationOptions>
<DedicatedHostAttribute>
<DedicatedHostId>dh-bp67acfmxazb4p****</DedicatedHostId>
<DedicatedHostName>testDedicatedHostName</DedicatedHostName>
<DedicatedHostClusterId>dc-bp67acfmxazb4h****</DedicatedHostClusterId>
</DedicatedHostAttribute>
<EcsCapacityReservationAttr>
<CapacityReservationPreference>cr-bp67acfmxazb4p****</CapacityReservationPreference>
<CapacityReservationId>cr-bp67acfmxazb4p****</CapacityReservationId>
</EcsCapacityReservationAttr>
<DedicatedInstanceAttribute>
<Affinity>default</Affinity>
<Tenancy>default</Tenancy>
</DedicatedInstanceAttribute>
<CpuOptions>
<Numa>2</Numa>
<CoreCount>2</CoreCount>
<ThreadsPerCore>4</ThreadsPerCore>
</CpuOptions>
<MetadataOptions>
<HttpEndpoint>enabled</HttpEndpoint>
<HttpPutResponseHopLimit>0</HttpPutResponseHopLimit>
<HttpTokens>optional</HttpTokens>
</MetadataOptions>
<ImageOptions>
<LoginAsNonRoot>false</LoginAsNonRoot>
</ImageOptions>
</NetworkInterface>
</NetworkInterfaces>
</Instance>
</Instances>
</DescribeInstancesResponse>
```