POST
Assign a resource to a project

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

project_id
string
required

Project ID or UUID

Body

application/json

Assign a resource to a project

resource_id
string
required

ID or UUID of the resource to assign

with_hosting_projects
boolean
default:false

Assign the resource to every project already running workloads on it too, instead of refusing. Only ever widens access.

Response

Assign a resource to a project

Api_V1_Entities_Resource model

uuid
string
required

Unique resource identifier

name
string
required

Resource name

state
string
required

Current state

labels
string[]
required

User-defined labels for identification

total_disk_size
integer<int64>
required

Total disk capacity in bytes

total_ram_size
integer<int64>
required

Total RAM capacity in bytes

total_cpu_size
number<float>
required

Total CPU capacity in cores

total_used_disk_size
integer<int64>
required

Used disk in bytes

total_used_ram_size
integer<int64>
required

Used RAM in bytes

total_used_cpu_size
number<float>
required

Used CPU in cores

available_cpu_size
number<float>
required

Available CPU in cores

available_disk_size
integer<int64>
required

Available disk in bytes

available_ram_size
integer<int64>
required

Available RAM in bytes

assigned
boolean
required

Whether this resource is assigned to any project at all. When true, only the projects listed in project_ids may deploy on it. When false, nobody has assigned it and any project may.

project_ids
string[]
required

UUIDs of the projects this resource is assigned to, limited to the projects you can access. A resource assigned solely to projects you cannot access is not returned to you at all.

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

plan
object
required

Api_V1_Entities_Plan model

components
object[]
required

Additional components