Skip to content

user.public_key

Manage public keys

Create

Input parameters

ParameterTypeRequiredDetails
label
Label
String yes

Default: null

Validation rules
RuleDetails
Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

Length
  • Maximum length: 255 characters (inclusive).

Validation error message: length must be at most 255

key
Public key
Text yes

Default: null

Validation rules
RuleDetails
Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

Format

Must match this regular expression:

\A[^\n]+\z

null

Validation error message: must not contain line breaks

Length
  • Maximum length: 5000 characters (inclusive).

Validation error message: length must be at most 5000

auto_add
Auto add
Boolean no

Add this key automatically into newly created VPS

Default: false

Output parameters

ParameterTypeDescription
id
Id
Integer
label
Label
String
key
Public key
Text
auto_add
Auto add
Boolean Add this key automatically into newly created VPS
fingerprint
Fingerprint
String MD5 fingerprint
comment
Comment
String Optional comment
created_at
Created at
Datetime
updated_at
Updated at
Datetime

Delete

Input parameters

No parameters.

Output parameters

No parameters.

Index

Input parameters

ParameterTypeRequiredDetails
from_id
From ID
Integer no

List objects with IDs greater or lower than this value

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).

Validation error message: must be at least 0

limit
Limit
Integer no

Number of objects to retrieve

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).
  • Maximum: 1000 (inclusive).

Validation error message: must be between 0 and 1000

Output parameters

ParameterTypeDescription
id
Id
Integer
label
Label
String
key
Public key
Text
auto_add
Auto add
Boolean Add this key automatically into newly created VPS
fingerprint
Fingerprint
String MD5 fingerprint
comment
Comment
String Optional comment
created_at
Created at
Datetime
updated_at
Updated at
Datetime

Show

Input parameters

No parameters.

Output parameters

ParameterTypeDescription
id
Id
Integer
label
Label
String
key
Public key
Text
auto_add
Auto add
Boolean Add this key automatically into newly created VPS
fingerprint
Fingerprint
String MD5 fingerprint
comment
Comment
String Optional comment
created_at
Created at
Datetime
updated_at
Updated at
Datetime

Update

Input parameters

ParameterTypeRequiredDetails
label
Label
String no

Default: null

Validation rules
RuleDetails
Length
  • Maximum length: 255 characters (inclusive).

Validation error message: length must be at most 255

key
Public key
Text no

Default: null

Validation rules
RuleDetails
Format

Must match this regular expression:

\A[^\n]+\z

null

Validation error message: must not contain line breaks

Length
  • Maximum length: 5000 characters (inclusive).

Validation error message: length must be at most 5000

auto_add
Auto add
Boolean no

Add this key automatically into newly created VPS

Default: null

Output parameters

ParameterTypeDescription
id
Id
Integer
label
Label
String
key
Public key
Text
auto_add
Auto add
Boolean Add this key automatically into newly created VPS
fingerprint
Fingerprint
String MD5 fingerprint
comment
Comment
String Optional comment
created_at
Created at
Datetime
updated_at
Updated at
Datetime