Assign a resource to a project
Assigns a resource to this project. Once a resource is assigned, only the projects it is assigned to may place workloads on it. Assigning restricts the resource, never the project — a project can always use any unassigned resource. Assigning is refused with 422 while the resource still runs workloads from a project it is not assigned to; send with_hosting_projects=true to assign it to those projects as well and let the call through. That is the only way past the refusal when a blocking project is one you cannot reach, because the error redacts its name.
Authorizations
Bearer token for authentication. Format: 'Bearer {token}'
Headers
Workspace ID (uses default workspace if not provided)
Path Parameters
Project ID or UUID
Body
Response
Assign a resource to a project
Api_V1_Entities_Resource model
Unique resource identifier
Resource name
Current state
User-defined labels for identification
Total disk capacity in bytes
Total RAM capacity in bytes
Total CPU capacity in cores
Used disk in bytes
Used RAM in bytes
Used CPU in cores
Available CPU in cores
Available disk in bytes
Available RAM in bytes
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.
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.
Creation timestamp
Last update timestamp
Api_V1_Entities_Plan model
Additional components

