查询租户下的集群列表
功能介绍
租户集群列表查询,支持以下参数:name,status,cursor,next,limit,order.
名称 |
描述 |
---|---|
name |
集群名。 |
status |
集群状态码,请参见状态码。 |
cursor |
集群ID。 |
next |
是否向下翻页。true或者false,默认为true。 |
limit |
返回的数据条数。默认值为10。 |
order |
查询结果排序,升序asc和降序desc两种可选,默认降序。 |
URI
- URI格式
GET /v1.0/{project_id}/reserved_clusters
- 参数说明
表2 URI参数说明 名称
是否必选
说明
project_id
是
项目编号。获取方法,请参见获取项目ID。
请求消息
无
响应消息
- 响应样例
{ "message_id": "CS.20040", "message": "集群列表查询成功", "payload": { "total": 1, "clusters": [ { "cluster_id": 10, "name": "mycluster2", "desc": "Cluster description", "status_code": 5, "status_name": "cluster_running", "status_desc": "cluster_running", "spu_used": 0, "maximum_spu_quota": 100, "region_id": "cn-north-1", "error_reason": "", "created_at": 1550081520879, "vpc_cidr": "", "subnet_cidr": "", "subnet_gateway": "", "manager_node_spu": "2", "sys_enterprise_project_id": "0", "sys_enterprise_project_name": "" } ] }, "current_time": 1550199862985 }
- 参数说明
表3 响应参数说明 参数名
是否必选
参数类型
说明
message_id
否
String
消息类型ID。
message
否
String
消息内容。
payload
否
无
独享集群信息。
total
否
Int
集群数量。
clusters
否
无
集群列表。
cluster_id
否
Int
集群ID。
name
否
String
集群名称。
desc
否
String
集群描述。
status_code
否
Int
集群当前状态码。
status_name
否
String
集群当前状态名称。状态如下:
- cluster_creating
- cluster_create_fail
- cluster_create_success
- cluster_starting
- cluster_running
- cluster_deleting
- cluster_delete_fail
status_desc
否
String
集群当前状态描述。
spu_used
否
Int
集群已使用SPU配额。
maximum_spu_quota
否
Int
集群的最大SPU配额。
region_id
否
String
集群当前所处的Region。
error_reason
否
String
集群状态异常时的错误原因。
created_at
否
Int
集群创建时间。
vpc_cidr
否
String
集群VPC网段。
subnet_cidr
否
String
集群子网网段。
subnet_gateway
否
String
集群子网网关。
manager_node_spu
否
Int
集群管理节点SPU。
sys_enterprise_project_id
否
String
集群所属企业项目ID。
sys_enterprise_project_name
否
String
集群所属企业项目名称。
current_time
否
Int
当前时间, 毫秒数。
错误码
请参见错误码。
