air_sdk.endpoints.ssh_keys
air_sdk.endpoints.ssh_keys
Stub file for ssh_keys endpoint type hints.
Classes
Module Contents
Bases: air_sdk.air_model.AirModel
SSH Key model representing a user’s SSH public key.
The string representation shows: id, name
Unique identifier for the SSH key
Timestamp when the SSH key was created
Human-readable name for the SSH key
SSH key fingerprint (automatically generated)
Delete this SSH key.
After deletion, the instance’s id will be set to None.
Example:
Bases: air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.ssh_keys.SSHKey]
API client for SSH key endpoints.
List all SSH keys with optional filtering.
Parameters:
limit– Maximum number of results to return per pageoffset– The initial index from which to return the resultsordering– Order objects by field. Prefix with ”-” for desc ordersearch– Search by name
Returns:
Iterator of SSHKey instances
Example:
Create a new SSH key.
Parameters:
name– Human-readable name for the SSH keypublic_key– The SSH public key content (e.g., “ssh-rsa AAAA…”)
Returns:
The created SSHKey instance
Example:
Get a specific SSH key by ID.
Parameters:
pk– The SSH key ID (string or UUID)
Returns:
The SSHKey instance
Example:
Delete an SSH key by ID.
Parameters:
pk– The SSH key ID (string or UUID)
Returns:
None
Example: