查询Secret列表
查询Secret列表
Path Parameters
Possible values: non-empty
and <= 63 characters
订阅
Possible values: non-empty
and <= 63 characters
资源组
Possible values: non-empty
and <= 63 characters
可用区
Possible values: non-empty
and <= 63 characters
工作空间资源名称
Query Parameters
可选,过滤条件,仅支持name, user_name, user_id字段的过滤条件,格式请参考:https://google.aip.dev/160
可选,单页结果数,默认10,最大500,需为非负整数,如果不填或填0,则使用默认值。超过最大值则使用最大值,负值将返回错误
可选,指定要使用的页码,默认1.如果未指定则使用默认值,非正值返回错误
- 200
- default
OK
Schema
- Array [
- ]
secrets object[]
Secret列表
Secret名称,此字段创建时用于指定,用于更新接口时时仅用作显示,不支持修改
ownership object
所有权关系
data object required
Secret数据
符合当前查询条件的后台数据总数(不是当前返回数据总数)
此token允许您获取列表请求的下一页结果。如果结果数量大于page_size,请在下一个list请求中使用nextPageToken作为查询参数page_token的值,后续的列表请求将有各自的next_page_token,以继续分页浏览结果
{
"secrets": [
{
"name": "string",
"uid": "string",
"id": "string",
"ownership": {
"user_id": "string",
"tenant_id": "string",
"user_name": "string",
"tenant_name": "string"
},
"data": {},
"create_time": "2024-11-04T06:28:49.050Z",
"update_time": "2024-11-04T06:28:49.050Z"
}
],
"total_size": 0,
"next_page_token": "string"
}
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"
}
]
}