获取服务列表
获取服务列表
Query Parameters
page_size int32
Possible values: < 200
分页大小
page_token string
分页码
filter string
过滤器
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
services object[]
服务
name string
名称
spec object required
服务规格
resource_id string required
资源id
subscription string required
订阅
resource_group string required
资源组
zone string required
可用区
status object
服务状态
health object
健康状态
instances object[]
实例简报
health object
健康状态
{
"services": [
{
"name": "string",
"spec": {
"resource_id": "string",
"subscription": "string",
"resource_group": "string",
"zone": "string"
},
"status": {
"uri": "string",
"health": {
"message": "string",
"status": "HEALTH_STATE_CODE_UNKNOWN_UNSPECIFIED"
},
"instances": [
{
"name": "string",
"health": {
"message": "string",
"status": "HEALTH_STATE_CODE_UNKNOWN_UNSPECIFIED"
},
"running_replicas": 0,
"current_replicas": 0
}
],
"creator_name": "string"
},
"create_time": "2024-11-04T06:28:48.098Z"
}
],
"next_page_token": "string"
}
Default error response
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
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.
@type string
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...