Skip to main content

Crusoe Cloud API Gateway (v1)

Download OpenAPI specification:Download

The API Gateway exposes all publicly available API endpoints for Crusoe Cloud products.

VMs

Creates multiple VMs in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

A request to create one or more VMs from an instance template, given by ID or inline.

count
required
integer <int64>

Number of VMs to create. If multiple locations are specified, this is the number of VMs created in each location.

crusoe_watch_agent_install_mode
string
Enum: "docker" "native"

Installation mode for the Crusoe Watch Agent: docker or native. Defaults to docker.

install_crusoe_watch_agent
boolean or null

Whether to install the Crusoe Watch Agent on the VMs. Defaults to true.

instance_group_id
string

ID of the instance group the VMs will be created in.

object (InstanceTemplatePostRequestV1)

InstanceTemplatePostRequestV1 defines the specifications of VMs to be created during bulk VM creation.

instance_template_id
string

ID of the instance template to use for creating the VMs.

Array of objects (BulkCreateLocationInfo)

Locations to create the VMs in. This overrides any location specified in the instance template.

name_prefix
required
string

Name prefix for the VMs to be created, used to derive each VM's name (e.g. "my-vm" produces "my-vm-1", "my-vm-2", and so on).

nvlink_domain_id
string

ID of the NVLink domain to create the VMs in.

object (ReservationSpecification)

How new VMs use reservations: set id to use a specific one, or set selection_strategy.

Responses

Request samples

Content type
application/json
{
  • "count": 6,
  • "crusoe_watch_agent_install_mode": "docker",
  • "install_crusoe_watch_agent": true,
  • "instance_group_id": "cda562c4-6162-4565-95f3-ce06a8220c07",
  • "instance_template": {
    },
  • "instance_template_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "locations": [
    ],
  • "name_prefix": "my-vm",
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "reservation_specification": {
    }
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Lists all VMs in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
ids
string
Example: ids=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Filters results to VMs with these IDs.

names
string
Example: names=my-first-vm

Filters results to VMs with these names.

types
string
Example: types=a40.2x,a100.8x

Filters results to VMs of these types.

locations
string
Example: locations=us-east1,us-northcentral1

Filters results to VMs in these locations.

states
string
Example: states=STATE_RUNNING

Filters results to VMs in these states.

nvlink_domain_ids
string
Example: nvlink_domain_ids=550e8400-e29b-41d4-a716-446655440000

Filters results to VMs in these NVLink domains.

limit
string
Example: limit=20

Maximum number of VMs to return per page.

sort
string
Example: sort=name

Field to sort the results by.

next_token
string
Example: next_token=bXktZmlyc3Qtdm0

Token identifying the next page of results to return.

prev_token
string
Example: prev_token=bXktZmlyc3Qtdm0

Token identifying the previous page of results to return.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_page_token": "bXktbGFzdC12bQ",
  • "prev_page_token": "bXktZmlyc3Qtdm0"
}

Creates a VM in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

InstancesPostRequestV1 is the request type for POST requests to the vms.instances endpoint.

commitment_period
integer <int64>

commitment is no longer supported

crusoe_watch_agent_install_mode
string
Enum: "docker" "native"

Installation mode for the Crusoe Watch Agent: docker or native. Defaults to docker.

custom_image
string

ID of a custom image to use for the new VM. Either image or custom_image should be supplied, not both.

Array of objects (DiskAttachment)

Disks to attach to the new VM.

Array of objects (PartialHostChannelAdapter)

Host channel adapters to attach to the new VM.

image
string

Name of the OS image to use for the new VM. Either image or custom_image should be supplied, not both.

install_crusoe_watch_agent
boolean or null

Whether to install the Crusoe Watch Agent on the VM. Defaults to true.

location
required
string

Location to create the VM in.

maintenance_policy
string

Host maintenance policy to apply to the new VM: manual, stop-vm, or unspecified.

name
required
string

Name for the new VM.

Array of objects (NetworkInterface)

Network interfaces to attach to the new VM.

nvlink_domain_id
string

ID of the NVLink domain to create the VM in.

object (ReservationSpecification)

How new VMs use reservations: set id to use a specific one, or set selection_strategy.

shutdown_script
string

Script to run when the VM shuts down.

ssh_public_key
required
string

SSH public key to grant access to the new VM.

startup_script
string

Script to run when the VM starts.

type
required
string

Product name of the VM type to create.

object (VirtualizationFeatures)

Virtualization features of a VM, such as nested virtualization.

Responses

Request samples

Content type
application/json
{
  • "commitment_period": 0,
  • "crusoe_watch_agent_install_mode": "docker",
  • "custom_image": "my-custom-image:latest",
  • "disks": [
    ],
  • "host_channel_adapters": [
    ],
  • "image": "ubuntu:20.04",
  • "install_crusoe_watch_agent": true,
  • "location": "us-northcentral1-a",
  • "maintenance_policy": "manual,stop-vm,unspecified",
  • "name": "my-first-vm",
  • "network_interfaces": [
    ],
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "reservation_specification": {
    },
  • "shutdown_script": "#!/bin/bash\\necho 'goodbye'",
  • "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8Rtxpucl6LDZLOghEYoj13lxKQnGtcsM3Iu68lh+4YgZe7CbI6cc/TxPbeAX2HJTqDh0J7+GAlLBHK9tsepC0QlhIDiazJptOPDZ3cesCBXdxSnzEbhDaqgYOfl393cp1fCeOKRIDWEP3H9CM25dCbWF66sTDziLsojJ9dMnxhgKm9/JkZc5gYncLT/2Ey+VWfV9Fs65mGUrBbQOn3c8S/nEk6WRcYn4PFOnIp0Mz+Chb50iCJrW677pllLnkTGSU+4c0H9J5z4HDG0I+91RoiQ0QsayFTYO1JtSn+THLuq98V+D",
  • "startup_script": "#!/bin/bash\\necho 'hello'",
  • "type": "a100.2x",
  • "virtualization_features": {
    }
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a VM from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VM.

vm_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VM.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single VM in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VM.

vm_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VM.

Responses

Response samples

Content type
application/json
{
  • "billing_type": "on-demand",
  • "commitment_end": "2021-12-03T19:58:34Z",
  • "commitment_period": 0,
  • "created_at": "2021-12-03T19:58:34Z",
  • "disks": [
    ],
  • "host_channel_adapters": [
    ],
  • "id": "ca39e669-47ee-456b-968d-303234fbf99f",
  • "instance_group_id": "707749bd-ecad-4de8-aa00-1ae2fdb99e19",
  • "instance_template_id": "75c6712a-8da8-463c-a72d-fc65cf922959",
  • "location": "us-centralnorth1-a",
  • "maintenance_policy": "manual",
  • "name": "my-first-vm",
  • "network_interfaces": [
    ],
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "pod_id": "29d20dc4-90ad-4365-ab05-83f5f5e52d94",
  • "project_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "reservation_id": "804bf3a2-81f2-4d78-9a9e-dc6a55ed33d8",
  • "state": "STATE_RUNNING",
  • "type": "a100.2x",
  • "unit_id": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
  • "updated_at": "2023-08-14T09:00:35Z",
  • "virtualization_features": {
    },
  • "waypoint_ids": [
    ]
}

Updates a VM in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VM.

vm_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VM.

Request Body schema: application/json
required

InstancesPatchRequestV1 is the request type for PATCH requests to the vms.instances endpoint.

action
required
string
Enum: "START" "STOP" "RESET" "RESERVE" "UNRESERVE" "UPDATE"

Action to perform on the VM: START, STOP, RESET, RESERVE, UNRESERVE, or UPDATE. RESERVE and UNRESERVE operations are done synchronously, and so will have succeeded with a 200 response.

commitment_period
integer <int64>

CommitmentPeriod is deprecated, please use reservationID instead

Array of objects (PartialHostChannelAdapter)

New set of host channel adapters for the VM.

maintenance_policy
string

New host maintenance policy for the VM: manual, stop-vm, or unspecified.

Array of objects (NetworkInterface)

New set of network interfaces for the VM.

reservation_id
string

ID of the reservation to use for the VM.

type
string

New VM type to change the VM to.

Responses

Request samples

Content type
application/json
{
  • "action": "START",
  • "commitment_period": 0,
  • "host_channel_adapters": [
    ],
  • "maintenance_policy": "manual,stop-vm,unspecified",
  • "network_interfaces": [
    ],
  • "reservation_id": "804bf3a2-81f2-4d78-9a9e-dc6a55ed33d8",
  • "type": "a100.2x"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Attaches disks to a VM in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VM.

vm_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VM.

Request Body schema: application/json
required

InstancesAttachDiskPostRequestV1 is the request type for POST requests to the vms.instances.attach-disk endpoint.

required
Array of objects (DiskAttachment)

Disks to attach to the VM.

Array
attachment_type
required
string
Enum: "os" "data"

Role the disk plays for the VM: os or data.

disk_id
required
string

ID of the disk to attach.

mode
required
string
Enum: "read-only" "read-write"

Access mode to attach the disk with: read-only or read-write.

Responses

Request samples

Content type
application/json
{
  • "attach_disks": [
    ]
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Detaches disks from a VM in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VM.

vm_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VM.

Request Body schema: application/json
required

InstancesDetachDiskPostRequest is the request type for POST requests to the vms.instances.detach-disk endpoint.

detach_disks
required
Array of strings

Identifiers of the disks to detach from the VM.

Responses

Request samples

Content type
application/json
{
  • "detach_disks": [
    ]
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Lists all available VM types and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

VM Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the instances resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

lower_time_bound
string
Example: lower_time_bound=2021-12-03T19:58:34Z

Filters results to operations that are in progress or that completed after this time, in RFC 3339 format.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get the status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the instances resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Images

Lists all images and returns their details.

query Parameters
product_group
string
Example: product_group=a100

Optional filter to return only images compatible with the specified product group (e.g. "a100", "h100").

product_line
string
Example: product_line=h100-80gb-sxm-ib

Optional filter to return only images compatible with the specified product line — an instance type without its size suffix (e.g. "h100-80gb-sxm-ib" for h100-80gb-sxm-ib.8x instances). Mutually exclusive with product_group.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Returns details for a single image.

path Parameters
image_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the image.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2023-06-29T20:03:26Z",
  • "description": "base Ubuntu 20.04 image",
  • "id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "locations": [
    ],
  • "name": "ubuntu",
  • "supported_product_lines": [
    ],
  • "tags": [
    ]
}

CustomImages

Lists all custom images in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a custom image in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the custom image.

Request Body schema: application/json
required

CustomImagePostRequest is the request type for POST requests to the /custom-images endpoint.

DiskID
required
string

ID of the disk to create the custom image from.

description
string

Description for the new custom image.

name
required
string

Name for the new custom image.

tags
Array of strings

Tags to associate with the new custom image.

Responses

Request samples

Content type
application/json
{
  • "DiskID": "182d01c7-d3fe-424b-af13-8775aeead194",
  • "description": "Ubuntu is the modern, open source operating system on Linux for ...",
  • "name": "ubuntu",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a custom image from the project and returns the async operation.

path Parameters
image_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the custom image.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the custom image.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single custom image in the project.

path Parameters
image_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the image.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2023-06-29T20:03:26Z",
  • "description": "base Ubuntu 20.04 image",
  • "id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "locations": [
    ],
  • "name": "ubuntu",
  • "supported_product_lines": [
    ],
  • "tags": [
    ]
}

Updates a custom image in the project and returns the async operation.

path Parameters
image_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the custom image.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the custom image.

Request Body schema: application/json
required

CustomImagePatchRequest is the request type for PATCH requests to the /custom-images/{id} endpoint.

description
required
string

New description for the custom image.

Responses

Request samples

Content type
application/json
{
  • "description": "\"Ubuntu is the modern, open source operating system on Linux for ...\""
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Updates the tags of a custom image in the project and returns the async operation.

path Parameters
image_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the custom image.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the custom image.

Request Body schema: application/json
required

CustomImagesEditTagsRequest is the request type for PATCH requests to the /custom-images{id}/edit-tags endpoint.

tags
required
Array of strings

New set of tags to associate with the custom image.

Responses

Request samples

Content type
application/json
{
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Custom Image Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the custom images resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous custom image operation

This resource retrieves information about the status of an asynchronous operation initiated by the custom image resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Instance Templates

Lists all instance templates in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates an instance template in the project and returns the created instance template.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

InstanceTemplatePostRequestV1 defines the specifications of VMs to be created during bulk VM creation.

custom_image_name
string

Custom image to use for all VMs created from this instance template. Only one of Image or CustomImage should be supplied at once.

Array of objects (DiskTemplate)

Disks to attach to all VMs created from this instance template.

ib_partition_id
string

Deprecated: Use transport_partition_id instead.

image_name
string

OS Image to use for all VMs created from this instance template.

location
string

Location to use for all VMs created from this instance template. If provided, all location-specific resources must also be provided.

maintenance_policy
string

Host maintenance policy controlling how VMs created from this instance template behave during host maintenance.

nvlink_domain_id
string

NVLink domain to assign to all VMs created from this instance template.

placement_policy
string

Placement policy controlling how VMs created from this instance template are distributed across hosts: spread or unspecified.

public_ip_address_type
string

Public IP address type to use for all VMs created from this instance template. Must either be "static" or "dynamic".

reservation_id
string

Reservation to use for all VMs created from this instance template.

shared_volume_attachments
Array of strings

IDs of existing shared volumes to attach to all VMs created from this instance template. Shared volumes are always attached in read-write mode.

shutdown_script
string

Shutdown script to use for all VMs created from this instance template.

ssh_public_key
required
string

SSH public key to use for all VMs created from this instance template.

startup_script
string

Startup script to use for all VMs created from this instance template.

subnet_id
string

Subnet to use for all VMs created from this instance template. This is location-specific and must be provided if location is provided.

template_name
required
string

Name of the instance template. (This is not the name of the VMs created from this instance template.)

transport_partition_id
string

IB or RoCE partition to use for all VMs created from this instance template. Should only be provided for transport-enabled VM types. This is location-specific and must be provided if location is provided.

type
required
string

Product name of the VM type we want to create from this instance template.

object (VirtualizationFeatures)

Virtualization features of a VM, such as nested virtualization.

Responses

Request samples

Content type
application/json
{
  • "custom_image_name": "ubuntu:20.04",
  • "disks": [
    ],
  • "ib_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "image_name": "ubuntu:20.04",
  • "location": "us-northcentral1-a",
  • "maintenance_policy": "manual,stop-vm,unspecified",
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "placement_policy": "spread",
  • "public_ip_address_type": "static",
  • "reservation_id": "804bf3a2-81f2-4d78-9a9e-dc6a55ed33d8",
  • "shared_volume_attachments": [
    ],
  • "shutdown_script": "\"#!/bin/bash\\necho 'goodbye'\"",
  • "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8Rtxpucl6LDZLOghEYoj13lxKQnGtcsM3Iu68lh+4YgZe7CbI6cc/TxPbeAX2HJTqDh0J7+GAlLBHK9tsepC0QlhIDiazJptOPDZ3cesCBXdxSnzEbhDaqgYOfl393cp1fCeOKRIDWEP3H9CM25dCbWF66sTDziLsojJ9dMnxhgKm9/JkZc5gYncLT/2Ey+VWfV9Fs65mGUrBbQOn3c8S/nEk6WRcYn4PFOnIp0Mz+Chb50iCJrW677pllLnkTGSU+4c0H9J5z4HDG0I+91RoiQ0QsayFTYO1JtSn+THLuq98V+D",
  • "startup_script": "\"#!/bin/bash\\necho 'hello'\"",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "template_name": "my-instance-template",
  • "transport_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "type": "a100.2x",
  • "virtualization_features": {
    }
}

Response samples

Content type
application/json
{
  • "created_at": "2024-01-01T00:00:00Z",
  • "custom_image_name": "ubuntu:20.04",
  • "disks": [
    ],
  • "ib_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "image_name": "ubuntu:20.04",
  • "location": "us-northcentral1-a",
  • "maintenance_policy": "manual",
  • "name": "my-instance-template",
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "placement_policy": "spread",
  • "project_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "public_ip_address_type": "static",
  • "reservation_id": "804bf3a2-81f2-4d78-9a9e-dc6a55ed33d8",
  • "shared_volume_attachments": [
    ],
  • "shutdown_script": "#!/bin/bash\\necho 'goodbye'",
  • "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8Rtxpucl6LDZLOghEYoj13lxKQnGtcsM3Iu68lh+4YgZe7CbI6cc/TxPbeAX2HJTqDh0J7+GAlLBHK9tsepC0QlhIDiazJptOPDZ3cesCBXdxSnzEbhDaqgYOfl393cp1fCeOKRIDWEP3H9CM25dCbWF66sTDziLsojJ9dMnxhgKm9/JkZc5gYncLT/2Ey+VWfV9Fs65mGUrBbQOn3c8S/nEk6WRcYn4PFOnIp0Mz+Chb50iCJrW677pllLnkTGSU+4c0H9J5z4HDG0I+91RoiQ0QsayFTYO1JtSn+THLuq98V+D",
  • "startup_script": "#!/bin/bash\\necho 'hello'",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "transport_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "type": "a100.2x",
  • "virtualization_features": {
    }
}

Deletes an instance template from the project.

path Parameters
instance_template_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the instance template.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Returns details for a single instance template in the project.

path Parameters
instance_template_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the instance template.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2024-01-01T00:00:00Z",
  • "custom_image_name": "ubuntu:20.04",
  • "disks": [
    ],
  • "ib_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "image_name": "ubuntu:20.04",
  • "location": "us-northcentral1-a",
  • "maintenance_policy": "manual",
  • "name": "my-instance-template",
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "placement_policy": "spread",
  • "project_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "public_ip_address_type": "static",
  • "reservation_id": "804bf3a2-81f2-4d78-9a9e-dc6a55ed33d8",
  • "shared_volume_attachments": [
    ],
  • "shutdown_script": "#!/bin/bash\\necho 'goodbye'",
  • "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8Rtxpucl6LDZLOghEYoj13lxKQnGtcsM3Iu68lh+4YgZe7CbI6cc/TxPbeAX2HJTqDh0J7+GAlLBHK9tsepC0QlhIDiazJptOPDZ3cesCBXdxSnzEbhDaqgYOfl393cp1fCeOKRIDWEP3H9CM25dCbWF66sTDziLsojJ9dMnxhgKm9/JkZc5gYncLT/2Ey+VWfV9Fs65mGUrBbQOn3c8S/nEk6WRcYn4PFOnIp0Mz+Chb50iCJrW677pllLnkTGSU+4c0H9J5z4HDG0I+91RoiQ0QsayFTYO1JtSn+THLuq98V+D",
  • "startup_script": "#!/bin/bash\\necho 'hello'",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "transport_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "type": "a100.2x",
  • "virtualization_features": {
    }
}

Instance Groups

Lists all instance groups in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates an instance group in the project and returns the created instance group.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

InstanceGroupPostRequest defines the specifications of the instance group to be created.

desired_count
required
integer <int64>

Desired number of instances for the new instance group.

name
required
string

Name for the new instance group.

template_id
required
string

ID of the instance template to create the group's instances from.

Responses

Request samples

Content type
application/json
{
  • "desired_count": 3,
  • "name": "my-instance-group",
  • "template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc"
}

Response samples

Content type
application/json
{
  • "active_instances": [
    ],
  • "created_at": "2024-01-01T00:00:00Z",
  • "desired_count": 3,
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "inactive_instances": [
    ],
  • "instances": [
    ],
  • "name": "my-instance-group",
  • "project_id": "b67aec22-2908-4427-994c-4e32be87477e",
  • "running_instance_count": 3,
  • "state": "HEALTHY",
  • "template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc",
  • "updated_at": "2024-01-01T00:00:00Z"
}

Deletes an instance group from the project.

path Parameters
instance_group_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the instance group.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Returns details for a single instance group in the project.

path Parameters
instance_group_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the instance group.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "active_instances": [
    ],
  • "created_at": "2024-01-01T00:00:00Z",
  • "desired_count": 3,
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "inactive_instances": [
    ],
  • "instances": [
    ],
  • "name": "my-instance-group",
  • "project_id": "b67aec22-2908-4427-994c-4e32be87477e",
  • "running_instance_count": 3,
  • "state": "HEALTHY",
  • "template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc",
  • "updated_at": "2024-01-01T00:00:00Z"
}

Updates an instance group in the project and returns the updated instance group.

path Parameters
instance_group_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the instance group.

project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

InstanceGroupPatchRequest defines the specifications of the updates to be made to the instance group. This is a separate type from InstanceGroupPostRequest for clearer documentation, as these fields are not required in the PATCH endpoint.

object (DesiredCount)

DesiredCount defines a wrapper struct for the desired count of VMs in the instance group.

name
string

New name for the instance group.

template_id
string

ID of the instance template to associate with the instance group.

Responses

Request samples

Content type
application/json
{
  • "desired_count": {
    },
  • "name": "my-instance-group",
  • "template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc"
}

Response samples

Content type
application/json
{
  • "active_instances": [
    ],
  • "created_at": "2024-01-01T00:00:00Z",
  • "desired_count": 3,
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "inactive_instances": [
    ],
  • "instances": [
    ],
  • "name": "my-instance-group",
  • "project_id": "b67aec22-2908-4427-994c-4e32be87477e",
  • "running_instance_count": 3,
  • "state": "HEALTHY",
  • "template_id": "7e6a6c5a-1314-409a-9e4f-3cc9f2a68fcc",
  • "updated_at": "2024-01-01T00:00:00Z"
}

Diagnostics

Create a diagnostic report request for a VM.

Initiates an NVIDIA bug report collection for the specified VM. Returns the diagnostic ID which can be used to poll for status. If a diagnostic is already pending for this VM, returns the existing diagnostic ID.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID

vm_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

The VM ID to create diagnostic for

Responses

Response samples

Content type
application/json
{
  • "already_pending": false,
  • "id": "123e4567-e89b-12d3-a456-426614174000"
}

Get the latest completed diagnostic report for a VM.

Returns the download URL for the most recently completed diagnostic report for the specified VM. If no completed diagnostic exists, has_diagnostic will be false.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID

vm_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

The VM ID to get latest completed diagnostic for

Responses

Response samples

Content type
application/json
{
  • "created_at": "2024-01-15T10:30:00Z",
  • "has_diagnostic": true,
  • "id": "123e4567-e89b-12d3-a456-426614174000",
  • "updated_at": "2024-01-15T10:35:00Z"
}

Get the status of a diagnostic report.

Returns the current status of a diagnostic report including type, status (pending/running/completed/failed), download URL (if completed), and timestamps.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID

vm_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

The VM ID

diagnostic_id
required
string
Example: a1b2c3d4-5678-90ab-cdef-1234567890ab

The diagnostic ID to get status for

Responses

Response samples

Content type
application/json
{
  • "created_at": "2024-01-15T10:30:00Z",
  • "error_message": "nvidia-smi timed out waiting for GPU response",
  • "status": "completed",
  • "type": "nvidia_bug_report",
  • "updated_at": "2024-01-15T10:35:00Z"
}

Download a diagnostic report file.

Downloads the diagnostic report file for the specified diagnostic ID. The diagnostic must be in completed status to download.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID

vm_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

The VM ID

diagnostic_id
required
string
Example: a1b2c3d4-5678-90ab-cdef-1234567890ab

The diagnostic ID to download

Responses

Response samples

Content type
application/json
[
  • 0
]

Projects

Lists all projects the logged-in user belongs to or owns and returns their details.

If querying for projects within an organization, the logged-in user must be the owner of the organization.

query Parameters
org_id
string
Example: org_id=ee2a6bc3-aed5-4756-8995-9990a53d3a17

Filters results to projects in this organization.

project_name
string
Example: project_name=default

Filters results to projects with this name.

skip_loading_project_resources
boolean
Example: skip_loading_project_resources=true

Whether to skip loading the resource counts for each project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a project and returns the created project.

The logged-in user must have the permission to create projects within the organization. A successful response from this resource contains details of the created project.

Request Body schema: application/json
required

ProjectsPostRequest is the request type for POST requests to the projects endpoint.

name
required
string

Name for the new project.

organization_id
required
string

ID of the organization that will own the new project.

Responses

Request samples

Content type
application/json
{
  • "name": "Admin",
  • "organization_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab"
}

Response samples

Content type
application/json
{
  • "project": {
    }
}

Updates a project and returns the updated project.

Requests to this resource must contain the json-encoded representation of the changes they want to make to the project. Currently only the project's name can be changed.

query Parameters
project_id
required
string
Example: project_id=f058d0db-2fa4-4cf2-8cf1-dfbcfe05a814

ID of the project.

Request Body schema: application/json
required

ProjectsPutRequest is the request type for PUT requests to the projects endpoint.

name
required
string

New name for the project.

Responses

Request samples

Content type
application/json
{
  • "name": "Admin"
}

Response samples

Content type
application/json
{
  • "project": {
    }
}

Deletes a project.

Delete operations cascade to VMs created under that project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Returns details for a single project.

path Parameters
project_id
required
string
Example: ee2a6bc3-aed5-4756-8995-9990a53d3a17

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "name": "Admin",
  • "organization_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "relation": "owner",
  • "resources": {
    }
}

Billing

Get the daily spend for a specified organization by project. Returns real-time data for Intelligence Billing (Serverless Inference + Serverless Fine Tuning).

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "last_updated": "2021-12-03T19:58:34Z"
}

Return a CSV file with the organization's costs per product line in a given period.

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

query Parameters
projects
Array of strings
Example: projects=d8f58dfd-dd86-4ee4-8f01-643e6d0f15bb

Filters results to the projects with these IDs.

product_lines
Array of strings
Example: product_lines=persistent-ssd,a40

Filters results to these product lines.

regions
Array of strings
Example: regions=us-east1,us-northcentral1

Filters results to these regions.

start_date
required
string
Example: start_date="2022-07-01"

First day to include, as YYYY-MM-DD in UTC.

end_date
required
string
Example: end_date="2023-08-08"

Last day to include, as YYYY-MM-DD in UTC.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Retrieve data about an organizations recent Non-Reservation costs.

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

query Parameters
start_date
string
Example: start_date="2025-05-01"

First day of the period to list filter values for, as YYYY-MM-DD in UTC.

end_date
string
Example: end_date="2025-05-20"

Last day of the period to list filter values for, as YYYY-MM-DD in UTC.

Responses

Response samples

Content type
application/json
{
  • "end_date": "\"2023-08-08\"",
  • "product_lines": [
    ],
  • "projects": [
    ],
  • "regions": [
    ],
  • "resource_types": [
    ],
  • "start_date": "\"2022-07-01\""
}

Credits

Retrieve an organization's credit balance history.

Returns the organization's credit transactions, ordered newest-first, along with the balance remaining after each one.

path Parameters
org_id
required
string[^/]+
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

org_id is the ID of the organization whose credit history to list

query Parameters
limit
integer <int32>
Example: limit=50

limit is the maximum number of transactions to return. Must be positive if set.

Responses

Response samples

Content type
application/json
{
  • "credits": [
    ],
  • "currency": "usd"
}

Get the aggregate credit balance for the specified organization. By default only active grants are counted.

path Parameters
organization_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization.

Responses

Response samples

Content type
application/json
{
  • "grants_count": 3,
  • "total_balance": "\"1250.00\""
}

Reservations

Get all reservations belonging to the specified organization. User must be part of the organization.

path Parameters
organization_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization that owns the reservations.

query Parameters
status
string
Example: status=effective

Filters results to reservations with this status. The only supported value is effective: the contract has started and hasn't ended, and the capacity has been delivered. Leave it out to list every reservation, whatever its status.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get GPU tracking data for the specified organization. User must be part of the organization and have reservations feature access.

path Parameters
organization_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization that owns the reservations.

query Parameters
product_line
Array of strings
Example: product_line=h100

Filters results to these product lines, such as h100. Accepts repeated parameters or one comma-separated value.

region
Array of strings
Example: region=us-east1,us-northcentral1

Filters results to these regions. Accepts repeated parameters or one comma-separated value. The global entries are returned either way.

start_time
string
Example: start_time="2024-01-01T00:00:00Z"

Filters results to entries at or after this time, in RFC 3339 format. Leave it out to start from the earliest entry.

end_time
string
Example: end_time="2024-01-31T23:59:59Z"

Filters results to entries at or before this time, in RFC 3339 format. It can't be before start_time. Leave it out to include entries up to the latest one.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ]
}

Get latest GPU tracking data for the specified organization. User must be part of the organization and have reservations feature access.

path Parameters
organization_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization that owns the reservations.

query Parameters
product_line
Array of strings
Example: product_line=h100

Filters results, and the reservation IDs returned, to these product lines, such as h100. Accepts repeated parameters or one comma-separated value.

region
Array of strings
Example: region=us-east1,us-northcentral1

Filters results to these regions. Accepts repeated parameters or one comma-separated value.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "reservation_id": [
    ]
}

Get reservation belonging to the specified organization and reservation ID. User must be part of the organization.

path Parameters
organization_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization that owns the reservation.

reservation_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the reservation to get.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Entities

Retrieve details about all active organizations the logged in user belongs to.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Update details for an organization that the logged in user owns.

A successful response from this resource will contain the updated organization details.

query Parameters
org_id
required
string
Example: org_id=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

Request Body schema: application/json
required

Details of the organization to create or update.

object (BillingAddress)

An organization's billing address.

company_name
string

Name of the company that owns the organization.

organization_name
string

Name of the organization.

tax_id
string

Tax ID of the company.

tax_id_type
string
Enum: "EIN" "VAT"

Type of the company's tax ID.

Responses

Request samples

Content type
application/json
{
  • "billing_addr": {
    },
  • "company_name": "mycompany",
  • "organization_name": "Crusoe Energy",
  • "tax_id": "51-2144346",
  • "tax_id_type": "EIN"
}

Response samples

Content type
application/json
{
  • "entity": {
    }
}

Usage

Get project-level usage for products in Crusoe Cloud.

path Parameters
org_id
required
string[^/]+
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

org_id is the ID of the org to fetch usage for

query Parameters
projects
Array of strings
Example: projects=d8f58dfd-dd86-4ee4-8f01-643e6d0f15bb

projects is an optional list of project IDs to filter usage by; absent means all projects

resource_types
Array of strings
Example: resource_types=persistent-ssd&resource_types=a40.1x

resource_types is an optional list of product types to filter usage by; absent means all products

regions
Array of strings
Example: regions=us-east1&regions=us-northcentral1

regions is an optional list of regions to filter usage by; absent means all regions

start_date
string
Example: start_date=2022-07-01

start_date is the optional start date (inclusive) of the usage period, formatted YYYY-MM-DD

end_date
string
Example: end_date=2023-08-08

end_date is the optional end date of the usage period, formatted YYYY-MM-DD

interval
string
Example: interval=monthly

interval controls how usage is aggregated over the period: "daily" (the default) or "monthly"

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get resource-level usage for products in Crusoe Cloud.

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

query Parameters
projects
required
Array of strings
Example: projects=d8f58dfd-dd86-4ee4-8f01-643e6d0f15bb

Filters results to the projects with these IDs.

resources
required
Array of strings
Example: resources=d8f58dfd-dd86-4ee4-8f01-643e6d0f15bb

Filters results to the resources with these IDs.

resource_types
required
Array of strings
Example: resource_types=persistent-ssd,a40.1x

Filters results to these resource types.

regions
required
Array of strings
Example: regions=us-east1,us-northcentral1

Filters results to these regions.

start_date
required
string
Example: start_date="2022-07-01"

First day to include, as YYYY-MM-DD in UTC.

end_date
required
string
Example: end_date="2023-08-08"

Last day to include, as YYYY-MM-DD in UTC.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Get options which exist for filters for /usage and /usage/export routes.

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

Responses

Response samples

Content type
application/json
{
  • "end_date": "\"2023-08-08\"",
  • "product_lines": [
    ],
  • "projects": [
    ],
  • "regions": [
    ],
  • "resource_types": [
    ],
  • "start_date": "\"2022-07-01\""
}

Quotas

List max and currently used organization quotas.

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization.

Responses

Response samples

Content type
application/json
{
  • "quotas": [
    ]
}

List max and currently used project quotas.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "quotas": [
    ]
}

Audit Logs

Get audit logs belonging to the specified organization. User must be part of the organization.

path Parameters
organization_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization that owns the audit logs.

query Parameters
project_ids
Array of strings
Example: project_ids=f934fbdb-7e3a-4b92-b7d2-da0f91d768e8,8c29f3f3-830f-4a44-9b6b-a51fcf6a6b5d

Filters results to entries for the projects with these comma-separated IDs.

start_time
string
Example: start_time=2022-09-01T14:25:36-07:00

Start of the time range to search, in RFC 3339 format. It must be within the past year. If you leave it out, it's 24 hours before end_time.

end_time
string
Example: end_time=2022-09-06T14:25:36-07:00

End of the time range to search, in RFC 3339 format. It must be within the past year and at most 93 days after start_time. If you leave it out, it's the current time or 24 hours after start_time, whichever is earlier.

actions
Array of strings
Example: actions=Create,Update

Filters results to entries whose action is one of these comma-separated values, such as Create or Update.

actor_ids
Array of strings
Example: actor_ids=f934fbdb-7e3a-4b92-b7d2-da0f91d768e8,8c29f3f3-830f-4a44-9b6b-a51fcf6a6b5d

Filters results to entries whose actor_id is one of these comma-separated IDs.

actor_emails
Array of strings

Emails of the users to filter by. Filtering by Crusoe Admin email isn't supported.

actor_types
Array of strings
Example: actor_types=User,Crusoe Admin

Actor types to filter by: User, ServiceAccount, System or Crusoe Admin. URL-encode values that contain spaces.

target_ids
Array of strings
Example: target_ids=f934fbdb-7e3a-4b92-b7d2-da0f91d768e8,8c29f3f3-830f-4a44-9b6b-a51fcf6a6b5d

Filters results to entries whose target_ids include any of these comma-separated IDs.

target_types
Array of strings
Example: target_types=VM,KubernetesCluster

Filters results to entries whose target_type is one of these comma-separated values, such as VM or KubernetesCluster.

target_names
Array of strings
Example: target_names=my_vm1,my_vm2

Filters results to entries whose target_names include any of these comma-separated names, ignoring case.

locations
Array of strings
Example: locations=us-east1,us-northcentral1-a

Filters results to entries whose locations include any of these comma-separated locations. An unknown location fails the request.

results
Array of strings
Example: results=OK,Bad Request

Filters results to entries whose result is one of these comma-separated values, such as OK or Bad Request.

results_not
Array of strings
Example: results_not=OK,Bad Request

Results to exclude from the response.

surfaces
Array of strings
Example: surfaces=Browser,Crusoe Terraform/v0.5.21

Surfaces the requests came from, such as Browser or Crusoe Terraform/v0.5.21. URL-encode the values.

limit
string
Example: limit=20

Maximum number of entries to return, from 1 to 100. Defaults to 20.

next_token
string
Example: next_token=bXktZmlyc3Qtdm0

Token for the next page, from next_page_token in the previous response. You can't combine it with prev_token.

prev_token
string
Example: prev_token=bXktZmlyc3Qtdm0

Token for the previous page, from prev_page_token in the previous response. You can't combine it with next_token.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_page_token": "bXktbGFzdC12bQ",
  • "prev_page_token": "bXktZmlyc3Qtdm0"
}

SCIM

List SCIM integrations for an organization.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integrations.

Responses

Response samples

Content type
application/json
{
  • "integrations": [
    ]
}

Create a new SCIM integration for an organization.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

Request Body schema: application/json
required

The SCIM integration to create.

identity_provider
required
string

Identity provider that provisions your users through the SCIM integration. The only supported value is okta.

name
required
string

Display name of the SCIM integration, at most 128 characters.

object (CreateSCIMTokenRequestBody)

The SCIM integration token to create.

Responses

Request samples

Content type
application/json
{
  • "identity_provider": "okta",
  • "name": "Okta SCIM Integration",
  • "token": {
    }
}

Response samples

Content type
application/json
{
  • "api_key_info": {
    },
  • "integration": {
    }
}

Delete a SCIM integration.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

integration_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the SCIM integration.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Get a SCIM integration by ID.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

integration_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the SCIM integration.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2024-01-01T00:00:00Z",
  • "created_by": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "identity_provider": "okta",
  • "last_activity_at": "2024-01-01T00:00:00Z",
  • "name": "Okta SCIM Integration",
  • "organization_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "status": "active",
  • "token_ids": [
    ],
  • "updated_at": "2024-01-01T00:00:00Z",
  • "user_count": 3
}

Update a SCIM integration.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

integration_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the SCIM integration.

Request Body schema: application/json
required

UpdateSCIMIntegrationRequestBody is the JSON request body for updating a SCIM integration.

status
string

The new status for the integration.

Responses

Request samples

Content type
application/json
{
  • "status": "active"
}

Response samples

Content type
application/json
{
  • "created_at": "2024-01-01T00:00:00Z",
  • "created_by": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "identity_provider": "okta",
  • "last_activity_at": "2024-01-01T00:00:00Z",
  • "name": "Okta SCIM Integration",
  • "organization_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "status": "active",
  • "token_ids": [
    ],
  • "updated_at": "2024-01-01T00:00:00Z",
  • "user_count": 3
}

List the tokens for a SCIM integration.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

integration_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the SCIM integration that owns the tokens.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a token for a SCIM integration.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

integration_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the SCIM integration that owns the tokens.

Request Body schema: application/json
required

The SCIM integration token to create.

alias
required
string

Display name of the token: at most 64 letters, digits, spaces, dots, hyphens, and underscores.

expires_at
required
string

When the token expires, in RFC 3339 format, or "never".

Responses

Request samples

Content type
application/json
{
  • "alias": "my-scim-token",
  • "expires_at": "2025-12-03T19:58:34Z"
}

Response samples

Content type
application/json
{
  • "api_key_info": {
    }
}

Delete a token from a SCIM integration.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SCIM integration.

integration_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the SCIM integration that owns the token.

access_key_id
required
string
Example: R7p5XctCQMuGlpVBmVdqzA

ID of the token, from its key_id field.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

MFA

Get enabled MFA methods for the specified organization.

path Parameters
organization_id
required
string[^/]+
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

organization_id is the ID of the organization

Responses

Response samples

Content type
application/json
{
  • "mfa_methods": [
    ]
}

Update required MFA methods for the specified organization.

path Parameters
organization_id
required
string[^/]+
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

organization_id is the ID of the organization

Request Body schema: application/json
required

UpdateOrganizationMFARequest is the request for setting an organization's required MFA methods.

intended_methods
Array of strings

intended_methods is the full set of MFA methods for the organization to require (one of: totp, webauthn).

Responses

Request samples

Content type
application/json
{
  • "intended_methods": [
    ]
}

Response samples

Content type
application/json
{ }

SSO

Returns the active sso providers for a given orgID.

path Parameters
organization_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the SSO providers.

Responses

Response samples

Content type
application/json
{
  • "sso_providers": [
    ]
}

Create a new SSO provider for a specific org.

path Parameters
organization_id
required
string
Example: d62a74a8-e14e-41fd-81b6-9983f7ab9ba8

ID of the organization that owns the SSO provider.

Request Body schema: application/json
required

The SSO provider to create.

client_id
string

Client ID of the SSO provider. Required for okta and other providers.

email_domains
Array of strings

Email domains that use the SSO provider. Required for okta and other providers.

issuer_uri
string

Issuer URI of the SSO provider. Required for okta and other providers.

provider_type
string
Enum: "okta" "google" "other"

Type of the SSO provider: okta, google for Google Workspace, or other for any other OIDC provider. Defaults to okta.

Responses

Request samples

Content type
application/json
{
  • "client_id": "0oa1b2c3d4e5f6g7h8i9",
  • "email_domains": [
    ],
  • "issuer_uri": "https://example.okta.com",
  • "provider_type": "okta"
}

Response samples

Content type
application/json
{
  • "client_id": "0oa1b2c3d4e5f6g7h8i9",
  • "created_at": "2021-12-03T19:58:34Z",
  • "email_domains": [
    ],
  • "id": "0a5ee13d-b8f1-4232-bb81-d8a43b9d1fc6",
  • "issuer_uri": "https://example.okta.com",
  • "org_id": "de8f27fe-8438-45e7-a2c2-a2767660625f",
  • "provider_type": "okta"
}

Delete a specific SSO provider for a specific org.

path Parameters
organization_id
required
string
Example: d62a74a8-e14e-41fd-81b6-9983f7ab9ba8

ID of the organization that owns the SSO provider.

provider_id
required
string
Example: d62a74a8-e14e-41fd-81b6-9983f7ab9ba8

ID of the SSO provider.

Responses

Response samples

Content type
application/json
{
  • "client_id": "0oa1b2c3d4e5f6g7h8i9",
  • "created_at": "2021-12-03T19:58:34Z",
  • "email_domains": [
    ],
  • "id": "0a5ee13d-b8f1-4232-bb81-d8a43b9d1fc6",
  • "issuer_uri": "https://example.okta.com",
  • "org_id": "de8f27fe-8438-45e7-a2c2-a2767660625f",
  • "provider_type": "okta"
}

Update SSO for a user.

Request Body schema: application/json
required

The SSO enforcement level to set for users in your organization.

enforcement
required
string
Enum: "none" "required"

Whether the users must sign in with SSO (required, needs an active SSO provider) or can use a password (none).

user_ids
required
Array of strings

IDs of the users to update. They must be in your organization.

Responses

Request samples

Content type
application/json
{
  • "enforcement": "none",
  • "user_ids": [
    ]
}

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Feature Flags

Get feature flags for the currently logged in user.

A successful response from this resource will contain a map of all feature flags and the value assigned to each of them for the user.

query Parameters
project_id
string
Example: project_id=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

project_id optionally scopes flag evaluation to the given project. The caller must be a member of the project. When set, flags are evaluated with the project in the targeting context in addition to the user and org.

Responses

Response samples

Content type
application/json
{
  • "feature_flags": {
    }
}

Identities

Retrieve user details for the logged in user.

Responses

Response samples

Content type
application/json
{
  • "credentials": [
    ],
  • "credentials_map": {
    },
  • "identity": {
    }
}

Update user details for the logged in user.

A successful response from this resource wil contain the updated user details.

Request Body schema: application/json
required

The changes to make to your identity. Only the name can be changed.

name
required
string

Your new name.

role
string

Accepted for compatibility and ignored.

Responses

Request samples

Content type
application/json
{
  • "name": "John Doe",
  • "role": "Admin"
}

Response samples

Content type
application/json
{
  • "credentials": [
    ],
  • "credentials_map": {
    },
  • "identity": {
    }
}

SSH Keys

Delete an SSH public key registered to the logged in user.

query Parameters
id
required
string
Example: id=6e28cad3-98e6-47a9-a9fc-1cd83a7f25c1

ID of the SSH key to delete.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Retrieve the list of SSH public keys registered to the logged in user.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Register a new SSH public key to the logged in user.

A successful response from this resource wil contain the created SSH key details.

Request Body schema: application/json
required

The SSH public key to register.

name
required
string

Display name for the SSH key, at most 1,024 bytes.

public_key
required
string

SSH public key to register, in OpenSSH authorized_keys format, such as the contents of a .pub file.

Responses

Request samples

Content type
application/json
{
  • "name": "John Doe",
  • "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICpuH/fqCFLbAConChyVH6rZzSaxlnHSwQk6qvtPsf5E"
}

Response samples

Content type
application/json
{
  • "ssh_key": {
    }
}

Tokens

Delete an API token owned by the logged in user.

query Parameters
access_key
required
string
Example: access_key=WTUzcGibQ82y9_01h4MCdQ

Access key ID of the API key to delete.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Retrieve all active/expired API tokens for the logged in user.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a new token owned by the logged in user.

A successful response from this resource will contain json-encoded details of API token. This is the only time the customer will be able to view the secret key associated with the token.

Request Body schema: application/json
required

The API key to create.

alias
string

Display name of the API key.

expires_at
required
string

When the API key expires, in RFC 3339 format.

Responses

Request samples

Content type
application/json
{
  • "alias": "token1",
  • "expires_at": "2021-12-03T19:58:34Z"
}

Response samples

Content type
application/json
{
  • "token": {
    }
}

LimitedUsageAPIKey

Delete a Limited Usage API Key owned by the logged in user.

query Parameters
key_id
required
string
Example: key_id=WTUzcGibQ82y9_01h4MCdQ

ID of the limited usage API key to delete.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Retrieve all active/expired Limited Usage API Keys for the logged in user and their usage types.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a new limited usage api key owned by the logged in user, of type specified by usage parameter.

A successful response from this resource will contain json-encoded details of the limited usage API key. This is the only time the customer will be able to view the api key associated with the API key id.

query Parameters
usage
required
string
Enum: "inference" "observability"

What you can use the key for.

Request Body schema: application/json
required

The limited usage API key to create.

alias
string

Display name of the key.

expires_at
required
string

When the key expires, in RFC 3339 format.

project_id
string

ID of the project to scope the key to, if any.

Responses

Request samples

Content type
application/json
{
  • "alias": "token1",
  • "expires_at": "2021-12-03T19:58:34Z",
  • "project_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}

Response samples

Content type
application/json
{
  • "api_key_info": {
    }
}

Disks

Lists all disks in the project and returns their details.

Size of disks will be in gibibytes (GiB)

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disks.

query Parameters
disk_ids
Array of strings
Example: disk_ids=09ae8411-0fbb-411c-898c-2b8f19622ae1

Filters results to disks with these IDs.

location
string
Example: location=us-east1-a

Filters results to disks in this location.

disk_names
Array of strings
Example: disk_names=my-disk

Filters results to disks with these names.

exclude_os
boolean

Excludes OS disks from the results when true.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a disk in the project and returns the async operation.

Requires either a disk snapshot ID, or size and location, where size of disk should be in gibibytes (GiB) or tebibytes (TiB) in the format [Size][Unit]. E.g. 10GiB. Disk type must be one of: DISK_TYPE_PERSISTENT_SSD. A successful response from this resource will contain the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

The disk to create. Set either snapshot_id, or size and location. A persistent-ssd disk is 1 GiB to 10 TiB. A shared-volume disk is at least 1 TiB and doesn't accept block_size or snapshot_id. When you set snapshot_id, the API ignores size, location, and block_size.

block_size
integer <int64>

Block size for the new disk, in bytes: 512 or 4096.

location
string

Location to create the disk in.

name
required
string

Name for the new disk.

size
string

Storage capacity for the new disk, given as a size and unit in the format [Size][Unit], for example 100GiB or 1TiB.

snapshot_id
string

ID of a disk snapshot to create the disk from.

type
string
Default: "persistent-ssd"
Enum: "persistent-ssd" "shared-volume"

Type of disk to create: persistent-ssd or shared-volume. Defaults to persistent-ssd.

Responses

Request samples

Content type
application/json
{
  • "block_size": 4096,
  • "location": "us-northcentral1-a",
  • "name": "my-disk",
  • "size": "10GiB",
  • "snapshot_id": "123e4567-e89b-12d3-a456-426614174000",
  • "type": "persistent-ssd"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a disk from the project and returns the async operation.

A successful response from this resource will contain the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disk.

disk_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the disk.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single disk in the project.

Size of disk will be in gibibytes (GiB)

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disk.

disk_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the disk.

Responses

Response samples

Content type
application/json
{
  • "attached_to": [
    ],
  • "block_size": 4096,
  • "created_at": "2021-12-03T19:58:34Z",
  • "dns_name": "nfs.crusoecloudcompute.com",
  • "id": "123e4567-e89b-12d3-a456-426614174000",
  • "location": "us-northcentral1-a",
  • "name": "my-disk",
  • "serial_number": "96FD14FDBCF7E21E8EC",
  • "size": "10GiB",
  • "type": "persistent-ssd",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "vips": [
    ]
}

Resizes a disk in the project and returns the async operation.

Size should be in gibibytes (GiB) or tebibytes (TiB) in the format [Size][Unit]. E.g. 10GiB A successful response from this resource will contain the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disk.

disk_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the disk.

Request Body schema: application/json
required

The new size of a disk. A persistent-ssd disk can't shrink, and can grow up to 10 TiB. A shared-volume disk can grow or shrink, down to 1 TiB.

size
required
string

New storage capacity for the disk, given as a size and unit in the format [Size][Unit], for example 100GiB or 1TiB.

Responses

Request samples

Content type
application/json
{
  • "size": "10GiB"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Disk Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the disks resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the disks resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

DiskMigrations

Lists every disk migration job for a project, each with its job-level status only.

Use getDiskMigration for a specific job's per-VM detail.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to list migration jobs for.

Responses

Response samples

Content type
application/json
{
  • "jobs": [
    ]
}

Returns the per-VM status of a disk migration job.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the migration job.

job_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the migration job.

Responses

Response samples

Content type
application/json
{
  • "job_id": "123e4567-e89b-12d3-a456-426614174000",
  • "job_status": "AWAITING_FINISH",
  • "vms": [
    ]
}

Signals a live disk migration job to finish.

The job must have reached job_status = AWAITING_FINISH; signaling before then is rejected.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the migration job.

Request Body schema: application/json
required

DiskMigrationFinishRequest is the request body for signaling a live disk migration job to finish.

job_id
required
string

ID of the migration job to finish.

Responses

Request samples

Content type
application/json
{
  • "job_id": "123e4567-e89b-12d3-a456-426614174000"
}

Response samples

Content type
application/json
{ }

Starts a live disk migration for one VM, several named VMs, or every VM in the project.

At most one of vm_id or vm_ids may be specified; if neither is given, every VM in the project is migrated.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VM(s) to migrate.

Request Body schema: application/json
required

DiskMigrationStartRequest is the request body for starting a live disk migration.

size
required
string

New disk size, given as a size and unit in the format [Size][Unit], for example 100GiB or 1TiB.

vm_id
string

ID of the single VM to migrate. At most one of vm_id or vm_ids may be specified. If neither is, every VM in the project is migrated instead.

vm_ids
Array of strings

IDs of the VMs to migrate. At most one of vm_id or vm_ids may be specified. If neither is, every VM in the project is migrated instead.

Responses

Request samples

Content type
application/json
{
  • "size": "10GiB",
  • "vm_id": "123e4567-e89b-12d3-a456-426614174000",
  • "vm_ids": [
    ]
}

Response samples

Content type
application/json
{
  • "job_id": "123e4567-e89b-12d3-a456-426614174000",
  • "results": [
    ]
}

Snapshots

Lists all disk snapshots in the project and returns their details.

Size of snapshots will be in bytes.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a disk snapshot in the project and returns the async operation.

A successful response from this resource will contain the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

The disk snapshot to create, from a disk in the same project.

disk_id
required
string

ID of the disk to snapshot.

name
required
string

Name for the new disk snapshot.

Responses

Request samples

Content type
application/json
{
  • "disk_id": "123e4567-e89b-12d3-a456-426614174000",
  • "name": "my-snapshot-1"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a disk snapshot from the project and returns the async operation.

A successful response from this resource will contain the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disk snapshot.

snapshot_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the disk snapshot.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single disk snapshot in the project.

Size of snapshot will be in bytes.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disk snapshot.

snapshot_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the disk snapshot.

Responses

Response samples

Content type
application/json
{
  • "block_size": 4096,
  • "created_at": "2021-12-03T19:58:34Z",
  • "created_from": "123e4567-e89b-12d3-a456-426614174000",
  • "id": "123e4567-e89b-12d3-a456-426614174000",
  • "name": "my-snapshot",
  • "size": "10457 bytes",
  • "updated_at": "2021-12-03T19:58:34Z"
}

Renames a disk snapshot in the project and returns the updated snapshot.

A successful response from this resource will contain the updated snapshot.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the disk snapshot.

snapshot_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the disk snapshot.

Request Body schema: application/json
required

The new name for a disk snapshot.

name
required
string

New name for the disk snapshot.

Responses

Request samples

Content type
application/json
{
  • "name": "my-snapshot"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Snapshot Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the snapshots resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the snapshots resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

S3Buckets

Lists all S3 buckets in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the buckets.

query Parameters
next_page_token
string
Example: next_page_token=bXktZmlyc3Qtdm0

Token that returns the next page of results.

prev_page_token
string
Example: prev_page_token=bXktZmlyc3Qtdm0

Token that returns the previous page of results.

page_size
integer <int32>
Default: 20
Example: page_size=10

Maximum number of buckets to return per page.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_page_token": "MjAyMS0xMi0wM1QxOTo1ODozNFp8NGYxYTliNjYtY2ExMS00NWU2LTg2ZWEtZWJjYjc0NTQ2Zjc3",
  • "prev_page_token": "MjAyMS0xMi0wMVQwODoxMjowNVp8MWNmZDUzOTYtMTUyNC00ZDhmLThjMjktNzU4ZWEwYzRmZDZm"
}

Creates an S3 bucket in the project and returns the created bucket.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to create the bucket in.

Request Body schema: application/json
required

CreateS3BucketRequest is the request body for creating a new S3 bucket.

location
required
string

Location to create the bucket in.

name
required
string

Name for the new bucket. Must be DNS-compliant: 3-63 characters, using lowercase letters, numbers, and hyphens.

object_lock_enabled
boolean

Whether to enable object lock on the new bucket. Requires versioning to be enabled and cannot be disabled once enabled.

retention_period
integer <int32>

Length of the object lock retention period, in the unit given by retention_period_unit.

retention_period_unit
string (S3RetentionPeriodUnit)

Unit of measurement for an object lock retention period: days or years. enum: days,years

object

Tags to apply to the new bucket as key-value pairs.

versioning_state
string (S3VersioningState)

Versioning state of an S3 bucket: disabled, enabled, or suspended. enum: disabled,enabled,suspended

Responses

Request samples

Content type
application/json
{
  • "location": "us-east1-a",
  • "name": "my-new-bucket",
  • "object_lock_enabled": false,
  • "retention_period": 30,
  • "retention_period_unit": "days",
  • "tags": {
    },
  • "versioning_state": "enabled"
}

Response samples

Content type
application/json
{
  • "archived_at": "2021-12-03T19:58:34Z",
  • "bucket_size": 2.42,
  • "created_at": "2021-12-03T19:58:34Z",
  • "location": "us-east1-a",
  • "name": "my-awesome-bucket",
  • "object_lock_enabled": false,
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "retention_mode": "governance",
  • "retention_period": 30,
  • "retention_period_unit": "days",
  • "tags": {
    },
  • "updated_at": "2021-12-03T19:58:34Z",
  • "user_id": "S3U_...",
  • "versioning_state": "enabled"
}

Returns the number of S3 buckets in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the buckets.

Responses

Response samples

Content type
application/json
{
  • "bucket_count": 3
}

Returns the S3 bucket quota information for the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the buckets.

Responses

Response samples

Content type
application/json
{
  • "ActualUsed": 3,
  • "LimitReached": true,
  • "QuotaLimit": 10
}

Deletes an S3 bucket from the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the bucket.

bucket_name
required
string
Example: my-awesome-bucket

Name of the bucket.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Returns details for a single S3 bucket in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the bucket.

bucket_name
required
string
Example: my-awesome-bucket

Name of the bucket.

Responses

Response samples

Content type
application/json
{
  • "archived_at": "2021-12-03T19:58:34Z",
  • "bucket_size": 2.42,
  • "created_at": "2021-12-03T19:58:34Z",
  • "location": "us-east1-a",
  • "name": "my-awesome-bucket",
  • "object_lock_enabled": false,
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "retention_mode": "governance",
  • "retention_period": 30,
  • "retention_period_unit": "days",
  • "tags": {
    },
  • "updated_at": "2021-12-03T19:58:34Z",
  • "user_id": "S3U_...",
  • "versioning_state": "enabled"
}

Replaces the tags on an S3 bucket and returns the updated bucket.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the bucket.

bucket_name
required
string
Example: my-awesome-bucket

Name of the bucket.

Request Body schema: application/json
required

UpdateS3BucketTagsRequest is the request body for updating S3 bucket tags.

required
object

New set of tags for the bucket, as key-value pairs. Replaces all existing tags.

property name*
additional property
string

Responses

Request samples

Content type
application/json
{
  • "tags": {
    }
}

Response samples

Content type
application/json
{
  • "archived_at": "2021-12-03T19:58:34Z",
  • "bucket_size": 2.42,
  • "created_at": "2021-12-03T19:58:34Z",
  • "location": "us-east1-a",
  • "name": "my-awesome-bucket",
  • "object_lock_enabled": false,
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "retention_mode": "governance",
  • "retention_period": 30,
  • "retention_period_unit": "days",
  • "tags": {
    },
  • "updated_at": "2021-12-03T19:58:34Z",
  • "user_id": "S3U_...",
  • "versioning_state": "enabled"
}

Enables object lock on an S3 bucket and returns the updated bucket. Requires versioning to be enabled and cannot be disabled once enabled.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the bucket.

bucket_name
required
string
Example: my-awesome-bucket

Name of the bucket.

Request Body schema: application/json

EnableS3BucketObjectLockRequest defines the body for enabling object lock.

retention_period
integer <int32>

Length of the object lock retention period, in the unit given by retention_period_unit.

retention_period_unit
string (S3RetentionPeriodUnit)

Unit of measurement for an object lock retention period: days or years. enum: days,years

Responses

Request samples

Content type
application/json
{
  • "retention_period": 30,
  • "retention_period_unit": "days"
}

Response samples

Content type
application/json
{
  • "archived_at": "2021-12-03T19:58:34Z",
  • "bucket_size": 2.42,
  • "created_at": "2021-12-03T19:58:34Z",
  • "location": "us-east1-a",
  • "name": "my-awesome-bucket",
  • "object_lock_enabled": false,
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "retention_mode": "governance",
  • "retention_period": 30,
  • "retention_period_unit": "days",
  • "tags": {
    },
  • "updated_at": "2021-12-03T19:58:34Z",
  • "user_id": "S3U_...",
  • "versioning_state": "enabled"
}

Enables versioning on an S3 bucket and returns the updated bucket. Versioning cannot be disabled once enabled.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the bucket.

bucket_name
required
string
Example: my-awesome-bucket

Name of the bucket.

Responses

Response samples

Content type
application/json
{
  • "archived_at": "2021-12-03T19:58:34Z",
  • "bucket_size": 2.42,
  • "created_at": "2021-12-03T19:58:34Z",
  • "location": "us-east1-a",
  • "name": "my-awesome-bucket",
  • "object_lock_enabled": false,
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "retention_mode": "governance",
  • "retention_period": 30,
  • "retention_period_unit": "days",
  • "tags": {
    },
  • "updated_at": "2021-12-03T19:58:34Z",
  • "user_id": "S3U_...",
  • "versioning_state": "enabled"
}

Lists all locations where object storage (S3) is available.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

S3Keys

Lists all S3 access keys in the organization and returns their details.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the S3 access keys.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates an S3 access key in the organization and returns the access key ID and one-time secret key.

path Parameters
org_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the organization that owns the S3 access key.

Request Body schema: application/json
required

CreateS3KeyRequest is the request body for creating a new S3 access key for a user.

alias
string

Human-readable alias for the new S3 access key.

expire_at
string

Expiration timestamp for the new S3 access key, in RFC3339 format.

Responses

Request samples

Content type
application/json
{
  • "alias": "my-service-account",
  • "expire_at": "2022-12-03T19:58:34Z"
}

Response samples

Content type
application/json
{
  • "access_key_id": "S3U_ab4a6b00aa5f408ea9fbac6de5eb45ab",
  • "expire_at": "2022-12-03T19:58:34Z",
  • "secret_key": "K7i+q0..."
}

Deletes an S3 access key from the organization.

path Parameters
org_id
required
string
Example: de8f27fe-8438-45e7-a2c2-a2767660625f

ID of the organization that owns the S3 access key.

access_key_id
required
string
Example: CKIA493K6LOVDNNAR4SZ

Access key ID of the S3 access key to delete.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

VPC Firewall Rules

Lists all VPC firewall rules in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a VPC firewall rule in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

VPCFirewallRulesPostRequestV1 is the request type for POST requests to the VPC Firewall Rules endpoint.

action
required
string
Enum: "allow" "deny"

Action applied to traffic that matches the rule: allow or deny.

destination_ports
Array of strings

Destination ports the rule matches. Each entry is a single port or a port range (for example, 3000-8080).

required
Array of objects (FirewallRuleObject)

Destinations the rule matches, given as CIDR blocks or resource IDs.

direction
required
string
Enum: "ingress" "egress"

Direction of traffic the rule applies to: ingress (inbound) or egress (outbound).

name
required
string

Name for the new firewall rule.

protocols
required
Array of strings

Network protocols the rule matches (for example, tcp, udp).

source_ports
Array of strings

Source ports the rule matches. Each entry is a single port or a port range (for example, 3000-8080).

required
Array of objects (FirewallRuleObject)

Sources the rule matches, given as CIDR blocks or resource IDs.

vpc_network_id
required
string

ID of the VPC network to create the rule in.

Responses

Request samples

Content type
application/json
{
  • "action": "allow",
  • "destination_ports": [
    ],
  • "destinations": [
    ],
  • "direction": "ingress",
  • "name": "my-firewall-rule",
  • "protocols": [
    ],
  • "source_ports": [
    ],
  • "sources": [
    ],
  • "vpc_network_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a VPC firewall rule from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC firewall rule.

vpc_firewall_rule_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC firewall rule.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single VPC firewall rule in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC firewall rule.

vpc_firewall_rule_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC firewall rule.

Responses

Response samples

Content type
application/json
{
  • "action": "allow",
  • "destination_ports": [
    ],
  • "destinations": [
    ],
  • "direction": "ingress",
  • "id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc",
  • "name": "my-firewall-rule",
  • "protocols": [
    ],
  • "source_ports": [
    ],
  • "sources": [
    ],
  • "state": "active",
  • "vpc_network_id": "74927f69-f6f6-43f4-bc0d-7bb2e864250e"
}

Updates a VPC firewall rule in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC firewall rule.

vpc_firewall_rule_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC firewall rule.

Request Body schema: application/json
required

VPCFirewallRulesPatchRequest is the request type for PATCH requests to the VPC Firewall Rules endpoint.

destination_ports
Array of strings or null

Destination ports the rule matches. Each entry is a single port or a port range (for example, 3000-8080). Omitted or null leaves the destination ports unchanged; an empty list clears them, which a rule switching to icmp requires.

Array of objects (FirewallRuleObject)

Destinations the rule matches, given as CIDR blocks or resource IDs.

name
string

New name for the firewall rule.

protocols
Array of strings

Network protocols the rule matches (for example, tcp, udp).

source_ports
Array of strings or null

Source ports the rule matches. Each entry is a single port or a port range (for example, 3000-8080). Omitted or null leaves the source ports unchanged; an empty list clears them, which a rule switching to icmp requires.

Array of objects (FirewallRuleObject)

Sources the rule matches, given as CIDR blocks or resource IDs.

Responses

Request samples

Content type
application/json
{
  • "destination_ports": [
    ],
  • "destinations": [
    ],
  • "name": "my-firewall-rule",
  • "protocols": [
    ],
  • "source_ports": [
    ],
  • "sources": [
    ]
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

VPC Firewall Rule Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the snapshots resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the snapshots resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

VPC Networks

Lists all VPC networks in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a VPC network in the project and returns the created network.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

VPCNetworkPostRequest is the request type for POST requests to the VPC Networks endpoint.

cidr
required
string

Address range for the VPC network, in CIDR notation (for example, 172.27.0.0/16).

name
required
string

Name for the new VPC network.

Responses

Request samples

Content type
application/json
{
  • "cidr": "172.27.0.0/16",
  • "name": "my-cool-vpc-network"
}

Response samples

Content type
application/json
{
  • "network": {
    }
}

Deletes a VPC network from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC network.

vpc_network_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC network.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single VPC network in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC network.

vpc_network_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC network.

Responses

Response samples

Content type
application/json
{
  • "cidr": "121.0.0.0/20",
  • "gateway": "11bf5b4c-e0e5-4017-bdb8-3861f3acedc1",
  • "id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc",
  • "name": "default-ethernet",
  • "subnets": [
    ]
}

Updates a VPC network in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC network.

vpc_network_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC network.

Request Body schema: application/json
required

VPCNetworkPatchRequest is the request type for PATCH requests to the VPC Networks endpoint.

name
required
string

New name for the VPC network.

Responses

Request samples

Content type
application/json
{
  • "name": "my-cool-vpc-network"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

VPC Network Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the VPC Networks resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the VPC Network resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

VPC Subnets

Lists all VPC subnets in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a VPC subnet in the project and returns the created subnet.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

VPCSubnetPostRequest is the request type for POST requests to the VPC Subnet endpoint.

cidr
required
string

Address range for the VPC subnet, in CIDR notation (for example, 172.27.0.0/16).

location
required
string

Location to create the subnet in.

name
required
string

Name for the new VPC subnet.

nat_gateway_enabled
required
boolean

Whether to create a NAT gateway for the subnet.

vpc_network_id
required
string

ID of the VPC network to create the subnet in.

Responses

Request samples

Content type
application/json
{
  • "cidr": "172.27.0.0/16",
  • "location": "us-east",
  • "name": "my-cool-vpc-subnet",
  • "nat_gateway_enabled": true,
  • "vpc_network_id": "36c0b0d9-8b68-4869-addb-227b06b64ee0"
}

Response samples

Content type
application/json
{
  • "subnet": {
    }
}

Deletes a VPC subnet from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC subnet.

vpc_subnet_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC subnet.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single VPC subnet in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC subnet.

vpc_subnet_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC subnet.

Responses

Response samples

Content type
application/json
{
  • "cidr": "121.0.0.0/24",
  • "id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc",
  • "location": "us-northcentraleast1-a",
  • "name": "my-subnet",
  • "nat_gateways": [
    ],
  • "vpc_network_id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc"
}

Updates a VPC subnet in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the VPC subnet.

vpc_subnet_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VPC subnet.

Request Body schema: application/json
required

VPCSubnetPatchRequest is the request type for PATCH requests to the VPC Subnets endpoint.

name
required
string

New name for the VPC subnet.

nat_gateway_action
string
Enum: "enable" "disable"

Action to take on the subnet's NAT gateway. "enable" creates a NAT gateway if one does not exist; "disable" deletes the NAT gateway if one exists. If omitted, the subnet's NAT gateway is left unchanged. enable NATGatewayActionEnable disable NATGatewayActionDisable

Responses

Request samples

Content type
application/json
{
  • "name": "my-cool-vpc-subnet",
  • "nat_gateway_action": "enable"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

VPC Subnet Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the VPC Networks resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the VPC Subnet resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

IB Partitions

Lists all InfiniBand partitions in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates an InfiniBand partition in the project and returns the created InfiniBand partition.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

IBPartitionsPostRequestV1 is the request type for POST requests to the IB Partitions endpoint.

ib_network_id
required
string

ID of the InfiniBand network to create the partition in.

name
required
string

Name for the new InfiniBand partition.

Responses

Request samples

Content type
application/json
{
  • "ib_network_id": "36c0b0d9-8b68-4869-addb-227b06b64ee0",
  • "name": "my-ib-partition"
}

Response samples

Content type
application/json
{
  • "ib_network_id": "36c0b0d9-8b68-4869-addb-227b06b64ee0",
  • "id": "44701f9e-845c-4005-9240-adee6401b8d3",
  • "name": "my-ib-partition"
}

Deletes an InfiniBand partition from the project and returns an empty response.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the InfiniBand partition.

ib_partition_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the InfiniBand partition.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Returns details for a single InfiniBand partition in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the InfiniBand partition.

ib_partition_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the InfiniBand partition.

Responses

Response samples

Content type
application/json
{
  • "ib_network_id": "36c0b0d9-8b68-4869-addb-227b06b64ee0",
  • "id": "44701f9e-845c-4005-9240-adee6401b8d3",
  • "name": "my-ib-partition"
}

IB Networks

Lists all InfiniBand networks and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Returns details for a single InfiniBand network.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

ib_network_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the InfiniBand network.

Responses

Response samples

Content type
application/json
{
  • "capacities": [
    ],
  • "id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc",
  • "location": "us-east",
  • "name": "ib-network-1"
}

Load Balancers

Lists all external load balancers in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the external load balancers.

query Parameters
location
string
Example: location=us-east1

Filters results to external load balancers in this location.

vpc_network_id
string
Example: vpc_network_id=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Filters results to external load balancers in this VPC network.

name
string
Example: name=my-loadbalancer-test

Filters results to external load balancers with this name.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates an external load balancer in the project and returns the async operation.

This endpoint creates a new external load balancer in the specified project. The request must include the VPC ID, name, location, and at least one listen port with its associated backends.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID to which the external load balancer belongs.

Request Body schema: application/json
required

Request body for creating the external load balancer.

object (HealthCheckOptionsExternalLB)

HealthCheckOptionsExternalLB defines the health check configuration.

required
Array of objects (ListenPortAndBackend)

Listen ports and associated backends configuration.

location
required
string

Location of the External Load Balancer.

name
required
string

Name of the External Load Balancer.

protocol
required
string

The protocol of the External Load Balancer.

vpc_id
required
string

ID of the VPC network this External Load Balancer belongs to.

Responses

Request samples

Content type
application/json
{
  • "health_check_options": {
    },
  • "listen_ports_and_backends": [
    ],
  • "location": "us-east1",
  • "name": "my-external-load-balancer",
  • "protocol": "LOAD_BALANCER_PROTOCOL_TCP",
  • "vpc_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes an external load balancer from the project and returns the async operation.

This endpoint deletes an external load balancer identified by its ID within the specified project. No request body or query parameters are required.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID to which the external load balancer belongs.

load_balancer_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The ID of the external load balancer to delete.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single external load balancer in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the external load balancer.

load_balancer_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the external load balancer.

Responses

Response samples

Content type
application/json
{
  • "health_check_options": {
    },
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "listen_ports_and_backends": [
    ],
  • "location": "us-northcentral1-a",
  • "name": "my-external-load-balancer",
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "protocol": "tcp",
  • "vip": "192.168.1.1",
  • "vpc_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab"
}

Updates an external load balancer in the project and returns the async operation.

This endpoint updates the configuration of an existing external load balancer. The request must include the load balancer ID and optionally the health check options and/or listen ports and associated backends.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID to which the external load balancer belongs.

load_balancer_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The ID of the external load balancer to update.

Request Body schema: application/json
required

Request body for updating the external load balancer.

object (HealthCheckOptionsExternalLB)

HealthCheckOptionsExternalLB defines the health check configuration.

required
Array of objects (ListenPortAndBackend)

Listen ports and associated backends configuration.

Responses

Request samples

Content type
application/json
{
  • "health_check_options": {
    },
  • "listen_ports_and_backends": [
    ]
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Load Balancer Operations

Get status of asynchronous operations.

This resource retrieves information about the status of asynchronous operations for external load balancers. Query parameters can be used to filter results by external load balancer ID or operation state.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation.

This resource retrieves information about the status of an asynchronous operation for an external load balancer. Only information about the operation specified in the path will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Internal Load Balancers

Lists all load balancers in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a load balancer in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json
required

Settings for a new internal load balancer.

algorithm
required
string

Load balancing algorithm used to distribute traffic across destinations (for example, random).

required
Array of objects (NetworkTarget)

Backend targets the load balancer forwards traffic to, given as CIDR blocks or resource IDs.

object (HealthCheckOptions)

Health check settings for an internal load balancer's backends. Send each number as a string.

location
required
string

Location to create the load balancer in.

name
required
string

Name for the new load balancer.

required
Array of objects (LoadBalancerNetworkInterface)

Network interfaces to attach the load balancer to.

protocols
required
Array of strings

Network protocols the load balancer handles. Currently only one of: tcp, udp.

type
string

Type of the load balancer (for example, internal_ipv4).

Responses

Request samples

Content type
application/json
{
  • "algorithm": "random",
  • "destinations": [
    ],
  • "health_check": {
    },
  • "location": "us-northcentraleast1-a",
  • "name": "my-load-balancer",
  • "network_interfaces": [
    ],
  • "protocols": [
    ],
  • "type": "internal_ipv4"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a load balancer from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the load balancer.

load_balancer_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the load balancer.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single load balancer in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the load balancer.

load_balancer_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the load balancer.

Responses

Response samples

Content type
application/json
{
  • "algorithm": "random",
  • "destinations": [
    ],
  • "health_check": {
    },
  • "id": "1ce839b7-3fab-46f9-8e54-7a6bb4ac1ffc",
  • "ips": [
    ],
  • "location": "us-northcentraleast1-a",
  • "name": "my-load-balancer",
  • "network_interfaces": [
    ],
  • "protocols": [
    ],
  • "type": "internal_ipv4"
}

Updates a load balancer in the project and returns the async operation.

To disable health checking, pass "health_check": {"port": 0}.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the load balancer.

load_balancer_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the load balancer.

Request Body schema: application/json
required

Changes to make to an internal load balancer; fields you leave out keep their current values.

Array of objects (NetworkTarget)

Backend targets the load balancer forwards traffic to, given as CIDR blocks or resource IDs.

object (HealthCheckOptions)

Health check settings for an internal load balancer's backends. Send each number as a string.

name
string

New name for the load balancer.

Responses

Request samples

Content type
application/json
{
  • "destinations": [
    ],
  • "health_check": {
    },
  • "name": "my-load-balancer"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Internal Load Balancer Operations

Get status of asynchronous operations

This resource retrieves information about the status of asynchronous operations initiated by the Load Balancers resource. All operations that are either in-flight or completed but not yet queried will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the Load Balancer resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Kubernetes Clusters

Lists all Kubernetes clusters in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the clusters.

query Parameters
cluster_id
string
Example: cluster_id=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Filters results to the cluster with this ID.

cluster_name
string
Example: cluster_name=my-first-cluster

Filters results to the cluster with this name.

cluster_search_names
Array of strings
Example: cluster_search_names=a40.2x,a100.8x

Filters results to clusters whose name matches one of these search names.

locations
Array of strings
Example: locations=us-east1,us-northcentral1

Filters results to clusters in these locations.

states
Array of strings
Example: states=STATE_RUNNING

Filters results to clusters in these states.

versions
Array of strings
Example: versions=1.30

Filters results to clusters running these versions.

sort
string
Example: sort=name, -name

Field to sort results by; prefix with '-' for descending order.

show_inactive
boolean
Example: show_inactive=true

Whether to include inactive clusters in the results.

next_token
string
Example: next_token=bXktZmlyc3Qtdm0

Base64-encoded token for the next page of results.

prev_token
string
Example: prev_token=bXktZmlyc3Qtdm0

Base64-encoded token for the previous page of results.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a Kubernetes cluster in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to create the cluster in.

Request Body schema: application/json
required

KubernetesClusterPostRequest defines the specifications of the cluster to be created.

add_ons
Array of strings

List of add-ons to include in the new cluster.

object

Extra arguments to pass to the kube-apiserver control plane component.

object (KubernetesClusterAuthConfig)

KubernetesClusterAuthConfig defines authentication configuration for the cluster. This configures how users authenticate to the Kubernetes API server. example: {"oidc": {"issuer_url": "https://oauth2.example.com", "client_id": "kubernetes"}}

cluster_cidr
string

Range of IP addresses allocated to pods scheduled on worker nodes, in CIDR notation.

configuration
string
Value: "ha"

Configuration setting is deprecated, defaults to HA configuration.

object

Extra arguments to pass to the kube-controller-manager control plane component.

object

Arguments for the kubectl oidc-login plugin.

location
required
string

Location to create the Kubernetes cluster in.

name
required
string

Name of the Kubernetes cluster.

node_cidr_mask_size
integer <int32>

Mask size for the cluster CIDR.

private
boolean

Whether the cluster is private (without a public IP). Defaults to false.

routing_mode
string
Default: "overlay"
Enum: "overlay" "native"

How pod traffic is routed for the cluster. Defaults to overlay when unspecified. In native mode, cluster_cidr is the pod range reserved from the cluster's VPC as a prefix reservation on your behalf: it must lie inside the VPC's CIDR and overlap no subnet and no other reservation, validated at create time. Immutable after create.

object

Extra arguments to pass to the kube-scheduler control plane component.

service_cluster_ip_range
string

Range of IP addresses allocated to Kubernetes services, in CIDR notation.

subnet_id
string

ID of the subnet to create the cluster in. Must be in the location specified. If not provided, the default subnet for the location is used, if there is one.

version
required
string

Version of the Crusoe Kubernetes image to create the cluster with.

Responses

Request samples

Content type
application/json
{
  • "add_ons": [
    ],
  • "apiserver_extra_args": {
    },
  • "auth_config": {
    },
  • "cluster_cidr": "10.233.0.0/18",
  • "configuration": "ha",
  • "controller_manager_extra_args": {
    },
  • "kubelogin_args": {
    },
  • "location": "us-northcentral1-a",
  • "name": "my-kubernetes-cluster",
  • "node_cidr_mask_size": 24,
  • "private": true,
  • "routing_mode": "native",
  • "scheduler_extra_args": {
    },
  • "service_cluster_ip_range": "10.233.0.0/18",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "version": "1.29.5-crusoe.0"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Reports where a cluster's control plane would run, per location.

For each location, reports whether the control plane would be hosted by Crusoe or run on VMs in the project, and where it runs on VMs, which VM types are eligible. Creates nothing. Use it to decide where a control-plane capacity check applies before offering cluster creation, and which VM types to check.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project the cluster would be created in.

query Parameters
locations
Array of strings
Example: locations=us-east1-a,us-northcentral1-a

Locations to report on, comma-separated. Omit to report on every location.

Responses

Response samples

Content type
application/json
{
  • "kubernetes_versions": [
    ],
  • "locations": [
    ]
}

Deletes a Kubernetes cluster from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single Kubernetes cluster in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

Responses

Response samples

Content type
application/json
{
  • "add_ons": [
    ],
  • "apiserver_extra_args": {
    },
  • "auth_config": {
    },
  • "cluster_cidr": "10.233.0.0/18",
  • "configuration": "ha",
  • "control_plane_generation": 2,
  • "controller_manager_extra_args": {
    },
  • "created_at": "2021-12-03T19:58:34Z",
  • "dns_name": "my-kubernetes-cluster.crusoecloudcompute.com",
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "kubelogin_args": {
    },
  • "location": "us-northcentral1-a",
  • "name": "my-kubernetes-cluster",
  • "node_cidr_mask_size": 24,
  • "node_pools": [
    ],
  • "private": true,
  • "project_id": "9c8b7d6e-5f4a-3b2c-1e0f-2a3b4c5d6e7f",
  • "routing_mode": "native",
  • "scheduler_extra_args": {
    },
  • "service_cluster_ip_range": "10.233.0.0/18",
  • "state": "STATE_RUNNING",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "version": "1.29.5-crusoe.0"
}

Updates a Kubernetes cluster in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

Request Body schema: application/json
required

KubernetesClusterPatchRequest defines the specifications of the cluster to be updated.

object

New extra arguments to pass to the kube-apiserver control plane component. If absent, existing args are preserved. If present but empty, args are cleared.

configuration
string
Value: "ha"

Configuration setting is deprecated, defaults to HA configuration.

object

New extra arguments to pass to the kube-controller-manager control plane component. If absent, existing args are preserved. If present but empty, args are cleared.

required
object

New arguments for the kubectl oidc-login plugin.

object

New extra arguments to pass to the kube-scheduler control plane component. If absent, existing args are preserved. If present but empty, args are cleared.

Responses

Request samples

Content type
application/json
{
  • "apiserver_extra_args": {
    },
  • "configuration": "ha",
  • "controller_manager_extra_args": {
    },
  • "kubelogin_args": {
    },
  • "scheduler_extra_args": {
    }
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns credentials for the user to authenticate to the cluster.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

query Parameters
auth_type
string
Enum: "oidc" "admin_cert"

Type of credentials to return: oidc or admin_cert.

Responses

Response samples

Content type
application/json
{
  • "cluster_ca_certificate": "-----BEGIN CERTIFICATE----- MIIBszCCAVmgAwIBAgIU... -----END CERTIFICATE-----",
  • "cluster_name": "my-kubernetes-cluster",
  • "kube_config": "{apiVersion: v1, kind: Config, clusters: [{name: my-kubernetes-cluster, cluster: {server: \"https://my-kubernetes-cluster-e384a1de.us-east1-a.cmk.crusoecloudcompute.com\", certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCg==}}], users: [{name: crusoe-client-admin-my-kubernetes-cluster, user: {client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCg==, client-key-data: LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCg==}}], contexts: [{name: my-kubernetes-cluster, context: {cluster: my-kubernetes-cluster, user: crusoe-client-admin-my-kubernetes-cluster}}], current-context: my-kubernetes-cluster}",
  • "user_client_certificate": "-----BEGIN CERTIFICATE----- MIIC1TCCAb2gAwIBAgIU... -----END CERTIFICATE-----",
  • "user_client_key": "-----BEGIN EC PRIVATE KEY----- MHcCAQEEIA... -----END EC PRIVATE KEY-----",
  • "user_name": "crusoe-client-admin-my-kubernetes-cluster"
}

Kubernetes Cluster Operations

Get status of asynchronous operations

This resource retrieves information about the status of an asynchronous operation initiated by the Kubernetes Cluster resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the Kubernetes Cluster resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Kubernetes Node Pools

Lists all Kubernetes node pools in the project and returns their details.

Results can be narrowed to a single cluster with the cluster_id query parameter.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pools.

query Parameters
cluster_id
string
Example: cluster_id=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Filters results to node pools in this cluster.

sort
string
Example: sort=created_at, -created_at

Field to sort results by; prefix with '-' for descending order.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a Kubernetes node pool in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to create the node pool in.

Request Body schema: application/json
required

A node pool to create in a Kubernetes cluster.

object (KubernetesNodePoolAutoscalingConfig)

KubernetesNodePoolAutoscalingConfig defines the Cluster Autoscaler policy for a node pool.

cluster_id
required
string

ID of the cluster the new node pool belongs to.

consent_mode
string
Enum: "auto" "propose" "detect_only" "off"

Remediation consent posture for the node pool: auto, propose, or off. Omitted means auto. detect_only is not yet available.

count
required
integer <int64>

Desired number of nodes in the node pool.

ephemeral_storage_for_containerd
boolean

Whether the first local ephemeral NVMe disk is used for containerd and kubelet ephemeral storage. On supported node pool versions the node advertises that disk's capacity as its ephemeral-storage.

ib_partition_id
string

Deprecated: Use transport_partition_id instead.

name
required
string

Name of the Kubernetes node pool.

object

Labels to assign to nodes in the new node pool.

node_pool_version
string

Version of the Kubernetes node pool.

Array of objects (KubernetesNodeTaint)

Taints applied to nodes in the node pool. Each (key, effect) pair must be unique within the list. The list may contain at most 50 taints.

nvlink_domain_id
string

NVLink domain ID to assign to nodes in the new node pool.

placement_policy
string
Default: "unspecified"
Enum: "spread" "unspecified"

Placement policy for VMs in the node pool: spread or unspecified. Ignored for GPU node types (one VM per host is already enforced for GPUs).

product_name
required
string

Product name of the VM type to create within the new node pool.

public_ip_type
string
Default: "dynamic"
Enum: "dynamic" "static" "none"

Public IP type for the node pool's nodes: dynamic, static, or none.

object (ReservationSpecification)

How new VMs use reservations: set id to use a specific one, or set selection_strategy.

ssh_public_key
string

SSH public key to use for all VMs created from the new node pool.

subnet_id
string

ID of the subnet to create the node pool in. Must be in the location of the cluster if specified. If not provided, the default subnet for the location is used, if there is one.

transport_partition_id
string

ID of the InfiniBand or RoCE partition to create the node pool in. Must be in the location of the cluster if specified.

object (KubernetesNodePoolUpdateSettings)

KubernetesNodePoolUpdateSettings configures how update operations may act on a node pool's existing nodes.

Responses

Request samples

Content type
application/json
{
  • "autoscaling_config": {
    },
  • "cluster_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "consent_mode": "propose",
  • "count": 4,
  • "ephemeral_storage_for_containerd": true,
  • "ib_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "name": "my-kubernetes-node-pool",
  • "node_labels": {
    },
  • "node_pool_version": "1.30",
  • "node_taints": [
    ],
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "placement_policy": "spread",
  • "product_name": "a100.2x",
  • "public_ip_type": "dynamic",
  • "reservation_specification": {
    },
  • "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "transport_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "update_settings": {
    }
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Deletes a Kubernetes node pool from the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Returns details for a single Kubernetes node pool in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

Responses

Response samples

Content type
application/json
{
  • "autoscaling_config": {
    },
  • "cluster_id": "9c8b7d6e-5f4a-3b2c-1e0f-2a3b4c5d6e7f",
  • "consent_mode": "propose",
  • "count": 4,
  • "created_at": "2021-12-03T19:58:34Z",
  • "current": 3,
  • "ephemeral_storage_for_containerd": true,
  • "health": {
    },
  • "id": "0a1b3c2d-5e6f-8b9c-4d7e-1a2b3c4d5e6f",
  • "image_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "instance_details": [
    ],
  • "instance_ids": [
    ],
  • "name": "crusoe-node-pool",
  • "node_ephemeral_storage": "128Gi",
  • "node_labels": {
    },
  • "node_pool_generation": 2,
  • "node_taints": [
    ],
  • "nvlink_domain_id": "550e8400-e29b-41d4-a716-446655440000",
  • "project_id": "9c8b7d6e-5f4a-3b2c-1e0f-2a3b4c5d6e7f",
  • "public_ip_type": "dynamic",
  • "reservation_id": "ca39e669-47ee-456b-968d-303234fbf99f",
  • "ssh_public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGk3b8x7Qm2pR9vT4uYwZ1aB6cD8eF0gH2iJ4kL6mN8o",
  • "state": "STATE_RUNNING",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "transport_partition_id": "b1f86d1b-42d2-490d-adb0-cc1029abf653",
  • "type": "a100.2x",
  • "update_settings": {
    },
  • "updated_at": "2021-12-03T19:58:34Z"
}

Updates a Kubernetes node pool in the project and returns the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

Request Body schema: application/json
required

Changes to make to a node pool. Fields you leave out keep their current values.

action
required
string
Default: "UPDATE"
Enum: "RESERVE" "UNRESERVE" "UPDATE"

Action to perform on the node pool: RESERVE, UNRESERVE, or UPDATE. RESERVE and UNRESERVE operations are done synchronously, and so will have succeeded with a 200 response. Defaults to UPDATE if no action is specified.

object (KubernetesNodePoolAutoscalingConfig)

KubernetesNodePoolAutoscalingConfig defines the Cluster Autoscaler policy for a node pool.

consent_mode
string
Enum: "auto" "propose" "detect_only" "off"

New remediation consent posture for the node pool: auto, propose, or off. Omitted or null leaves the stored mode unchanged. detect_only is not yet available.

count
integer or null <int64>

New desired number of nodes in the node pool.

ephemeral_storage_for_containerd
boolean or null

Whether the first local ephemeral NVMe disk is used for containerd and kubelet ephemeral storage. On supported node pool versions the node advertises that disk's capacity as its ephemeral-storage.

object or null

New labels for the node pool. Labels provided in the PATCH request do not modify existing nodes, but apply to any newly created nodes.

node_pool_version
string or null

New Kubernetes node pool version for newly created VMs.

Array of objects or null (KubernetesNodeTaint)

New taints for nodes in this node pool. Taints provided in the PATCH request do not modify existing nodes, but apply to any newly created nodes. This field has three behaviors: Omitted (null): existing taints are left unchanged. Empty array ([]): all existing taints are cleared. Non-empty array: existing taints are fully replaced by the provided list. Each (key, effect) pair in the list must be unique. Up to 50 taints are allowed. See KubernetesNodeTaint for per-field format rules.

reservation_id
string or null

New reservation ID for the node pool.

ssh_public_key
string or null

New SSH public key to use for all VMs created from this node pool.

object (KubernetesNodePoolUpdateSettings)

KubernetesNodePoolUpdateSettings configures how update operations may act on a node pool's existing nodes.

Responses

Request samples

Content type
application/json
{
  • "action": "UPDATE",
  • "autoscaling_config": {
    },
  • "consent_mode": "off",
  • "count": 4,
  • "ephemeral_storage_for_containerd": true,
  • "node_labels": {
    },
  • "node_pool_version": "1.30",
  • "node_taints": [
    ],
  • "reservation_id": "ca39e669-47ee-456b-968d-303234fbf99f",
  • "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCspdG97nTS/h4PEPq2QD2RYVK1jxFXLFZuSDMI8Rtxpucl6LDZLOghEYoj13lxKQnGtcsM3Iu68lh+4YgZe7CbI6cc/TxPbeAX2HJTqDh0J7+GAlLBHK9tsepC0QlhIDiazJptOPDZ3cesCBXdxSnzEbhDaqgYOfl393cp1fCeOKRIDWEP3H9CM25dCbWF66sTDziLsojJ9dMnxhgKm9/JkZc5gYncLT/2Ey+VWfV9Fs65mGUrBbQOn3c8S/nEk6WRcYn4PFOnIp0Mz+Chb50iCJrW677pllLnkTGSU+4c0H9J5z4HDG0I+91RoiQ0QsayFTYO1JtSn+THLuq98V+D",
  • "update_settings": {
    }
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Cancels an in-progress rotation of a Kubernetes node pool in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

Responses

Response samples

Content type
application/json
{
  • "no_rotate_in_progress": true
}

Lists the Kubernetes Nodes backing a node pool and returns their details.

Complements the node pool GET, which returns pool-level state, by exposing the individual Nodes that back the pool, including the operation currently acting on each node. Results are paginated: next_token is empty on the last page and prev_token is empty on the first.

The status and health-code filters narrow the list, each with an exclude counterpart. A filtered response also carries total_count, the number of matching nodes across every page, which is what lets a caller show a section heading without walking the pages.

A request that admits provisioning nodes also carries upcoming_count: the number of nodes an in-progress operation is attempting to provision that have no entry in the list yet. It is measured by the same read as the nodes themselves, so the count and the list always agree.

sort takes the same field-and-direction form as the other list endpoints. Beyond the node's own columns it accepts health_issues, which orders on whether a node carries any health issue at all: sort=-health_issues puts the nodes needing attention on the first page, and sort=health_issues puts the healthy ones there. Health is a live attribute, so a node whose health changes between page fetches can shift across a page boundary mid-walk.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

query Parameters
limit
integer <int64>
Example: limit=50

Maximum number of nodes to return per page.

next_token
string
Example: next_token=bXktbGFzdC1ub2Rl

Base64-encoded token for the next page of results, from a previous response's next_token.

prev_token
string
Example: prev_token=bXktZmlyc3Qtbm9kZQ

Base64-encoded token for the previous page of results, from a previous response's prev_token.

status
string
Example: status=PROVISIONING

Comma-separated node statuses to include. Values are the ones the response serves, e.g. PROVISIONING. Omit to include every status. An unrecognized value is rejected rather than ignored.

exclude_status
string
Example: exclude_status=PROVISIONING

Comma-separated node statuses to exclude, applied after status. Use this to ask for everything-else, which keeps working when a new status is added.

health_code
string
Example: health_code=VM_STOPPED

Comma-separated node health issue codes to include: a node matches when it carries at least one of them, e.g. VM_STOPPED.

exclude_health_code
string
Example: exclude_health_code=VM_STOPPED

Comma-separated node health issue codes to exclude: a node is dropped when it carries any of them.

sort
string
Example: sort=-health_issues, name, -created_at

Field to sort results by; prefix with '-' for descending order. Beyond the node's own columns, health_issues sorts on whether a node carries any health issue at all, so sorting it descending puts the nodes needing attention first. Omitted, the list keeps its default order. An unrecognized field is rejected rather than ignored.

Responses

Response samples

Content type
application/json
{
  • "next_token": "bXktbGFzdC1ub2Rl",
  • "nodes": [
    ],
  • "prev_token": "bXktZmlyc3Qtbm9kZQ",
  • "total_count": 3,
  • "upcoming_count": 2
}

Returns details for a single Kubernetes Node backing a node pool.

A current snapshot of the Node as the cluster reports it.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

node_id
required
string
Example: 53f9c6f7-b7ec-4041-a790-b684ce14e2ae

ID of the node. Node IDs are the IDs of the VMs backing the nodes.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2026-05-21T18:35:25Z",
  • "health_issues": [
    ],
  • "instance_id": "53f9c6f7-b7ec-4041-a790-b684ce14e2ae",
  • "name": "np-ef50dfc2-2.us-east1-a.compute.internal",
  • "status": "READY",
  • "version": "1.33.4-cmk.20"
}

Returns the rotation status of a Kubernetes node pool in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

Responses

Response samples

Content type
application/json
{
  • "out_of_sync_instances": [
    ],
  • "state": "STATE_ROTATING"
}

Starts a rotation of a Kubernetes node pool in the project and returns the async operation.

A successful response returns an async operation you can poll.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

Request Body schema: application/json
required

Defines how many nodes a node pool rotation replaces at a time and starts the rotation.

count
required
integer <int64>

Number of nodes to replace at a time when the strategy is 'count'.

percentage
required
integer <int64>

Percentage of nodes to replace at a time when the strategy is 'percentage'.

strategy
required
string
Enum: "count" "percentage"

Strategy for the rotation to perform: count or percentage.

Responses

Request samples

Content type
application/json
{
  • "count": 2,
  • "percentage": 20,
  • "strategy": "count"
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Lists all VMs in a Kubernetes node pool and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the node pool.

node_pool_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the node pool.

query Parameters
limit
string
Example: limit=20

Maximum number of results to return per page.

sort
string
Example: sort=name

Field to sort results by; prefix with '-' for descending order.

next_token
string
Example: next_token=bXktZmlyc3Qtdm0

Base64-encoded token for the next page of results.

prev_token
string
Example: prev_token=bXktZmlyc3Qtdm0

Base64-encoded token for the previous page of results.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "next_token": "bXktbGFzdC12bQ",
  • "prev_token": "bXktZmlyc3Qtdm0"
}

Kubernetes Node Pool Operations

Get status of asynchronous operations

This resource retrieves information about the status of an asynchronous operation initiated by the Kubernetes Node Pool resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation

This resource retrieves information about the status of an asynchronous operation initiated by the Kubernetes Node Pool resource. Only information about the operation specified in the path will be returned, or an HTTP 403 will be returned if the operation does not exist, was not initiated by the logged in user, or has expired.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Kubernetes Versions

Lists all available Kubernetes versions in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to list versions for.

query Parameters
show_deprecated
boolean
Example: show_deprecated=true

Whether to include deprecated versions in the results.

product_name
string
Example: product_name=a100.2x

Filters results to versions available for this VM product.

Responses

Response samples

Content type
application/json
{
  • "kubernetes_cluster_versions": [
    ],
  • "kubernetes_node_pool_versions": [
    ]
}

Kubernetes Addons

Lists the add-ons available to install for a given Kubernetes version.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
kubernetes_version
required
string
Example: kubernetes_version=1.34

Kubernetes version (major.minor) to list available add-ons for.

page_size
integer <int64>
Example: page_size=50

Maximum number of results per page (default 20, max 500).

page_token
string
Example: page_token=bXktZmlyc3Qtdm0

Base64-encoded token for the next page of results.

Responses

Response samples

Content type
application/json
{
  • "addons": [
    ],
  • "next_page_token": "bXktZmlyc3Qtdm0"
}

Lists the add-ons installed on a Kubernetes cluster, including each add-on's reconciled status.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

Responses

Response samples

Content type
application/json
{
  • "addons": [
    ]
}

Installs one or more add-ons on a Kubernetes cluster.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster to install the add-ons on.

Request Body schema: application/json
required

KubernetesAddonsPostRequest is the request body for installing add-ons on a cluster.

required
Array of objects (KubernetesAddonSpec)

Add-ons to install.

Array
addon_type
required
string

Catalog identifier of the add-on.

version
string

Version to install. If omitted, the catalog default for the cluster's Kubernetes version is used.

Responses

Request samples

Content type
application/json
{
  • "addons": [
    ]
}

Response samples

Content type
application/json
{
  • "addons": [
    ],
  • "operation_id": "20a1e053-d9fa-4c70-bef1-95cf6c7741f8"
}

Lists the add-ons available to install on a cluster, using the cluster's own Kubernetes version.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

query Parameters
page_size
integer <int64>
Example: page_size=50

Maximum number of results per page (default 20, max 500).

page_token
string
Example: page_token=bXktZmlyc3Qtdm0

Base64-encoded token for the next page of results.

Responses

Response samples

Content type
application/json
{
  • "addons": [
    ],
  • "next_page_token": "bXktZmlyc3Qtdm0"
}

Removes an add-on from a Kubernetes cluster.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

addon_type
required
string
Example: cert-manager

Catalog identifier of the add-on to remove.

Responses

Response samples

Content type
application/json
{
  • "operation_id": "d7a3be31-5295-4889-94df-4747a86a078d"
}

Kubernetes Support Access

Returns support access settings for a Kubernetes cluster in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

Responses

Response samples

Content type
application/json
{
  • "access_enabled": true,
  • "active_requests": [
    ],
  • "enabled_roles": [
    ]
}

Updates support access settings for a Kubernetes cluster in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the cluster.

Request Body schema: application/json
required

KubernetesClusterSupportSettingsRequest defines the request for updating support access settings for a Kubernetes cluster.

access_enabled
required
boolean

Master toggle for whether support access is enabled.

enabled_roles
Array of strings

Support access roles to enable.

Responses

Request samples

Content type
application/json
{
  • "access_enabled": true,
  • "enabled_roles": [
    ]
}

Response samples

Content type
application/json
{
  • "access_enabled": true,
  • "active_requests": [
    ],
  • "enabled_roles": [
    ]
}

AutoClusters

Retrieve the AutoClusters configuration for a specific cluster.

Returns the cluster's Autoclusters configuration including alert handling defaults and any customer overrides.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Project ID

cluster_id
required
string
Example: e384a1de-81f8-4cb2-b312-a7d88a9bf9cb

Cluster ID

Responses

Response samples

Content type
application/json
{
  • "fallback_to_project_reservations": false,
  • "remediation_configs": [
    ],
  • "updated_at": "2025-01-15T10:30:00Z"
}

Update the AutoClusters configuration for a specific cluster.

Allows setting or removing remediation overrides and configuring project reservation fallback.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Project ID

cluster_id
required
string
Example: e384a1de-81f8-4cb2-b312-a7d88a9bf9cb

Cluster ID

Request Body schema: application/json
required

Request body

fallback_to_project_reservations
required
boolean

Whether to use project's unused reservations as fallback. If not set, existing value is preserved.

remove_remediation_overrides
Array of strings

Remediation overrides to remove (revert to system defaults).

Array of objects (RemediationOverrideRequest)

Remediation overrides to add or update. These will override the system defaults.

Responses

Request samples

Content type
application/json
{
  • "fallback_to_project_reservations": true,
  • "remove_remediation_overrides": [
    ],
  • "set_remediation_overrides": [
    ]
}

Response samples

Content type
application/json
{
  • "fallback_to_project_reservations": false,
  • "remediation_configs": [
    ],
  • "updated_at": "2025-01-15T10:30:00Z"
}

Trigger VM remediation.

Trigger remediation for a VM within a Kubernetes cluster with AutoClusters add-on enabled. This creates an AutoClusters operation and returns an asynchronous operation handle. Currently, this defaults to performing a replace node operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the cluster.

cluster_id
required
string
Example: e384a1de-81f8-4cb2-b312-a7d88a9bf9cb

ID of the Kubernetes cluster the VM belongs to. The cluster must have AutoClusters enabled and can't have a control_plane_generation of 2.

vm_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the VM to remediate. It must be a node in the cluster.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

AutoCluster Operations

Retrieve information about AutoCluster operations for a project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Project ID

query Parameters
cluster_id
string
Example: cluster_id=e384a1de-81f8-4cb2-b312-a7d88a9bf9cb

Filters results to operations on the node pools of the Kubernetes cluster with this ID.

operation_id
string
Example: operation_id=5f9c5d6a-2d15-4a2c-8a2a-9b0f4e1d3b21

Filters results to the operation with this ID.

state
string
Example: state=IN_PROGRESS

Filters results to operations in this state.

operation_type
string
Example: operation_type=RESET_VM

Filters results to operations of this type: REPLACE_NODE, RESET_VM, RESET_GPU, or DETECT_ONLY.

remediation_state
string
Example: remediation_state=PREPARED

Filters results to operations at this remediation stage: PREPARED (preparation, such as draining the node, is done), VM_REMEDIATED (the VM is remediated and healthy), PENDING (paused, and state is PENDING), or COMPLETED (skipped, and state is SKIPPED).

lower_bound
string
Example: lower_bound=2025-10-01T00:00:00Z

Filters results to operations that completed after this time, in RFC 3339 format. Operations still in progress always match.

upper_bound
string
Example: upper_bound=2025-10-31T23:59:59Z

Filters results to operations that started before this time, in RFC 3339 format.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Retrieve information about a specific AutoCluster operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: e384a1de-81f8-4cb2-b312-a7d88a9bf9cb

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Slurm Clusters

Retrieve information about slurm clusters belonging to the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm clusters.

query Parameters
names
Array of strings
Example: names=my-slurm-cluster

Filters results to Slurm clusters with these names. Names must match exactly.

location
string
Example: location=us-east-1

Filters results to Slurm clusters in this location.

state
string
Example: state=running

Filters results to Slurm clusters in this state.

slurm_cluster_ids
Array of strings
Example: slurm_cluster_ids=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Filters results to the Slurm clusters with these IDs.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a new slurm cluster owned by the logged in user.

A successful response from this resource will contain the async operation ID.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

Request Body schema: application/json
required

SlurmClusterPostRequest defines the specifications of the cluster to be created.

home_volume_size
string
Default: "\"10Ti\""

Size of the shared home volume as a Kubernetes quantity string (e.g. "10Ti"). Set empty to omit.

location
required
string

Location to create the Slurm cluster in.

login_node_type
string
Default: "c1a.8x"

Node type to use for Slurm Controller and Login.

login_replicas
integer <int64> >= 1
Default: 1

Number of replica pods to use for LoginSet.

name
required
string

Name of the Slurm cluster.

root_ssh_pub_keys
required
Array of strings

An array of SSH public keys which will be used to allow access as root user. This will be mounted as the "root/.ssh/authorized_keys" file.

subnet_id
string

The ID of the subnet to deploy the Slurm cluster into.

object (SlurmClusterInternalConfig)

Reserved for Crusoe support. Leave it unset unless Crusoe support asks you to set it.

Responses

Request samples

Content type
application/json
{
  • "home_volume_size": "10Ti",
  • "location": "us-northcentral1-a",
  • "login_node_type": "c1a.8x",
  • "login_replicas": 2,
  • "name": "my-slurm-cluster",
  • "root_ssh_pub_keys": [
    ],
  • "subnet_id": "cc83ce7b-685c-4775-bdf9-d9fe1fe6b782",
  • "internal_config": {
    }
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Delete a slurm cluster that the logged in user owns.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Retrieve information about a particular slurm cluster belonged to the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster.

Responses

Response samples

Content type
application/json
{
  • "home_volume_size": "10Ti",
  • "location": "us-northcentral1-a",
  • "login_node_type": "c1a.8x",
  • "login_replicas": 2,
  • "name": "my-slurm-cluster",
  • "root_ssh_pub_keys": [
    ],
  • "subnet_id": "cc83ce7b-685c-4775-bdf9-d9fe1fe6b782",
  • "issues": [
    ],
  • "login_node_endpoint": "203.0.113.10",
  • "nodesets": [
    ],
  • "state": "PROVISIONING",
  • "created_at": "2021-12-03T19:58:34Z",
  • "id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "version": "25.11.2"
}

Slurm Cluster Operations

Get status of asynchronous operations.

This resource retrieves information about the status of asynchronous operations for slurm clusters. Query parameters can be used to filter results by slurm cluster ID or operation state.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation.

This resource retrieves information about the status of an asynchronous operation for a slurm cluster. Only information about the operation specified in the path will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Slurm Nodesets

Retrieve information about slurm nodesets belonging to a project or cluster.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodesets.

query Parameters
name
string
Example: name=my-slurm-node-pool

Filters results to the nodeset with this name. The match ignores case.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Create a new slurm nodeset owned by the logged in user.

A successful response from this resource will contain the async operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodeset.

Request Body schema: application/json
required

A nodeset to create in a Slurm cluster.

count
required
integer <int64>

Count of nodes in the nodeset.

name
required
string

Name of the nodeset.

subnet_id
string

ID of the subnet.

transport_partition_id
string

ID of the transport partition.

type
required
string

VM type of the nodeset.

vm_ssh_public_key
string

VM SSH public key.

Responses

Request samples

Content type
application/json
{
  • "count": 4,
  • "name": "my-slurm-nodeset",
  • "subnet_id": "09ae8411-0fbb-411c-898c-2b8f19622ae1",
  • "transport_partition_id": "b1f86d1b-42d2-490d-adb0-cc1029abf653",
  • "type": "a100.2x",
  • "vm_ssh_public_key": "ssh-rsa AAAA..."
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Delete a nodeset that the logged in user owns.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodeset.

nodeset_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the nodeset to delete.

Responses

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Retrieve information about a particular slurm nodeset belonging to the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodeset.

nodeset_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the nodeset.

Responses

Response samples

Content type
application/json
{
  • "count": 2,
  • "created_at": "2021-12-03T19:58:34Z",
  • "id": "784117ff-a439-4958-863e-06c8dfe9d54c",
  • "issues": [
    ],
  • "name": "my-slurm-nodeset",
  • "state": "PROVISIONING",
  • "subnet_id": "cc83ce7b-685c-4775-bdf9-d9fe1fe6b782",
  • "transport_partition_id": "6cc900ba-6da5-43ba-abc7-7bf6471750fb",
  • "type": "h100-80gb-sxm-ib.8x",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "vm_ssh_public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICpuH/fqCFLbAConChyVH6rZzSaxlnHSwQk6qvtPsf5E"
}

Update a nodeset that the logged in user owns.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the Slurm cluster.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodeset.

nodeset_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the nodeset to update.

Request Body schema: application/json
required

The new node count for a nodeset.

count
required
integer <int64>

Count of nodes in the nodeset.

Responses

Request samples

Content type
application/json
{
  • "count": 8
}

Response samples

Content type
application/json
{
  • "operation": {
    }
}

Slurm Nodeset Operations

Get status of asynchronous operations.

This resource retrieves information about the status of asynchronous operations for slurm nodesets. Query parameters can be used to filter results by slurm nodeset ID or operation state.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodesets.

query Parameters
resource_id
string
Example: resource_id=452580d7-41d1-4b63-b4d7-4e4e21e95f96

Filters results to operations on the resource with this ID.

state
Array of strings
Example: state=IN_PROGRESS

Filters results to operations in these states.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Get status of a single asynchronous operation.

This resource retrieves information about the status of an asynchronous operation for a slurm nodeset. Only information about the operation specified in the path will be returned.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the operation.

operation_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the operation.

slurm_cluster_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the Slurm cluster that owns the nodesets.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Locations

Lists all Crusoe Cloud locations usable for resource hosting.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Capacities

Lists available Crusoe Cloud capacity with optional filters on location and product name.

query Parameters
product_name
Array of strings
Example: product_name=[a100.1x, a100.2x]

Filters results to these VM types, such as a100.2x. The request fails if none of the names exists.

location
Array of strings
Example: location=[us-northcentral1-a, us-northcentral1-b]

Filters results to these locations, such as us-northcentral1-a. The request fails if any of them doesn't exist.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Observability

Export metrics in Prometheus text format (default) or OpenMetrics format for scraping.

Use it as a scrape target for external monitoring systems, such as Prometheus.

Supports filtering by: metric_name: Filter by metric name(s). Supports comma-separated values (e.g., metric_name=http_requests_total,http_response_time) metric_category: Filter by 'system' (Crusoe-collected) or 'custom' (user-defined) metrics labels: Filter by label key:value pairs. Supports comma-separated values (e.g., labels=job:api,region:us-east)

Internal metrics and provisioned throughput metrics are always excluded.

Rate limited to 10 requests per minute per project. Response limited to 50MB payload and 100,000 time series. Responses are cached for up to 1 minute.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

The project ID to scrape metrics from. User must have read access to the project.

query Parameters
metric_name
Array of strings
Example: metric_name=crusoe_vm_cpu_seconds_total,crusoe_vm_disk_writes_completed_total

Filter by metric name. Supports comma-separated values (e.g., metric_name=http_requests_total,http_response_time).

metric_category
string
Enum: "system" "custom"
Example: metric_category=system

Filter by metric category. 'system' returns Crusoe-collected metrics. 'custom' returns user-defined metrics with metrics_source=custom-metrics label.

labels
Array of strings
Example: labels=job:api,region:us-east

Filter by label key:value pairs. Use colon to separate key and value. Supports comma-separated values (e.g., labels=job:api,region:us-east). Supports UNION (labels=device:loop1|loop2)

compress
string
Example: compress=true

Enable gzip compression for the response. Accepted values: 'true' (enables gzip compression) or 'false' (no compression). Invalid values will be logged and treated as 'false'.

format
string
Enum: "prometheus" "openmetrics"
Example: format=openmetrics

Response format. Default Prometheus text. Set to "openmetrics" to receive application/openmetrics-text (1.0) with # EOF marker.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Query timeseries for a resource.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to query metrics for.

query Parameters
resource_type
required
string
Example: resource_type=shareddisk

Type of resource to query metrics for, for example shareddisk. The service ignores it for now.

resource_id
string
Example: resource_id=ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

Filters results to the resource with this ID.

start
required
string
Example: start=<rfc3339 | unix_timestamp>

Start timestamp, inclusive.

end
required
string
Example: end=<rfc3339 | unix_timestamp>

End timestamp, inclusive.

step
required
string
Example: step=5m | 30.0

Query resolution step width in duration format or float number of seconds.

Responses

Response samples

Content type
application/json
{
  • "data": "{}",
  • "error": "invalid parameter \"query\": 1:1: parse error: unexpected end of input",
  • "errorType": "bad_data",
  • "infos": [
    ],
  • "status": "success",
  • "warnings": [
    ]
}

Query timeseries at an instant via PromQL.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to query metrics for.

query Parameters
query
required
string
Example: query=metric[label=value]

Prometheus expression query string.

time
string
Example: time=<rfc3339 | unix_timestamp>

Evaluation timestamp.

timeout
string
Example: timeout=30s

Evaluation timeout. Defaults to and is capped by the value of the -query.timeout flag.

limit
string
Example: limit=5

Maximum number of returned series. 0 means disabled.

Responses

Response samples

Content type
application/json
{
  • "data": "{}",
  • "error": "invalid parameter \"query\": 1:1: parse error: unexpected end of input",
  • "errorType": "bad_data",
  • "infos": [
    ],
  • "status": "success",
  • "warnings": [
    ]
}

Query timeseries over a time range via PromQL.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to query metrics for.

query Parameters
query
required
string
Example: query=metric[label=value]

Prometheus expression query string.

start
required
string
Example: start=<rfc3339 | unix_timestamp>

Start timestamp, inclusive.

end
required
string
Example: end=<rfc3339 | unix_timestamp>

End timestamp, inclusive.

step
required
string
Example: step=5m | 30.0

Query resolution step width in duration format or float number of seconds.

timeout
string
Example: timeout=30s

Evaluation timeout. Defaults to and is capped by the value of the -query.timeout flag.

limit
string
Example: limit=5

Maximum number of returned series. 0 means disabled.

Responses

Response samples

Content type
application/json
{
  • "data": "{}",
  • "error": "invalid parameter \"query\": 1:1: parse error: unexpected end of input",
  • "errorType": "bad_data",
  • "infos": [
    ],
  • "status": "success",
  • "warnings": [
    ]
}

Query timeseries by passing various metric parameters.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to query metrics for.

query Parameters
metric
required
string
Example: metric=cpu_usage_seconds_total

Name of the metric to query.

label
Array of strings
Example: label=instance=server1,job=node

Labels to filter the metric by. Multiple labels can be provided as comma-separated key=value pairs.

function
string
Example: function=function=rate,avg

Function to use (e.g., rate, avg). Multiple functions are separated by comma and applied in that order

range
string
Example: range=range=3600

Range to use with some functions (e.g., rate).

start
required
string
Example: start=2024-01-22T10:00:00Z

Start timestamp, inclusive.

end
required
string
Example: end=2024-01-22T11:00:00Z

End timestamp, inclusive.

step
string
Default: "3600"
Example: step=60

Query resolution step width in duration format or float number of seconds.

Responses

Response samples

Content type
application/json
{
  • "data": "{}",
  • "error": "invalid parameter \"query\": 1:1: parse error: unexpected end of input",
  • "errorType": "bad_data",
  • "infos": [
    ],
  • "status": "success",
  • "warnings": [
    ]
}

Container Registry

Lists the locations where container registry repositories can be hosted.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Lists the upstream registry providers supported for pull-through-cache repositories.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a limited-scope token for authenticating to the container registry and returns it.

Request Body schema: application/json

The alias and expiration time for a new container registry token.

alias
string

Alias for the new token, used to identify it.

expires_at
string

Expiration timestamp of the token, in RFC3339 format.

Responses

Request samples

Content type
application/json
{
  • "alias": "my-token",
  • "expires_at": "2026-12-03T19:58:34Z"
}

Response samples

Content type
application/json
{
  • "token": "my-crusoe-registry-token"
}

Lists all container registry repositories in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repositories.

query Parameters
page
integer <int32>
Example: page=1

Page number of results to return.

page_size
integer <int32>
Example: page_size=50

Number of results to return per page.

sort_by
string
Example: sort_by=name

Field to sort the results by.

sort_order
string
Example: sort_order=asc

Order to sort the results in.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a container registry repository in the project and returns the created repository.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to create the repository in.

Request Body schema: application/json

The settings for a new container registry repository.

location
string

Location to create the repository in.

max_size_bytes
string

Maximum total size for the new repository, in bytes.

mode
string

Mode for the new repository, which determines how images are stored and served.

name
string

Name for the new repository.

object (UpstreamRegistry)

The upstream registry that a pull-through-cache repository caches images from.

Responses

Request samples

Content type
application/json
{
  • "location": "us-east1-a",
  • "max_size_bytes": "10737418240",
  • "mode": "standard",
  • "name": "my-repository",
  • "upstream_registry": {
    }
}

Response samples

Content type
application/json
{
  • "created_at": "2021-12-03T19:58:34Z",
  • "id": "ca39e669-47ee-456b-968d-303234fbf99f",
  • "location": "us-east1-a",
  • "max_size_bytes": "10737418240",
  • "mode": "standard",
  • "name": "my-repository",
  • "state": "Ready",
  • "upstream_registry": {
    },
  • "url": "registry.us-east1-a.ccr.crusoecloudcompute.com/my-repository.ab4a6b00"
}

Deletes a container registry repository from the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository.

query Parameters
location
string
Example: location=us-east1-a

Location the repository is hosted in.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Returns details for a single container registry repository in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository.

query Parameters
location
string
Example: location=us-east1-a

Location the repository is hosted in.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2021-12-03T19:58:34Z",
  • "id": "ca39e669-47ee-456b-968d-303234fbf99f",
  • "location": "us-east1-a",
  • "max_size_bytes": "10737418240",
  • "mode": "standard",
  • "name": "my-repository",
  • "state": "Ready",
  • "upstream_registry": {
    },
  • "url": "registry.us-east1-a.ccr.crusoecloudcompute.com/my-repository.ab4a6b00"
}

Updates the upstream registry credentials for a repository in the project.

Updates the username and password credentials for the upstream registry of a pull-through-cache repository.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository.

Request Body schema: application/json

The username and password for an upstream registry. The password is never returned.

password
string

Password used to authenticate to the upstream registry.

username
string

Username used to authenticate to the upstream registry.

Responses

Request samples

Content type
application/json
{
  • "password": "my-registry-password",
  • "username": "my-registry-user"
}

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Deletes an image from a container registry repository in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository that contains the image.

query Parameters
image_id
required
string
Example: image_id=my-image

ID of the image to delete.

location
string
Example: location=us-east1-a

Location the repository is hosted in.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Lists all images in a container registry repository in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository that contains the images.

query Parameters
location
string
Example: location=us-east1-a

Location the repository is hosted in.

page
integer <int32>
Example: page=1

Page number of results to return.

page_size
integer <int32>
Example: page_size=50

Number of results to return per page.

sort_by
string
Example: sort_by=updated_at

Field to sort the results by.

sort_order
string
Example: sort_order=desc

Order to sort the results in.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Deletes a manifest from an image in a container registry repository in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository that contains the image.

query Parameters
image_id
required
string
Example: image_id=my-image

ID of the image that contains the manifest.

tag
string
Example: tag=latest

Tag that points to the manifest to delete. Either tag or digest must be provided, but not both.

digest
string
Example: digest=sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a

Digest of the manifest to delete. Either tag or digest must be provided, but not both.

location
string
Example: location=us-east1-a

Location the repository is hosted in.

Responses

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Lists all manifests for an image in a container registry repository in the project and returns their details.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository that contains the image.

query Parameters
image_id
required
string
Example: image_id=my-image

ID of the image whose manifests are listed.

tag_contains
string
Example: tag_contains=v1

Filters results to manifests with a tag that contains this substring.

location
string
Example: location=us-east1-a

Location the repository is hosted in.

page
integer <int32>
Example: page=1

Page number of results to return.

page_size
integer <int32>
Example: page_size=50

Number of results to return per page.

sort_by
string
Example: sort_by=pushed_at

Field to sort the results by.

sort_order
string
Example: sort_order=desc

Order to sort the results in.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Returns usage data for a single container registry repository in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the repository.

repository_id
required
string
Example: ca39e669-47ee-456b-968d-303234fbf99f

ID of the repository.

query Parameters
location
string
Example: location=us-east1-a

Location the repository is hosted in.

Responses

Response samples

Content type
application/json
{
  • "last_requested_timestamp_utc": "2021-12-03T19:58:34Z",
  • "max_size_bytes": "10737418240",
  • "used_size_bytes": "5368709120"
}

Foundry

Lists the credentials in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "credentials": [
    ]
}

Creates a credential in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json

CreateCredentialRequest is the body for creating a credential.

required
object (CredentialSecrets)

CredentialSecrets holds the secret material for a credential.

description
string

Optional human-readable description.

name
required
string

Name of the credential.

Responses

Request samples

Content type
application/json
{
  • "credentials": {
    },
  • "description": "Hugging Face token for private models",
  • "name": "my-credential"
}

Response samples

Content type
application/json
{
  • "created_at": "2021-12-03T19:58:34Z",
  • "credentials": {
    },
  • "description": "Hugging Face token for private models",
  • "id": "4ece55fc-44b7-4c31-bdc2-c90f7fb1900e",
  • "name": "my-credential",
  • "org_id": "de8f27fe-8438-45e7-a2c2-a2767660625f",
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "vendor": "huggingface"
}

Deletes a credential from the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: 4ece55fc-44b7-4c31-bdc2-c90f7fb1900e

ID of the credential.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Returns a single credential in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: 4ece55fc-44b7-4c31-bdc2-c90f7fb1900e

ID of the credential.

query Parameters
reveal
boolean

When true, include the secret material in the response.

Responses

Response samples

Content type
application/json
{
  • "created_at": "2021-12-03T19:58:34Z",
  • "credentials": {
    },
  • "description": "Hugging Face token for private models",
  • "id": "4ece55fc-44b7-4c31-bdc2-c90f7fb1900e",
  • "name": "my-credential",
  • "org_id": "de8f27fe-8438-45e7-a2c2-a2767660625f",
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "vendor": "huggingface"
}

Updates a credential's description in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: 4ece55fc-44b7-4c31-bdc2-c90f7fb1900e

ID of the credential.

Request Body schema: application/json

UpdateCredentialRequest is the body for updating a credential.

description
string

Updated description.

Responses

Request samples

Content type
application/json
{
  • "description": "Hugging Face token for private models"
}

Response samples

Content type
application/json
{
  • "created_at": "2021-12-03T19:58:34Z",
  • "credentials": {
    },
  • "description": "Hugging Face token for private models",
  • "id": "4ece55fc-44b7-4c31-bdc2-c90f7fb1900e",
  • "name": "my-credential",
  • "org_id": "de8f27fe-8438-45e7-a2c2-a2767660625f",
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "updated_at": "2021-12-03T19:58:34Z",
  • "vendor": "huggingface"
}

Lists the models deployed and available for inference in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "deployments": [
    ]
}

Returns the activity feed for the project's deployed models.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "events": [
    ],
  • "next_cursor": "MTYzODU2MTUxNDAwMDAwMDAwMDoxMDQy"
}

Lists the deployed model operations in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
state
Array of strings
Example: state=IN_PROGRESS

Operation states to include.

lower_time_bound
string
Example: lower_time_bound=2021-12-03T19:58:34Z

Excludes operations started before this RFC 3339 time.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Returns a single deployed model operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

operation_id
required
string
Example: 9d968701-ab8b-4ac8-b8cb-68e68eca21e3

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Returns deployment progress for the project's deployed models.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "message": "Deploying model",
  • "percent": 60,
  • "updated_at": "2021-12-03T19:58:34Z"
}

Streams deployment progress for the project's deployed models as server-sent events.

The response is a text/event-stream of progress updates.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Renames a deployed model's alias.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json

RenameModelRequest is the body for renaming a deployed model's alias.

model_alias
required
string

Current alias of the model.

new_alias
required
string

New alias for the model.

Responses

Request samples

Content type
application/json
{
  • "model_alias": "my-model",
  • "new_alias": "my-model-v2"
}

Response samples

Content type
application/json
{
  • "endpoint_id": "deepseek-ai/DeepSeek-V4-Flash-0731",
  • "model_alias": "my-model-v2"
}

Updates the HuggingFace source behind a deployed model's alias.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json

UpdateModelRequest is the body for updating a deployed model's HuggingFace source.

model_alias
required
string

Customer-facing alias of the model to update.

new_hugging_face_model
required
string

New HuggingFace model to point the alias at.

region
string

Region in which to perform the update. If omitted, all regions are updated.

run_candidate_test
boolean

Whether to run a candidate health-check before switching the source.

Responses

Request samples

Content type
application/json
{
  • "model_alias": "my-model",
  • "new_hugging_face_model": "sgl-project/DeepSeek-V4-Flash-FP8",
  • "region": "us-east1-a",
  • "run_candidate_test": true
}

Response samples

Content type
application/json
{
  • "operation_id": "9d968701-ab8b-4ac8-b8cb-68e68eca21e3",
  • "workflows": [
    ]
}

Lists the LoRA adapter deployments in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the deployments.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Deploys a LoRA adapter (a fine-tuned model) onto its parent base model in the project.

The deployment is asynchronous: the response returns the deployment record in a pending state, which is reconciled to ready once the adapter is loaded.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project to deploy the adapter in.

Request Body schema: application/json

LoadLoraRequest is the body for deploying a LoRA adapter.

model_id
required
string

ID of the fine-tuned model (LoRA adapter) to deploy, as registered in the model registry.

Responses

Request samples

Content type
application/json
{
  • "model_id": "ftmodel-a094f2b8-b558-4431-a987-6fc316f42474"
}

Response samples

Content type
application/json
{
  • "cluster_name": "my-cluster",
  • "created_at": "2021-12-03T19:58:34Z",
  • "endpoint_alias": "ft:gemma-4-31b-it:supervised:ad154486",
  • "evolution_uri": "ev://ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab/adapter/checkpoint-300",
  • "finetuning_job_id": "ftjob-437d2d396df8ff9bda72a154d6b5813e",
  • "id": "8b3394b2-368e-45ef-9f98-7c0c08688366",
  • "last_error": "Failed to download and stage the adapter artifacts. Please retry; contact support if the problem persists.",
  • "loader_service": "foundry",
  • "model_id": "ftmodel-a094f2b8-b558-4431-a987-6fc316f42474",
  • "parent_model_name": "google/gemma-4-31b-it",
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "rank": 8,
  • "serving_endpoint_name": "google/gemma-4-31b-it",
  • "status": "ready",
  • "updated_at": "2021-12-03T19:58:34Z"
}

Removes a LoRA adapter deployment from the project.

The teardown is asynchronous: the adapter is unloaded from the serving cluster in the background.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the deployment.

id
required
string
Example: 8b3394b2-368e-45ef-9f98-7c0c08688366

ID of the LoRA adapter deployment.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Returns a single LoRA adapter deployment in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project that owns the deployment.

id
required
string
Example: 8b3394b2-368e-45ef-9f98-7c0c08688366

ID of the LoRA adapter deployment.

Responses

Response samples

Content type
application/json
{
  • "cluster_name": "my-cluster",
  • "created_at": "2021-12-03T19:58:34Z",
  • "endpoint_alias": "ft:gemma-4-31b-it:supervised:ad154486",
  • "evolution_uri": "ev://ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab/adapter/checkpoint-300",
  • "finetuning_job_id": "ftjob-437d2d396df8ff9bda72a154d6b5813e",
  • "id": "8b3394b2-368e-45ef-9f98-7c0c08688366",
  • "last_error": "Failed to download and stage the adapter artifacts. Please retry; contact support if the problem persists.",
  • "loader_service": "foundry",
  • "model_id": "ftmodel-a094f2b8-b558-4431-a987-6fc316f42474",
  • "parent_model_name": "google/gemma-4-31b-it",
  • "project_id": "ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab",
  • "rank": 8,
  • "serving_endpoint_name": "google/gemma-4-31b-it",
  • "status": "ready",
  • "updated_at": "2021-12-03T19:58:34Z"
}

Lists the self-serve deployments in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "deployments": [
    ]
}

Creates a self-serve deployment in the project.

Asynchronous: returns the accepted deployment ID and status.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Request Body schema: application/json

CreateDeploymentRequest is the body for creating a self-serve deployment.

deployment_name
required
string

User-chosen deployment name.

fine_tuned_model
required
string

The fine-tuned model to deploy.

flavor_id
required
string

ID of the flavor (hardware/model shape) to deploy on.

replicas
integer <int32>

Number of replicas to run.

Responses

Request samples

Content type
application/json
{
  • "deployment_name": "my-deployment",
  • "fine_tuned_model": "ftmodel-a094f2b8-b558-4431-a987-6fc316f42474",
  • "flavor_id": "8c69cb7b-f39b-4179-bf10-bf2b0ae3f026",
  • "replicas": 2
}

Response samples

Content type
application/json
{
  • "id": "deepseek-ai-deepseek-v4-flash-1afbeb10",
  • "operation_id": "9d968701-ab8b-4ac8-b8cb-68e68eca21e3",
  • "status": "creating"
}

Lists the self-serve deployment operations in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

query Parameters
state
Array of strings
Example: state=IN_PROGRESS

Operation states to include.

lower_time_bound
string
Example: lower_time_bound=2021-12-03T19:58:34Z

Excludes operations started before this RFC 3339 time.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Returns a single self-serve deployment operation.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

operation_id
required
string
Example: 9d968701-ab8b-4ac8-b8cb-68e68eca21e3

ID of the operation.

Responses

Response samples

Content type
application/json
{
  • "completed_at": "2021-12-03T19:59:34Z",
  • "metadata": "{}",
  • "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
  • "result": "{}",
  • "started_at": "2021-12-03T19:58:34Z",
  • "state": "IN_PROGRESS"
}

Deletes a self-serve deployment from the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: deepseek-ai-deepseek-v4-flash-1afbeb10

ID of the deployment.

Responses

Response samples

Content type
application/json
{
  • "id": "deepseek-ai-deepseek-v4-flash-1afbeb10",
  • "operation_id": "9d968701-ab8b-4ac8-b8cb-68e68eca21e3",
  • "status": "creating"
}

Returns a single self-serve deployment in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: deepseek-ai-deepseek-v4-flash-1afbeb10

ID of the deployment.

Responses

Response samples

Content type
application/json
{
  • "available_replicas": 2,
  • "context_length": 1048576,
  • "created_at": "2021-12-03T19:58:34Z",
  • "created_by": "[email protected]",
  • "deployment_name": "my-deployment",
  • "fine_tuned_model": "ftmodel-a094f2b8-b558-4431-a987-6fc316f42474",
  • "flavor_type": "balanced",
  • "gpu_type": "h200",
  • "gpus_per_replica": 8,
  • "hourly_cost": "96",
  • "id": "deepseek-ai-deepseek-v4-flash-1afbeb10",
  • "model": "deepseek-ai/DeepSeek-V4-Flash-0731",
  • "provider": "deepseek-ai",
  • "quantization": "FP4",
  • "status": "ready",
  • "target_replicas": 2
}

Updates a self-serve deployment (name and/or replica count) in the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: deepseek-ai-deepseek-v4-flash-1afbeb10

ID of the deployment.

Request Body schema: application/json

UpdateDeploymentRequest is the body for updating a self-serve deployment.

deployment_name
string

Updated deployment name.

fine_tuned_model
string

Fine-tuned model (checkpoint) to switch the deployment to. Rolls the deployment onto the new checkpoint of the same base model.

replicas
integer <int32>

Updated replica count.

rolling_update
boolean

Whether to roll out the change without downtime (rolling update) instead of recreating the deployment.

Responses

Request samples

Content type
application/json
{
  • "deployment_name": "my-deployment",
  • "fine_tuned_model": "ftmodel-a094f2b8-b558-4431-a987-6fc316f42474",
  • "replicas": 4,
  • "rolling_update": true
}

Response samples

Content type
application/json
{
  • "id": "deepseek-ai-deepseek-v4-flash-1afbeb10",
  • "operation_id": "9d968701-ab8b-4ac8-b8cb-68e68eca21e3",
  • "status": "creating"
}

Returns the activity feed for a self-serve deployment.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: deepseek-ai-deepseek-v4-flash-1afbeb10

ID of the deployment.

Responses

Response samples

Content type
application/json
{
  • "events": [
    ],
  • "next_cursor": "MTYzODU2MTUxNDAwMDAwMDAwMDoxMDQy"
}

Returns deployment progress for a self-serve deployment.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: deepseek-ai-deepseek-v4-flash-1afbeb10

ID of the deployment.

Responses

Response samples

Content type
application/json
{
  • "message": "Deploying model",
  • "percent": 60,
  • "updated_at": "2021-12-03T19:58:34Z"
}

Streams progress for a self-serve deployment as server-sent events.

The response is a text/event-stream of progress updates.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

id
required
string
Example: deepseek-ai-deepseek-v4-flash-1afbeb10

ID of the deployment.

Responses

Response samples

Content type
application/json
{
  • "code": "401",
  • "message": "bad_credential"
}

Lists the self-serve deployment flavors available to the project.

path Parameters
project_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the project.

Responses

Response samples

Content type
application/json
{
  • "flavors": [
    ]
}

Roles

Lists role associated with the caller's organization.

Responses

Response samples

Content type
application/json
{
  • "roles": [
    ]
}

RoleBindings

Lists role bindings visible to the caller.

query Parameters
user_id
string
Example: user_id=d1e3a8c1-7d2e-4c5b-9f9a-2f5b3e9c1a44

Filters results to role bindings for the users with these comma-separated IDs.

role_id
string
Example: role_id=e893d835-ada1-4b5a-b416-212779e2e7c5

Filters results to role bindings that grant the roles with these comma-separated IDs.

scope_type
string
Enum: "org" "project"

Filters results to role bindings that apply to this type of resource.

scope_object_id
string
Example: scope_object_id=de8f27fe-8438-45e7-a2c2-a2767660625f

Filters results to role bindings that apply to the organization or project with this ID. Requires scope_type.

principal_id
string
Example: principal_id=d1e3a8c1-7d2e-4c5b-9f9a-2f5b3e9c1a44

Filters results to role bindings for the principals with these comma-separated IDs, as role bindings return them in principal_id. Requires principal_type.

principal_type
string
Enum: "user" "service_account"

Filters results to role bindings for this type of principal. Requires principal_id.

Responses

Response samples

Content type
application/json
{
  • "role_bindings": [
    ]
}

Creates and deletes role bindings for a service account in a single atomic operation.

If any creation or deletion fails, no changes are applied.

path Parameters
service_account_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the service account whose role bindings to change. The service account can't be disabled or managed by Crusoe.

Request Body schema: application/json
required

The role bindings to create and delete for a service account.

required
Array of objects (ServiceAccountRoleBindingInput)

Role bindings to create for the service account.

bindings_to_delete
required
Array of strings

IDs of the service account's role bindings to delete.

Responses

Request samples

Content type
application/json
{
  • "bindings_to_create": [
    ],
  • "bindings_to_delete": [
    ]
}

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}

Creates and deletes role bindings for a user in a single atomic operation.

If any creation or deletion fails, no changes are applied.

path Parameters
user_id
required
string
Example: ab4a6b00-aa5f-408e-a9fb-ac6de5eb45ab

ID of the user whose role bindings to change. You can't change your own role bindings.

Request Body schema: application/json
required

The role bindings to create and delete for a user.

required
Array of objects (RoleBindingInput)

Role bindings to create for the user.

bindings_to_delete
required
Array of strings

IDs of the user's role bindings to delete. A user always needs an org binding, so to delete one, create another in the same request.

Responses

Request samples

Content type
application/json
{
  • "bindings_to_create": [
    ],
  • "bindings_to_delete": [
    ]
}

Response samples

Content type
application/json
{
  • "code": "400",
  • "message": "bad_request"
}