Nebula Block
  • Overview
  • Getting Started
    • Quickstart
    • Account Setup
    • Billing Information
    • Deploy Products
  • Core Services
    • Inference Models
      • Text Generation
      • Text Generation (Vision)
      • Image Generation
      • Embedding Generation
      • Model List
    • GPU Instances
      • Quickstart
    • Object Storage
      • Get Started
      • Tutorials
        • Linux/Mac
        • Windows
      • SDK
        • Golang
        • Python
        • Java
    • SSH Keys
      • Quickstart
  • API Reference
    • Platform API
      • Authentication
      • Instances
        • List Products
        • Create GPU Instance
        • List User Instances
        • List Deleted User Instances
        • User Instance Detail
        • Delete GPU Instance
        • Start GPU Instance
        • Stop GPU Instance
        • Reboot GPU Instance
      • SSH Keys
        • List SSH Keys
        • Rename SSH Key
        • Delete SSH Key
      • API Keys
        • List API Keys
        • Delete API Key
      • Billing
        • List Invoices
        • Download Invoice
        • Get Payment History
    • Inference API (OpenAI Compatible)
      • List Models
      • Generate Text
      • Generate Text (Vision)
      • Generate Images
      • Generate Embeddings
  • Team
  • Tier
  • Referral
  • Glossary
  • Contact Us
Powered by GitBook
On this page
  • HTTP Request
  • Query Parameters
  • Response Attributes
  • Example
  1. API Reference
  2. Platform API
  3. SSH Keys

List SSH Keys

PreviousSSH KeysNextRename SSH Key

Last updated 6 months ago

Retrieves a list of your SSH keys.

HTTP Request

GET {API_URL}/ssh-keys

Query Parameters

Parameters
Requirements
Type
Description

limit

Optional

int

The limit to the number of SSH keys returned. Defaults to 100

offset

Optional

int

The offset of the returned SSH key response. Defaults to 0

Response Attributes

data dict

Returns the data dictionary containing the total number of your SSH keys total_ssh_keys and the details of each SSH key as per your limit and offset in ssh_keys.

Each SSH key in ssh_keys has the following properties:

  • id: The ID of the SSH key. This is the ID field that is used for the endpoint.

  • key_name: The name of the SSH key.

  • key_data: The SSH key value.

  • create_time: The UTC time of when the SSH Key was created.

status string

Indicates the result of the request to list your SSH keys. success signifies success, while failed indicates an error.

message string

A description of the status of the request.

Example

Request

curl -X GET '{API_URL}/ssh-keys' \
-H 'Authorization: Bearer {TOKEN/KEY}'

Response

{
    "data": {
        "total_ssh_keys": 1,
        "ssh_keys": [
            {
                "id": 75,
                "key_name": "My Personal SSH Key 1",
                "key_data": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD5",
                "create_time": "EST 2024-10-23 10:24:21"
            },
            {
                "id": 76,
                "key_name": "My Personal SSH Key 2",
                "key_data": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD5",
                "create_time": "EST 2024-10-24 10:24:21"
            }
        ]
    },
    "message": "SSH keys retrieved successfully",
    "status": "success"
}
Delete SSH Key