Files
cloudpods/docs/schemas/keypair.yaml
2019-07-24 16:10:06 +08:00

91 lines
2.7 KiB
YAML

KeypairCreate:
type: object
properties:
name:
type: string
example: test-keypair
description: 秘钥名称
description:
type: string
example: keypair-description
description: 秘钥描述
scheme:
type: string
example: RSA
enum: [RSA, DSA]
default: RSA
description: 秘钥scheme
public_key:
type: string
example: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXxGBcdTPHr2XB2Sr1fknLkRaU3329ltWPjp/vA94QjIGVP98ct0dj/Yu0y2w4t0yqcLSVcZyn0Jo07ErNy9RnvL2F1ecOcg7OgRL+WY3zcOm90RILEQ8/wzUpZmAmTbFSZU7MzPxfdIRyq9UW/qUd/ebX9FD3bq+9HxlJQ9hHAQXyyOJB+Ex4akxOR09ZaVmmIlipa4CHZDfAF4BnXuL+XWAaRnF/xPmUjSTTbsXGV/iKMheexgdJ9zrDycAzA2Qg938fHXpcqHWxdBzcIQ6BEbFNz1RGBAyqPT8l3PNhf+NHSnDufob7y5+bp0z7hvtucujqxOViFhMzAGmtGMZz test@all-in-one
description: 秘钥公钥
KeypairResponse:
type: object
properties:
keypair:
type: object
$ref: '#/Keypair'
Keypair:
allOf:
- $ref: "./common.yaml#/StandaloneResponse"
- type: object
properties:
scheme:
type: string
example: RSA
enum: [RSA, DSA]
description: 秘钥scheme
publick_key:
type: string
example: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXxGBcdTPHr2XB2Sr1fknLkRaU3329ltWPjp/vA94QjIGVP98ct0dj/Yu0y2w4t0yqcLSVcZyn0Jo07ErNy9RnvL2F1ecOcg7OgRL+WY3zcOm90RILEQ8/wzUpZmAmTbFSZU7MzPxfdIRyq9UW/qUd/ebX9FD3bq+9HxlJQ9hHAQXyyOJB+Ex4akxOR09ZaVmmIlipa4CHZDfAF4BnXuL+XWAaRnF/xPmUjSTTbsXGV/iKMheexgdJ9zrDycAzA2Qg938fHXpcqHWxdBzcIQ6BEbFNz1RGBAyqPT8l3PNhf+NHSnDufob7y5+bp0z7hvtucujqxOViFhMzAGmtGMZz test@all-in-one
description: 公钥
fingerprint:
type: string
example: f6:54:e2:fe:5e:9d:36:38:bf:30:8a:0f:18:4a:49:81
description: 私钥
private_key_len:
type: integer
example: 0
description: 私钥长度
linked_guest_count:
type: integer
example: 1
description: 关联实例数量
owner_id:
type: string
example: e80d6618-d6a8-4e1c-8646-33949e40bade
description: 所属用户ID
owner_name:
type: string
example: test-user
description: 所属用户名称
KeypairListResponse:
type: object
properties:
limit:
type: integer
example: 20
keypairs:
type: array
items:
$ref: '#/Keypair'
total:
type: integer
example: 124
KeypairUpdate:
type: object
properties:
name:
type: string
example: test-keypair
description: 秘钥名称
description:
type: string
example: keypair-description
description: 秘钥描述