最新活动 七周年庆典

产品

硅云帮助文档中心

搜索文档

热门搜索词:

搜索实例

更新时间:2020-05-21 16:47  版本:v1.0
分享到:
我要反馈 
收藏 我的收藏

简要描述:


    搜索实例


请求url:


/vhost-server/api/v1/host/search


请求方式:


GET


请求参数:


字段
类型最大长度参数位置默认选填
描述
page int10RequestBody
页,默认1 第一页
rowint10RequestBody
默认10  一页10行,最大100
ipstring
RequestBody
公网ip地址
statusstring16RequestBody
实例状态
areaMarkstring32RequestBody
地区标识
autoRenewboolean1RequestBody
是否开启了自动续费,true为已开启
idstring32RequestBody
实例Id,模糊查询,精确查询请通过根据实例id获取实例接口
fromCreateTimelong64RequestBody
创建时间时间戳左区间,精确到毫秒
toCreateTimelong64RequestBody
创建时间时间戳右区间,精确到毫秒
fromEndTimelong64RequestBody
过期时间时间戳左区间,精确到毫秒
toEndTimelong64RequestBody
过期时间时间戳右区间,精确到毫秒



请求示例:


GET /vhost-server/api/v1/host/search HTTP/1.1
Content-Type: application/json
request_id: 2942183558593ffc9d75fb8e16793ff
api_key: 1706006863049654272
signature: 7a6c3247a5c0aaf1c8cb3cfc8198ce23ec12e31747051210d19bfb6bad7d7053
Content-Type: application/json

{
	"row":1
}


返回示例:


count表示符合该条件的实例总共有多少条。


{
    "status": 2000,
    "message": "success",
    "data": {
        "count": 4,
        "data": [
            {
                "userAccount": "z8z87878",
                "productName": "香港普惠二型",
                "resourceId": "hk-node1",
                "resourceName": "香港节点一",
                "hostType": "hk-ph",
                "hostTypeName": "香港普惠型",
                "productId": "hk-ph2x",
                "areaName": "香港一区",
                "areaMark": "hk-1",
                "beginTime": 1589352288000,
                "endTime": 1594622688000,
                "status": "OK",
                "hostName": "cvh-3hdr7uz22s223",
                "latestOrderId": "1706556457795452929",
                "ipList": "192.168.32.2",
                "ipV6": "",
                "cnDomain": "test.cn.name",
                "autoRenew": false,
                "systemInfo": "Linux-PHP版",
                "refundStatus": "NONE",
                "configuration": "",
                "createTime": 1589352289658,
                "updateTime": 1589356803423,
                "id": "cvh-3hdr7uz22s223"
            }
        ]
    }
}


实例数据结构:


字段类型
描述
idstring实例id
userAccount
string用户名

resourceName

string节点名
status
string实例状态
ipList
stringip地址
cnDomain
string别名
autoRenew
boolean是否开通了自动续费
endTimelong到期时间时间戳,精确到毫秒
createTimelong创建时间时间戳,精确到毫秒







您对该文档有什么建议?

您对该文档的评分:

本文导航

简要描述:

请求url:

请求方式:

请求参数:

请求示例:

返回示例:

搜索文档