GET /api/users/:user_id/ssh_keys
Listar todas as chaves SSH para um usuário

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
requerido

ID do usuário

Validations:

  • Must be a String

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Classificar campo e ordem, ex.: ‘id DESC’

Validations:

  • Must be a String

page
opcional

Número de página, iniciando em 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • Must be a number.

Pesquisar campos

Nome do campo Tipo Valores possíveis
name
user_id

GET /api/users/:user_id/ssh_keys/:id
Exibir uma chave SSH de um usuário

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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
requerido

ID do usuário

Validations:

  • Must be a String


POST /api/users/:user_id/ssh_keys
Adicionar uma chave SSH para um usuário

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
requerido

ID do usuário

Validations:

  • Must be a String

ssh_key
requerido

Validations:

  • Must be a Hash

ssh_key[name]
requerido

Validations:

  • Must be a String

ssh_key[key]
requerido

Publicar chave SSH

Validations:

  • Must be a String


DELETE /api/users/:user_id/ssh_keys/:id
Excluir uma chave SSH para um usuário

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

user_id
requerido

ID do usuário

Validations:

  • Must be a String