SSH Keys
get/cloud/v2/keypairs

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cloud/v2/keypairs
  • Auth
    HTTP apikey

Query parameters

limitinteger

Optional. Limit the number of returned items

Example:1000
offsetinteger

Optional. Offset value is used to exclude the first set of records from the result

project_idinteger nullable

Project ID. It's required with rights lower than a cloud administrator.

Example:100
user_idinteger nullable

User ID. To use it, you need set project id or use cloud administrator rights.

Example:5

Response

OK

countinteger required

Number of objects

Example response

{
  "count": 1,
  "results": [
    {
      "fingerprint": "86:75:ce:e7:e9:1e:f0:79:ec:6f:d8:92:9b:43:fc:4d",
      "private_key": "<private_key>",
      "project_id": 1,
      "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFHrnwGVBZs6q6vmTBzQFfzdRLQW8N6Rd0ogGe3h8tm83ZJLTTsF+1H4JcOvwI5ETkHMaFIWd2U15nHU5M7plE6UPRKfzy4rq6yI6cE4tojd3A9attMpbEEX7EbGKrbrb4AsjzxHKAVaREAb31ZplJkUlsiees25hTQXBcWQnOESlc9RCxZ/QQgNUUgqm7QGg7CNkL8Mpq9V4YaOhcFGWj0jXP1CL3g6Xe3xJo1CmUbkIOGUyAmrSfLEiy2O91iOUhbmYQyXksznNrT9O6uLkijf6syLZOdyAuUd/Z86eYXej4/YsvIA5eIFU4B6y9zOXEO2A81txPYMRAytYt7+e7 alice@alice",
      "shared_in_project": true,
      "sshkey_id": "36a7a97a-0672-4911-8f2b-92cd4e5b0d91",
      "sshkey_name": "alice"
    }
  ]
}

Changes

    • info

      added the new optional query request parameter limit

    • info

      added the new optional query request parameter offset

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status