创建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
该请求的唯一标识符。限制为36个ASCII字符。建议使用随机UUID。只有当提供了'request_id'时,此请求才是幂等的
Request Body required
Secret名称,此字段创建时用于指定,用于更新接口时时仅用作显示,不支持修改
ownership object
所有权关系
data object required
Secret数据
- 200
- default
OK
Schema
Secret名称,此字段创建时用于指定,用于更新接口时时仅用作显示,不支持修改
ownership object
所有权关系
data object required
Secret数据
{
"name": "string",
"uid": "string",
"id": "string",
"ownership": {
"user_id": "string",
"tenant_id": "string",
"user_name": "string",
"tenant_name": "string"
},
"data": {},
"create_time": "2024-12-05T02:41:59.489Z",
"update_time": "2024-12-05T02:41:59.489Z"
}
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"
}
]
}