硅云幫助文檔中心
搜索文檔
熱門搜索詞:
產(chǎn)品簡介
產(chǎn)品定價
入門指南
經(jīng)典案例
快照
常見問題
知識拓展
名詞解釋
API參考
產(chǎn)品規(guī)格相關接口
服務器實例相關接口
安全組相關接口
磁盤相關接口
搜索實例
搜索實例
/ncs-server/api/v1/host/search
GET
字段 | 類型 | 最大長度 | 參數(shù)位置 | 默認選填 | 描述 |
page | int | 10 | RequestBody | 頁,默認1 第一頁 | |
row | int | 10 | RequestBody | 默認10 一頁10行,最大 100 | |
ip | string | RequestBody | 公網(wǎng)ip地址 | ||
status | string | 16 | RequestBody | 實例狀態(tài) | |
projectId | string | 32 | RequestBody | 項目id | |
areaMark | string | 32 | RequestBody | 地區(qū)標識 | |
securityGroupId | string | 32 | RequestBody | 安全組id | |
autoRenew | boolean | 1 | RequestBody | 是否開啟了自動續(xù)費,true為已開啟 | |
id | string | 32 | RequestBody | 實例Id,模糊查詢,精確查詢請通過根據(jù)實例id獲取實例接口 | |
fromCreateTime | long | 64 | RequestBody | 創(chuàng)建時間時間戳左區(qū)間,精確到毫秒 | |
toCreateTime | long | 64 | RequestBody | 創(chuàng)建時間時間戳右區(qū)間,精確到毫秒 | |
fromEndTime | long | 64 | RequestBody | 過期時間時間戳左區(qū)間,精確到毫秒 | |
toEndTime | long | 64 | RequestBody | 過期時間時間戳右區(qū)間,精確到毫秒 |
GET /ncs-server/api/v1/host/search HTTP/1.1 Content-Type: application/json request_id: 2942183558593ffc9d75fb8e16793ff api_key: 1706006863049654272 signature: 82caf5a0010340e9fdf1d1547375ff5a6aec59bc053781b0ef6cce8b6b7fbb49 Content-Type: application/json { "page": 1, "row": 1 }
count表示符合該條件的實例總共有多少條。
{ "status": 2000, "message": "success", "data": { "count": 4, "data": [ { "userAccount": "z8z87878", "remoteId": "4f5b978e-5631-4dd1-8b1f-a38f202bbadd", "productId": "cvm.g1.c1m1.large", "projectId": "0", "projectName": "默認", "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", "innerIp": "172.16.1.27", "bandwidthStatus": "OK", "bandwidthProductId": "default", "bandwidthTypeName": "默認", "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": "", "createTime": 1589188908833, "updateTime": 1589255127596, "id": "cvm-3hdk8be2b2225" } ] } }
實例數(shù)據(jù)結構:
字段 | 類型 | 描述 |
id | string | 實例id |
userAccount | string | 用戶名 |
projectId | string | 實例所屬項目id 0為默認項目 |
projectName | string | 實例項目名 |
systemDiskInfo | string | json字符串,系統(tǒng)盤信息 |
bindDiskCount | int | 綁定續(xù)費的磁盤數(shù)量 |
hasBoot | boolean | true為有系統(tǒng)盤,false為沒有 |
status | string | 實例狀態(tài) |
remoteHostStatus | string | 實例運行狀態(tài) |
buildStatus | int | 實例創(chuàng)建狀態(tài) |
bandwidthStatus | string | 帶寬設置狀態(tài) |
securityGroupStatus | string | 安全組設置狀態(tài) |
endTime | long | 到期時間時間戳,精確到毫秒 |
createTime | long | 創(chuàng)建時間時間戳,精確到毫秒 |
您對該文檔有什么建議?
本文導航