Zum Hauptinhalt springen

Get all SSH users for a Project

GET/projects/{projectId}/ssh-users/
v2
GET
ssh-user-list-ssh-users

Request

  • projectIdstring
    required

    ID of the Project to retrieve SSHUsers for.

Responses

Response-Header

  • X-Pagination-Limitnumber
  • X-Pagination-Skipnumber
  • X-Pagination-TotalCountnumber
application/json

OK

  • Array[

    A representation of an SSHUser.

  • *object

    A representation of an SSHUser.

    • activeboolean
    • authUpdatedAtstring (date-time)
      required
    • createdAtstring (date-time)
      required
    • descriptionstring
      required
    • expiresAtstring (date-time)
    • hasPasswordboolean
      required
    • idstring
      required
    • projectIdstring
      required
    • publicKeysarray of object
      • Array[

        A representation of an ssh-public-key.

      • *object

        A representation of an ssh-public-key.

        • commentstring
          required
        • keystring
          required
      • ]
  • updatedAtstring (date-time)
  • userNamestring
    required
]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/projects/string/ssh-users?limit=50