import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const deployment = await client.deployments.retrieve('id');
console.log(deployment.id);{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"status": "queued",
"region": "aws.us-east-1a",
"created_at": "2023-11-07T05:31:56Z",
"status_reason": "Deployment in progress",
"entrypoint_rel_path": "src/app.py",
"env_vars": {},
"updated_at": "2023-11-07T05:31:56Z"
}Get information about a deployment’s status.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const deployment = await client.deployments.retrieve('id');
console.log(deployment.id);{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"status": "queued",
"region": "aws.us-east-1a",
"created_at": "2023-11-07T05:31:56Z",
"status_reason": "Deployment in progress",
"entrypoint_rel_path": "src/app.py",
"env_vars": {},
"updated_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Deployment ID
Deployment retrieved successfully
Deployment record information.
Unique identifier for the deployment
"rr33xuugxj9h0bkf1rdt2bet"
Current status of the deployment
queued, in_progress, running, failed, stopped "queued"
Deployment region code
"aws.us-east-1a""aws.us-east-1a"
Timestamp when the deployment was created
Status reason
"Deployment in progress"
Relative path to the application entrypoint
"src/app.py"
Environment variables configured for this deployment
Show child attributes
Timestamp when the deployment was last updated