查询指定应用的实例列表
查询指定应用的实例列表
Path Parameters
订阅
资源组
可用区
工作空间资源名称
应用名称
Query Parameters
可选,过滤条件,仅支持实例状态的过滤条件,格式请参考:https://google.aip.dev/160
可选,单页结果数,默认10,最大500,需为非负整数,如果不填或填0,则使用默认值。超过最大值则使用最大值,负值将返回错误
可选,查询第几页,需为正整数字符串,缺省值为"1"
- 200
- default
OK
Schema
- Array [
- Array [
- ]
- ]
instances object[]
实例列表
实例名称
resource_spec object
资源规格
资源规格名称. 根据资源规格列表获取. 例: N2lS.Ie.I60.2
limits object
资源列表. key值: CPU(cpu)、内存(memory)、设备数量(device)
requests object
资源列表. key值: CPU(cpu)、内存(memory)、设备数量(device)
container_infos object[]
本实例中子容器信息
容器名称
Possible values: [INIT
, MAIN
]
容器类型
Possible values: [RUNNING
, WAITING
, TERMINATED
, UNKNOWN
]
容器状态
镜像真实路径
(暂不支持)下一页的token,用户需将该值作为下一次请求的page_token透传回来
符合当前查询条件的后台数据总数(不是当前返回数据总数)
{
"instances": [
{
"uid": "string",
"name": "string",
"instance_ip": "string",
"host_ip": "string",
"state": "UNKNOWN_CI_STATE",
"resource_spec": {
"name": "string",
"description": "string",
"limits": {},
"requests": {}
},
"life_span": 0,
"transition_error": "string",
"state_reason": "string",
"container_infos": [
{
"container_name": "string",
"container_type": "INIT",
"container_state": "RUNNING",
"image_path": "string"
}
],
"app_name": "string"
}
],
"next_page_token": "string",
"total_size": 0
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}