Add SSH Key
POST
https://api.vpsbg.eu/v1/ssh-keysYou can save a new SSH key and use it to deploy future servers.
Request
Body Params application/json
name
string
required
>= 3 characters<= 100 characters
key
string
required
Example:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJXgSGIiC3OMJtZrGBLY4rpfPjwWZiJtcG4JLUOWCt5h6cSQ4ESRFzCzK4uz6XM1ZjizGj8r2T5IA+9nAdXZAmD8p9mZ8eYFz8QY/URBsn2ohX4NVR9ScGbr3Z3q6Vq6aK6YbW+J++CmgM5sV6BZhMkvr5V55MP0KGS3hCV02OqQ4+q9jc6RXHZLJ2eSH7KrMz7ZTsV4yC5lfCwCfDdzeKU9ZjTjsGHU4N5nWnApJb7s1L2GdJ1F6QQNc6vN1z0SlZL9QqjMG3AicSiqJlRzAFK2u0xszj6wvgPhTZ/xsmdgH+b9y2r0bl6pLzImh0I6FCRRIm2JdFmlDnqQb user@example.com
Match pattern:
/^(ssh-(rsa|ed25519)) [A-Za-z0-9+\/=]+(\s.+)?$/
Example
{
"name": "string",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJXgSGIiC3OMJtZrGBLY4rpfPjwWZiJtcG4JLUOWCt5h6cSQ4ESRFzCzK4uz6XM1ZjizGj8r2T5IA+9nAdXZAmD8p9mZ8eYFz8QY/URBsn2ohX4NVR9ScGbr3Z3q6Vq6aK6YbW+J++CmgM5sV6BZhMkvr5V55MP0KGS3hCV02OqQ4+q9jc6RXHZLJ2eSH7KrMz7ZTsV4yC5lfCwCfDdzeKU9ZjTjsGHU4N5nWnApJb7s1L2GdJ1F6QQNc6vN1z0SlZL9QqjMG3AicSiqJlRzAFK2u0xszj6wvgPhTZ/xsmdgH+b9y2r0bl6pLzImh0I6FCRRIm2JdFmlDnqQb user@example.com"
}
Request samples
Responses
The SSH Key has been created successfully.(201)
The SSH Key has been created successfully.
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
id
integer
optional
name
string
optional
key
string
optional
Example
Not configured
Last modified: 3 months ago