查询用户实例列表 - ListUserInstances
功能介绍
查询用户实例列表。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限,具体权限要求请参见权限和授权项。
URI
GET /v1/{project_id}/eds/instances/user-instances
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 项目ID。 获取方法请参考获取项目ID。 |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
name | 否 | String | 实例名称。 参数校验规则:只能包含英文字母、数字、下划线、中文及-,并且只能以中文和英文开头,最小长度1,最大长度100。 |
resource_spec_code | 否 | String | EDS实例类型。
枚举值:
|
belong_type | 否 | Array | 归属类型。
枚举值:
|
status | 否 | String | EDS实例状态。 枚举值:
|
offset | 否 | Integer | 偏移量,表示从此偏移量开始查询,offset大于等于0。
|
limit | 否 | Integer | 每页显示条目数量,最大数量999,超过999后只返回999(防止单页返回过大)。
|
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Auth-Token | 是 | String | 用户Token,通过调用IAM服务“获取用户Token”接口获取(响应消息头中X-Subject-Token的值)。 |
响应参数
状态码: 200
参数 | 参数类型 | 描述 |
|---|---|---|
data | Array of InstanceApiInfo objects | 实例信息。 |
total | Long | 总数。 |
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | EDS实例ID。 |
name | String | EDS实例名称。 |
description | String | EDS实例描述信息。 |
resource_spec_code | String | EDS资源规格编码。 枚举值:
|
type | String | EDS实例类型。 枚举值:
|
status | String | EDS实例状态。 枚举值:
|
initialization | Boolean | EDS实例是否已初始化。 |
charging_mode | String | 计费模式。 枚举值:
|
belong_type | String | EDS实例所属类型:OWNER/GUEST。 枚举值:
|
enterprise_name | String | 企业名称。 |
administrator_user_id | String | 管理员用户ID。 |
状态码: 400
参数 | 参数类型 | 描述 |
|---|---|---|
data | Object | 返回数据。 |
total | Long | 总数。 |
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
状态码: 500
参数 | 参数类型 | 描述 |
|---|---|---|
data | Object | 返回数据。 |
total | Long | 总数。 |
error_code | String | 错误码。 |
error_msg | String | 错误描述。 |
请求示例
查看实例化应用列表。
GET https://{endpoint}/v1/{project_id}/eds/instances/user-instances 响应示例
状态码: 200
OK
- 查询用户实例列表。
{ "data" : [ { "id" : "b40b0d94-3201-4687-93aa-************", "name" : "连接器A", "description" : "连接器A", "resource_spec_code" : "instance.basic", "type" : "OPEN", "status" : "NORMAL", "initialization" : true, "charging_mode" : "PERIOD", "belong_type" : "OWNER", "enterprise_name" : "XXX公司", "administrator_user_id" : "6c4027c7536040619226f2**********" }, { "id" : "c1bf9bd7-52fc-435b-ae55-************", "name" : "连接器B", "description" : "连接器B", "resource_spec_code" : "instance.basic", "type" : "OPEN", "status" : "NORMAL", "initialization" : true, "charging_mode" : "PERIOD", "belong_type" : "OWNER", "enterprise_name" : "XXX公司", "administrator_user_id" : "6c4027c7536040619226f2**********" } ], "total" : 2, "error_code" : null, "error_msg" : null }
状态码
状态码 | 描述 |
|---|---|
200 | OK |
400 | Bad Request |
500 | Internal Server Error |
错误码
请参见错误码。

