GET
/
deployments
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

// Automatically fetches more pages as needed.
for await (const deploymentListResponse of client.deployments.list()) {
  console.log(deploymentListResponse.id);
}
[
  {
    "id": "rr33xuugxj9h0bkf1rdt2bet",
    "status": "queued",
    "status_reason": "Deployment in progress",
    "region": "aws.us-east-1a",
    "entrypoint_rel_path": "src/app.py",
    "env_vars": {},
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

app_name
string

Filter results by application name.

limit
integer
default:20

Limit the number of deployments to return.

Required range: 1 <= x <= 100
offset
integer
default:0

Offset the number of deployments to return.

Required range: x >= 0

Response

List of deployments.

The response is of type object[].