最近更新时间:2021-11-08
请求方法:GET
接口描述:查询云主机实例详情。
名称 | 类型 | 是否必选 | 描述 |
Action | String | 是 | 操作名,取值DetailEcs |
RegionId | String | 是 | 区域Id |
InstanceId | String | 是 | 云主机ID |
名称 | 类型 | 描述 |
RequestId | String | 请求ID |
id | String | 云主机ID |
name | String | 云主机名称 |
status | String | 状态 |
description | String | 描述 |
keyPair | String | 使用的密钥对 |
startTime | Long | 开通时间 |
endTime | Long | 到期时间 |
regionId | String | 区域ID |
regionName | String | 区域名 |
cpu | int | CPU数量(核) |
memory | int | 内存数量(G) |
sysDiskCode | String | 系统盘规格 |
sysDiskSize | int | 系统盘大小 |
eipId | String | EIP ID |
eipIp | String | EIP 地址 |
bandWidth | int | EIP带宽 |
ip | String | 云主机IP |
imageId | String | 镜像ID |
imageType | String | 镜像类型 |
imageCode | String | 镜像规格 |
imageParentCode | String | 镜像规格族 |
eniId | String | 主网卡ID |
dataDiskIds | String[] | 关联数据盘ID |
sgIds | String[] | 关联安全组ID |
vpcId | String | VPC ID |
vpcName | String | VPC名称 |
vpcCidr | String | VPC网段 |
vpcStatus | String | VPC状态 |
subnetId | String | 子网ID |
subnetName | String | 子网名称 |
subnetCidr | String | 子网网段 |
GET https://api.unicloud.com/compute/ecs/instances? Action=DetailEcs &RegionId=cn-beijing &InstanceId=ecs-j024uijbcy99 &公共请求参数 |
JSON格式
{ "RequestId": "b9de1a62-d09e-4d34-9a61-38f0f56564b6", "id": "ecs-j024uijbcy99", "name": "i-enh1hMBDJo", "status": "RUNNING", "description": null, "keyPair": "vvvvv", "startTime": 1594627186000, "endTime": 1597334400000, "regionId": "cn-beijing", "regionName": "华北2-北京2", "cpu": 1, "memory": 4, "sysDiskCode": "ebs.highIO.ssd", "sysDiskSize": 40, "eipId": "eip-omnp1ro1kl3ob", "eipIp": "101.65.1.146", "bandWidth": 1, "ip": "172.16.0.24", "imageId": "centos-imageTest-2", "imageType": "linux", "imageCode": "imageTest2", "imageParentCode": "ecs.image.public", "instanceSystem": "imageTest2", "maxDisk": 15, "eniId": "eni-j024uijbczab", "dataDiskIds": [ "ebs-jxv4qt18wrse" ], "sgIds": [ "sg-522odruf0f0ob", "sg-8m7oyob0tb0ob" ] , "vpcId":"vpc-c8xczgvh6dt4", "vpcName":"vpcnew2", "vpcStatus": "RUNNING", "vpcCidr": "192.168.0.0/16", "subnetId": "d2f73653ec414f2bae54c9cf78a305d7", "subnetName": "sub1", "subnetCidr": "192.168.0.0/24" } |