import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: 'My Bearer Token',
});
// Automatically fetches more pages as needed.
for await (const blueprintView of client.blueprints.list()) {
console.log(blueprintView.id);
}
{
"blueprints": [
{
"id": "<string>",
"name": "<string>",
"status": "provisioning",
"state": "created",
"create_time_ms": 123,
"parameters": {
"name": "<string>",
"dockerfile": "<string>",
"system_setup_commands": [
"<string>"
],
"code_mounts": [
{
"repo_name": "<string>",
"repo_owner": "<string>",
"install_command": "<string>",
"token": "<string>"
}
],
"launch_parameters": {
"launch_commands": [
"<string>"
],
"resource_size_request": "X_SMALL",
"keep_alive_time_seconds": 123,
"available_ports": [
123
],
"after_idle": {
"idle_time_seconds": 123,
"on_idle": "shutdown"
},
"custom_cpu_cores": 123,
"custom_gb_memory": 123,
"custom_disk_size": 123,
"architecture": "x86_64",
"user_parameters": {
"username": "<string>",
"uid": 123
}
},
"file_mounts": {},
"base_blueprint_id": "<string>"
},
"failure_reason": "out_of_memory",
"base_blueprint_id": "<string>"
}
],
"has_more": true,
"total_count": 123,
"remaining_count": 123
}
List all Blueprints or filter by name.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: 'My Bearer Token',
});
// Automatically fetches more pages as needed.
for await (const blueprintView of client.blueprints.list()) {
console.log(blueprintView.id);
}
{
"blueprints": [
{
"id": "<string>",
"name": "<string>",
"status": "provisioning",
"state": "created",
"create_time_ms": 123,
"parameters": {
"name": "<string>",
"dockerfile": "<string>",
"system_setup_commands": [
"<string>"
],
"code_mounts": [
{
"repo_name": "<string>",
"repo_owner": "<string>",
"install_command": "<string>",
"token": "<string>"
}
],
"launch_parameters": {
"launch_commands": [
"<string>"
],
"resource_size_request": "X_SMALL",
"keep_alive_time_seconds": 123,
"available_ports": [
123
],
"after_idle": {
"idle_time_seconds": 123,
"on_idle": "shutdown"
},
"custom_cpu_cores": 123,
"custom_gb_memory": 123,
"custom_disk_size": 123,
"architecture": "x86_64",
"user_parameters": {
"username": "<string>",
"uid": 123
}
},
"file_mounts": {},
"base_blueprint_id": "<string>"
},
"failure_reason": "out_of_memory",
"base_blueprint_id": "<string>"
}
],
"has_more": true,
"total_count": 123,
"remaining_count": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Filter by name
The limit of items to return. Default is 20.
Load the next page of data starting after the item with the given ID.
OK
The response is of type object
.
Was this page helpful?