Lambda Labs
Mock the Lambda Cloud API to launch, list, restart, and terminate simulated GPU instances and manage SSH keys and file systems without spinning up real hardware.
[01]
About
Emulate the Lambda Cloud control plane: list available GPU instance types and regions, launch and terminate instances, restart them, list running instances and instance detail, and CRUD SSH keys and file systems. Useful for prototyping GPU-orchestration tooling against a stable Lambda-shaped API.
Endpoints
10 across 5 resource groups
Methods
GET 5 · POST 4 · DEL 1 none deprecated
OpenAPI
3.0.0 spec version 1.5.3
Source spec
26 KB · YAML
[02]
Endpoints
| GET |
/instance-types
|
Retrieve list of offered instance types Returns a detailed list of the instance types offered by Lambda GPU Cloud. The details include the regions, if any, in which each instance type is currently available. Mocked via Mockzilla.
|
| GET |
/instances
|
List running instances Retrieves a detailed list of running instances.
|
| GET |
/instances/{id}
|
List details of a specific instance Retrieves details of a specific instance, including whether or not the instance is running.
|
| POST |
/instance-operations/launch
|
Launch instances Launches one or more instances of a given instance type.
|
| POST |
/instance-operations/terminate
|
Terminate an instance Terminates a given instance.
|
| POST |
/instance-operations/restart
|
Restart instances Restarts the given instances. Available as a Mockzilla mock endpoint.
|
| GET |
/ssh-keys
|
List SSH keys Retrieve the list of SSH keys
|
| POST |
/ssh-keys
|
Add SSH key Add an SSH key To use an existing key pair, enter the public key for the public_key property of the request body. To generate a new key pair, omit the public_key property from the request body. Save the private_key from the response somewhere secure. For example, with curl: curl https://cloud.lambdalabs.com/api/v1/ssh-keys \ --fail \ -u ${LAMBDA_API_KEY}: \ -X POST \ -d '{"name": "new key"}' \ | jq -r '.data.private_key' > key.pem chmod 400 key.pem Then, after you launch an instance with new key attached to it: ssh -i key.pem
|
| DEL |
/ssh-keys/{id}
|
Delete SSH key Delete an SSH key.
|
| GET |
/file-systems
|
List file systems Retrieve the list of file systems
|