Files
cloudpods/docs/schemas/credential.yaml
2019-06-29 15:22:39 +08:00

51 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
CredentialListResponse:
type: object
properties:
limit:
type: integer
example: 20
offset:
type: integer
example: 0
total:
type: integer
description: 总量
credentials:
type: array
items:
$ref: "#/Credential"
CredentialGetResponse:
type: object
properties:
credential:
type: object
$ref: "#/Credential"
Credential:
type: object
description: 用户Credentials
properties:
id:
type: string
description: 用户CredentialID
readOnly: true
name:
type: string
description: 用户Credential名称域内唯一
type:
type: string
description: 用户Credential类型totp或者recovery_secret
can_delete:
type: boolean
description: 是否可以删除
blob:
type: string
description: 用户Credential内容json字符串
user_id:
type: string
description: Credential的所属用户
project_id:
type: string
description: Credential的所属项目