Examples

GET /api/users/980190963/ssh_keys
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2018-07-24 12:58:20 UTC",
      "updated_at": "2018-07-24 12:58:20 UTC",
      "id": 1,
      "name": "user1@example.com",
      "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDsVcKEFO1HFq7mN0dwigsR4W9ey72/NWkZKVvqeO72qBXr1l2zFhK8lRL0KzksLkysBlYVD6j4s03supjjlNg9rrgYICkXREo2YB/yGfGV6OT8/x2wXmLWUVRiLyC5zUNTYP5mfL87Np3W2bWVqbv6pciI0L9k40smlwRjzrMFcMaiul368uWZEUuQjzypZ9xLewTVjAvm/eJ4P8M6Yvp6Yf30kyIB+icrea6zOcDpxCC95jaXQzgq1UXKnxbxN6yg4x9y+O/SgUq7yAorPRJDZbuCCoLkP9I3bKqucPTupAFWaI01zvL8pBxeBMctfZU2u2hD1UvtlAZz3wigpfup foreman1@example.com",
      "length": 2048,
      "fingerprint": "ca:fb:4b:aa:16:b6:62:92:d2:ee:ff:11:b2:0d:3a:fb"
    }
  ]
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

user_id
required

ID of the user

Validations:

  • Must be a String

search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

paginate results

Validations:

  • Must be a String

per_page
optional

number of entries per request

Validations:

  • Must be a String

Search fields

Field name Type Possible values
name string
user_id integer