硅云幫助文檔中心
搜索文檔
熱門搜索詞:
產(chǎn)品簡介
產(chǎn)品定價(jià)
入門指南
經(jīng)典案例
快照
常見問題
知識拓展
名詞解釋
API參考
產(chǎn)品規(guī)格相關(guān)接口
服務(wù)器實(shí)例相關(guān)接口
安全組相關(guān)接口
磁盤相關(guān)接口
根據(jù)實(shí)例id獲取實(shí)例
根據(jù)實(shí)例id獲取實(shí)例
/ncs-server/api/v1/host/getById
GET
字段 | 類型 | 最大長度 | 參數(shù)位置 | 默認(rèn)選填 | 描述 |
id | string | 32 | query | 實(shí)例id |
GET /ncs-server/api/v1/host/getById?id=cvm-3hdk8be2b2225 HTTP/1.1 Content-Type: application/json request_id: 2942183558593ffc9d75fb8e16793ff api_key: 1706006863049654272 signature: 4f7e239ac2f96a956f6b4deee26245a9c96ea5d0dba9242829cf927689684839
data返回實(shí)例信息
{ "status": 2000, "message": "success", "data": { "userAccount": "z8z87878", "remoteId": "4f5b978e-5631-4dd1-8b1f-a38f202bbadd", "productId": "cvm.g1.c1m1.large", "projectId": "0", "projectName": "默認(rèn)", "latestOrderId": "1706449695652184065", "cpuNum": 1, "memSize": 1024, "systemDiskInfo": "{\"remoteId\":\"9076ee10-2d39-4c23-be59-8fe1a7e5072d\",\"productId\":\"standard_cloud_disk\",\"productName\":\"高效云盤\",\"diskSize\":20,\"status\":\"OK\",\"remoteHostName\":\"computer2\",\"id\":\"disk-3hdk8be2b2222\"}", "areaMark": "test", "areaName": "測試環(huán)境", "hostType": "g1", "hostTypeName": "通用型", "floatIpId": "54a49d4b-a126-4895-bca2-d8548fbfc46b", "floatIp": "192.168.34.243", "floatIpLong": 3232244467, "innerIp": "172.16.1.27", "bandwidthStatus": "OK", "bandwidthProductId": "default", "bandwidthTypeName": "默認(rèn)", "bandwidth": 1, "imageId": "CentOS-6-x86_64-6.8", "imageName": "CentOS 6.8 64位", "imageType": "public", "securityGroupStatus": "ok", "securityGroupInfo": "guiyun-system-template-open-all", "beginTime": 1589188908832, "endTime": 1594459308832, "status": "OK", "remoteHostStatus": "ACTIVE", "buildStatus": "build_success", "remoteHostName": "computer2", "autoRenew": false, "supportNoReasonRefund": false, "refundStatus": "NONE", "configuration": "", "networkName": "selfservice", "createTime": 1589188908833, "updateTime": 1589255127596, "id": "cvm-3hdk8be2b2225" } }
實(shí)例數(shù)據(jù)結(jié)構(gòu):
字段 | 類型 | 描述 |
id | string | 實(shí)例id |
userAccount | string | 用戶名 |
projectId | string | 實(shí)例所屬項(xiàng)目id 0為默認(rèn)項(xiàng)目 |
projectName | string | 實(shí)例項(xiàng)目名 |
systemDiskInfo | string | json字符串,系統(tǒng)盤信息 |
status | string | 實(shí)例狀態(tài) |
remoteHostStatus | string | 實(shí)例運(yùn)行狀態(tài) |
buildStatus | int | 實(shí)例創(chuàng)建狀態(tài) |
bandwidthStatus | string | 帶寬設(shè)置狀態(tài) |
securityGroupStatus | string | 安全組設(shè)置狀態(tài) |
bindDiskCount | int | 綁定續(xù)費(fèi)的磁盤數(shù)量 |
hasBoot | boolean | true為實(shí)例有系統(tǒng)盤,false為沒有,沒有系統(tǒng)盤,主機(jī)不能正常使用 |
endTime | long | 到期時(shí)間時(shí)間戳,精確到毫秒 |
createTime | long | 創(chuàng)建時(shí)間時(shí)間戳,精確到毫秒 |
您對該文檔有什么建議?
本文導(dǎo)航