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

Parametri

Nome parametro Descrizione
user_id
richiesto

ID of the user

Validations:

  • Must be a String

search
opzionale

filtra i risultati

Validations:

  • Must be a String

order
opzionale

ordina risultati

Validations:

  • Must be a String

page
opzionale

paginazione risultati

Validations:

  • Must be a String

per_page
opzionale

numero di voci per richiesta

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
id
richiesto

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
richiesto

ID of the user

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
user_id
richiesto

ID of the user

Validations:

  • Must be a String

ssh_key
richiesto

Validations:

  • Must be a Hash

ssh_key[name]
richiesto

Validations:

  • Must be a String

ssh_key[key]
richiesto

Public SSH key

Validations:

  • Must be a String


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

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

  • Must be a String

user_id
richiesto

ID of the user

Validations:

  • Must be a String