查询实例详情
更新时间:2023-10-25
说明
- 查询指定实例的详细信息
请求结构
GET /v{version}/instance/{instanceId} HTTP/1.1
HOST: hbase.bj.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
instanceId | String | 是 | URL参数 | 指定实例Id |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
instanceId | String | 实例ID |
uuid | String | 实例uuid |
name | String | 实例名称 |
zkConnAddrs | List<ConnAddrs> | zk链接信息 |
engine | String | 引擎 |
engineVersion | String | 引擎版本 |
zkNodeSpec | String | ZK节点规格类型 |
masterNodeSpec | String | Master节点规格类型 |
coreNodeCount | Integer | Core节点数量 |
coreNodeSpec | String | Core节点规格类型 |
coreNodeDiskType | String | Core节点的磁盘类型 |
coreNodeDiskSizeInGB | Integer | Core节点的磁盘大小 |
coldStorageDir | String | 冷存储的存储目录 |
status | String | 实例状态 |
masterNodes | List<NodeModel> | Master节点信息 |
coreNodes | List<NodeModel> | Core节点信息 |
zkNodes | List<NodeModel> | zk节点信息 |
tsdbProxyCount | String | tsdb proxy节点数量 |
tsdbProxySpec | String | tsdb proxy节点规格。仅当tsdbProxyCount>0时,该参数有意义。 |
paymentTiming | String | 付费方式。 预付费:Prepaid,后付费:Postpaid. |
createTime | Datetime | 实例创建时间 |
expireTime | Datetime | 实例到期时间 |
vpc | VpcModel | 实例所属VPC |
vpcId | String | 实例所属VPC的短ID |
subnets | List<SubnetModel> | 实例所在可用区和子网。 |
tags | List<TagModel> | 实例所属标签 |
resourceGroups | List<GroupTree> | 实例资源所绑定的资源组 |
webUIAddrs | List<ConnAddr> | webui 链接信息 |
isAutoRenew | Boolean | true表示已设置自动续费,false为未设置 |
请求示例
GET /v1/instance/hb-ABC HTTP/1.1
HOST: hbase.bj.baidubce.com
Content-Type: application/json
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
{
"instanceId": "hb-ABC",
"uuid": "0946b67d",
"name": "P9cZKQ",
"engine": "HBase",
"engineVersion": "2.0",
"engineMinVersion": "2.2.7",
"status": "Running",
"zkNodeSpec": "c1m2",
"masterNodeSpec": "c4m8",
"coreNodeCount": 2,
"coreNodeSpec": "c4m8",
"coreNodeDiskType": "cloud_hp1",
"coreNodeDiskSizeInGB": 400,
"tsdbProxyCount": 1,
"tsdbProxySpec": "c4m16",
"coldStorageDir": null,
"vpcId": "vpc-bni",
"orderStatus": null,
"tags": null,
"resourceGroups": [
{
"name": "默认分组",
"extra": "",
"parentUuid": "",
"groupId": "RESG-wHi",
"accountId": "06f5",
"userId": "06f5",
"createTime": 1614157938000,
"updateTime": 1614157938000,
"deleteTime": null,
"bindTime": "2022-12-19T06:12:36Z"
}
],
"vpc": {
"vpcId": "vpc-bni",
"name": "hbase-vpc",
"cidr": "192.168.0.0/16",
"vpcUuid": "3f7ce9"
},
"resourceUuid": "9a4dc",
"webUIAddrs": [
{
"connAddr": "master-ABC-1.hbase.baidubce.com",
"connAddrPort": 16010,
"isInternal": true
},
{
"connAddr": "http://test.baidu-int.com/hb-ABC/master-ABC-1/16010/master-status",
"connAddrPort": 0,
"isInternal": false
}
],
"task": null,
"isAutoRenew": false,
"zkConnAddrs": [
{
"connAddr": "zk-ABC-1.hbase.baidubce.com",
"connAddrPort": 2181,
"isInternal": false
},
{
"connAddr": "zk-ABC-2.hbase.baidubce.com",
"connAddrPort": 2181,
"isInternal": false
},
{
"connAddr": "zk-ABC-3.hbase.baidubce.com",
"connAddrPort": 2181,
"isInternal": false
}
],
"openTSDBAddrs": [
{
"connAddr": "192.168.0.1",
"connAddrPort": 4242,
"isInternal": false
}
],
"masterNodes": [
{
"nodeId": "master-ABC-1"
},
{
"nodeId": "master-ABC-2"
}
],
"coreNodes": [
{
"nodeId": "core-ABC-1"
},
{
"nodeId": "core-ABC-2"
}
],
"zkNodes": [
{
"nodeId": "zk-ABC-1"
},
{
"nodeId": "zk-ABC-2"
},
{
"nodeId": "zk-ABC-3"
}
],
"tsdbProxies": [
{
"nodeId": "tsdb-ABC-1"
}
],
"subnets": [
{
"zoneName": "zoneB",
"subnetId": "sbn-8we8",
"name": "hbase-subnet",
"cidr": "192.168.0.0/24",
"subnetUuid": "3455"
}
],
"createTime": "2022-12-19T05:52:09Z",
"expireTime": null,
"paymentTiming": "Postpaid"
}