调用DescribeInstanceAttribute查询单个ECS实例详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 指定实例的 ID。 | i-uf6f5trc95ug8t33**** |
返回参数
示例
正常返回示例
JSON
格式
{
"Status": "Running",
"SerialNumber": "51d1353b-22bf-4567-a176-8b3e12e4****",
"CreationTime": "2017-12-10T04:04Z",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"Description": "testDescription",
"InstanceName": "testInstanceName",
"InstanceNetworkType": "vpc",
"Memory": 16384,
"ImageId": "m-bp1h46wfpjsjastc****",
"ClusterId": "cls-bp67acfmxazb4p****",
"VlanId": "10",
"StoppedMode": "KeepCharging",
"HostName": "testHostName",
"InstanceId": "i-uf6f5trc95ug8t33****",
"InstanceType": "ecs.g5.large",
"InternetMaxBandwidthIn": 50,
"InternetMaxBandwidthOut": 5,
"RegionId": "cn-hangzhou",
"InstanceChargeType": "PrePaid",
"IoOptimized": "true",
"Cpu": 8,
"ExpiredTime": "2017-12-10T04:04Z",
"ZoneId": "cn-hangzhou-g",
"InternetChargeType": "PayByTraffic",
"CreditSpecification": "Standard",
"SecurityGroupIds": {
"SecurityGroupId": [
"sg-bp1fg655nh68xyz9i****"
]
},
"PublicIpAddress": {
"IpAddress": [
"121.40.**.**"
]
},
"InnerIpAddress": {
"IpAddress": [
"192.168.**.**"
]
},
"VpcAttributes": {
"VpcId": "vpc-wz9e4e9pmbcnj6ki6****",
"NatIpAddress": "172.17.**.**",
"VSwitchId": "vsw-uf6ixacqz8osrwnqb****",
"PrivateIpAddress": {
"IpAddress": [
"192.168.**.**"
]
}
},
"EipAddress": {
"InternetChargeType": "PayByTraffic",
"IpAddress": "30.21.**.**",
"Bandwidth": 8,
"AllocationId": "eip-wz9uilio26dfscamm****"
},
"DedicatedHostAttribute": {
"DedicatedHostName": "ecs-autoui-create-ddh-temp",
"DedicatedHostId": "dh-2ze7qrzz6lvbfhr0****"
},
"OperationLocks": {
"LockReason": [
{
"LockReason": "financial"
}
]
},
"EnableJumboFrame": false
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | 指定的实例ID未找到。 |
500 | InternalError | The request processing has failed due to some unknown error. | 内部错误,请重试。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史