GET /api/users/:user_id/ssh_keys
List all SSH keys for a user

Parametry

Nazwa parametru Opis
user_id
wymagany

ID of the user

Validations:

  • Must be a String

search
opcjonalny

rezultat filtrowania

Validations:

  • Must be a String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be a String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be a String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be a String


GET /api/users/:user_id/ssh_keys/:id
Show an SSH key from a user

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

user_id
wymagany

ID of the user

Validations:

  • Must be a String


POST /api/users/:user_id/ssh_keys
Add an SSH key for a user

Parametry

Nazwa parametru Opis
user_id
wymagany

ID of the user

Validations:

  • Must be a String

ssh_key
wymagany

Validations:

  • Must be a Hash

ssh_key[name]
wymagany

Validations:

  • Must be a String

ssh_key[key]
wymagany

Public SSH key

Validations:

  • Must be a String


DELETE /api/users/:user_id/ssh_keys/:id
Delete an SSH key for a user

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • Must be a String

user_id
wymagany

ID of the user

Validations:

  • Must be a String