描述:获取所有产品
请求方式:GET
请求地址:/v1/hosts
版本:v1
内部API调用方法名:Host_getHosts
请求参数
| 参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
| cate_id | int | - | 产品分类ID | 1 | |
| page | int | require | - | 页数 | 1 |
| limit | int | require | - | 分页条数 | 20 |
| orderby | string | - | 排序字段 | ||
| sort | string | - | DESC降序,ASC升序,只有这有这两个值 | DESC | |
| keywords | string | - | 搜索 | ||
| domainstatus | array[] | - | 产品状态 | ["Active"] |
返回参数
| 参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
| total | int | - | 数据条数 | 1 | |
| _host | array[] | - | 产品 | [ { "id": 1, "type": "server", "domain": "example", "domainstatus": "Active", "regdate": 1639978741, "nextduedate": 1642657162, "firstpaymentamount": "100.00", "amount": "100.00", "billingcycle": "monthly", "dedicatedip": "192.168.1.1", "assignedips": [ "192.168.1.1", "192.168.1.2" ], "initiative_renew": 1, "notes": "备注", "product_id": 1, "product_name": "example", "host_cancel": "{"type": "立即停用","reason": "立即停用"}", }] | |
| Lid | int | - | 产品ID | 1 | |
| Ltype | string | - | 产品类型 | server | |
| Ldomain | string | - | 产品名称 | example | |
| Ldomainstatus | string | - | 产品状态 | Active | |
| Lregdate | int | - | 开通时间 | 1639978741 | |
| Lnextduedate | int | - | 到期时间 | 1642657162 | |
| Lfirstpaymentamount | float | - | 首付款金额 | 100.00 | |
| Lamount | float | - | 续费金额 | 100.00 | |
| Lbillingcycle | string | - | 付款周期 | monthly | |
| Ldedicatedip | string | - | IP地址 | 192.168.1.1 | |
| Lassignedips | array[] | - | 附加IP地址 | ["192.168.1.1", "192.168.1.2"] | |
| Linitiative_renew | int | - | 自动续费状态:0否,1是 | 1 | |
| Lremark | string | - | 备注 | 备注 | |
| Lproduct_id | int | - | 商品ID | 1 | |
| Lproduct_name | string | - | 商品名称 | example | |
| L_host_cancel | array[] | - | 取消请求数据 | {"type": "立即停用","reason": "立即停用"} | |
| Ltype | string | - | 类型 | 立即停用 | |
| Lreason | string | - | 原因 | 立即停用 | |
| domainstatus | array[] | - | 产品状态 | { "Pending": { "name": "待开通", "color": "#fca426" }, "Active": { "name": "已激活", "color": "#3fbf70" }, "Cancelled": { "name": "被取消", "color": "#959799" }, "Fraud": { "name": "有欺诈", "color": "#FF0000" }, "Deleted": { "name": "被删除", "color": "#2d2d2d" }, "Suspended": { "name": "已暂停", "color": "#e31519" } } |