Projects

Projects implement resource allocation policies and create segregation between different initiatives. It can represent a team, an individual, or an initiative that shares resources or has a specific resources budget (quota). See Projectsarrow-up-right for more information.

Get projects

get

List projects

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-name"]
sortBystring · enumOptional

Sort results by a parameters.

Possible values:
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 50
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

ok

application/json
nextintegerOptionalExample: 1
get
/api/v1/org-unit/projects

Create project

post

Create a project

Authorizations
AuthorizationstringRequired

Bearer authentication

Body

Updatable fields

descriptionstringOptional

The description of the project.

defaultNodePoolsstring[] · nullableOptional

An ordered list of node pools that defines the default scheduling preference for workloads in this project. The Scheduler will attempt to schedule workloads on node pools in this order. This setting is enforced if no node pool list is defined in the workload policy.

namestringRequired

The unique name of the project within the cluster. Must be a valid Kubernetes name (lowercase, alphanumeric, hyphens allowed).

Example: organization1
clusterIdstring · uuidRequired

The id of the cluster.

Example: 71f69d83-ba66-4822-adf5-55ce55efd210
requestedNamespacestringOptional

The custom Kubernetes namespace name for the project. If not specified, a namespace will be auto-generated using the pattern runai-.

Example: runai-proj1
enforceRunaiSchedulerboolean · nullableOptional

When set to true, enforces that all pods in this project's namespace are scheduled using the NVIDIA Run:ai Scheduler (runai-scheduler). Supported for cluster version 2.21 and later.

Default: true
parentIdstring · nullableOptional

The ID of the parent department. When specified, the project is created as a child of this department and inherits its quota, the quota of other projects within the department and its scheduling rules.

Example: 35000
Responses
post
/api/v1/org-unit/projects

Get project

get

Get a project by id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
chevron-right
200

ok

application/json

Updatable fields

descriptionstringRequired

The description of the project.

defaultNodePoolsstring[] · nullableOptional

An ordered list of node pools that defines the default scheduling preference for workloads in this project. The Scheduler will attempt to schedule workloads on node pools in this order. This setting is enforced if no node pool list is defined in the workload policy.

idstringRequiredExample: 33
namestringRequiredExample: organization1
clusterIdstring · uuidRequired

The id of the cluster.

Example: 71f69d83-ba66-4822-adf5-55ce55efd210
parentIdstringRequired

department parent uuid

Example: 53a9228e-a722-420d-a102-9dc90da2efca
requestedNamespacestring · nullableOptional

the project's namespace only if requested

Example: runai-proj1
enforceRunaiSchedulerbooleanRequired

a flag to enforce that all pods in this namespace will be scheduled with runai-scheduler. Supported for cluster v2.21+

createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
createdBystringOptional
updatedBystringOptional
get
/api/v1/org-unit/projects/{projectId}

Update project

put

Update project by Id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Body

Updatable fields

descriptionstringOptional

The description of the project.

defaultNodePoolsstring[] · nullableOptional

An ordered list of node pools that defines the default scheduling preference for workloads in this project. The Scheduler will attempt to schedule workloads on node pools in this order. This setting is enforced if no node pool list is defined in the workload policy.

enforceRunaiSchedulerboolean · nullableOptional

a flag to enforce that all pods in this namespace will be scheduled with runai-scheduler. Supported for cluster v2.21+

Responses
chevron-right
200

Updated

application/json

Updatable fields

descriptionstringRequired

The description of the project.

defaultNodePoolsstring[] · nullableOptional

An ordered list of node pools that defines the default scheduling preference for workloads in this project. The Scheduler will attempt to schedule workloads on node pools in this order. This setting is enforced if no node pool list is defined in the workload policy.

idstringRequiredExample: 33
namestringRequiredExample: organization1
clusterIdstring · uuidRequired

The id of the cluster.

Example: 71f69d83-ba66-4822-adf5-55ce55efd210
parentIdstringRequired

department parent uuid

Example: 53a9228e-a722-420d-a102-9dc90da2efca
requestedNamespacestring · nullableOptional

the project's namespace only if requested

Example: runai-proj1
enforceRunaiSchedulerbooleanRequired

a flag to enforce that all pods in this namespace will be scheduled with runai-scheduler. Supported for cluster v2.21+

createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
createdBystringOptional
updatedBystringOptional
put
/api/v1/org-unit/projects/{projectId}

Delete project

delete

Delete a project

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
delete
/api/v1/org-unit/projects/{projectId}

No content

Update project resources

put

Update projects resources

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Bodyobject[]

Resources assigned to this Project per Node Pool

rankstring · nullableOptional

The scheduling rank of this org-unit within the node pool. Determines the scheduling order of workloads between org-units. Workloads in higher-ranked org-units are scheduled before workloads in lower-ranked org-units. For example, all workloads in rank "High" will be scheduled before all workloads in rank "Medium".

Default: MediumLowExample: High
prioritystring · nullableOptionalDeprecated

Deprecated. Use rank instead. The scheduling priority for workloads in this node pool.

Example: Normal
Responses
chevron-right
200

Updated

application/json
rankstring · nullableOptional

The scheduling rank of this org-unit within the node pool. Determines the scheduling order of workloads between org-units. Workloads in higher-ranked org-units are scheduled before workloads in lower-ranked org-units. For example, all workloads in rank "High" will be scheduled before all workloads in rank "Medium".

Default: MediumLowExample: High
prioritystring · nullableOptionalDeprecated

Deprecated. Use rank instead. The scheduling priority for workloads in this node pool.

Example: Normal
put
/api/v1/org-unit/projects/{projectId}/resources

Patch project resources

patch

Partial updates to specific items in the list. Should be used for update one or more attributes of an item without modifying the entire resource.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Bodyobject[]

Resources assigned to this Project per Node Pool

rankstring · nullableOptional

The scheduling rank of this org-unit within the node pool. Determines the scheduling order of workloads between org-units. Workloads in higher-ranked org-units are scheduled before workloads in lower-ranked org-units. For example, all workloads in rank "High" will be scheduled before all workloads in rank "Medium".

Default: MediumLowExample: High
prioritystring · nullableOptionalDeprecated

Deprecated. Use rank instead. The scheduling priority for workloads in this node pool.

Example: Normal
Responses
chevron-right
200

Updated

application/json
rankstring · nullableOptional

The scheduling rank of this org-unit within the node pool. Determines the scheduling order of workloads between org-units. Workloads in higher-ranked org-units are scheduled before workloads in lower-ranked org-units. For example, all workloads in rank "High" will be scheduled before all workloads in rank "Medium".

Default: MediumLowExample: High
prioritystring · nullableOptionalDeprecated

Deprecated. Use rank instead. The scheduling priority for workloads in this node pool.

Example: Normal
patch
/api/v1/org-unit/projects/{projectId}/resources

Get project metrics data.

get

Retrieves project data metrics from the metrics database. Use in reporting and analysis tools.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Query parameters
startstring · date-timeRequired

Start date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-06T12:09:18.211Z
endstring · date-timeRequired

End date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-07T12:09:18.211Z
numberOfSamplesinteger · max: 1000Optional

The number of samples to take in the specified time range.

Default: 20Example: 20
nodepoolNamestringOptional

Filter using the nodepool.

Example: default
Responses
chevron-right
200

Executed successfully.

get
/api/v1/org-unit/projects/{projectId}/metrics

Get projects telemetry

get

Get projects telemetry data by the given query parameters

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
nodepoolIdstringOptional

Filter using the nodepool.

Example: 1
departmentIdstringOptional

Filter using the department id.

Example: 1
telemetryTypestring · enumRequired

Select a telemetry type.

Possible values:
Responses
chevron-right
200

Executed successfully.

application/json
typestringRequired

specifies what data returned

Example: ALLOCATION_RATIO
timestampstring · date-timeRequiredExample: 2023-06-06 12:09:18.211
get
/api/v1/org-unit/projects/telemetry

Count projects

get

count projects

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-name"]
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

ok

application/json
countinteger · int64RequiredExample: 1
get
/api/v1/org-unit/projects/count

Get projects node pool resources

get

List projects node pool resources

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["nodePoolName!=some-name"]
sortBystring · enumOptional

Sort results by a parameters.

Possible values:
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 50
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

ok

application/json
nextintegerOptionalExample: 1
get
/api/v1/org-unit/projects/node-pool-resources

Count projects node pool resources

get

Count projects node pool resources

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["nodePoolName!=some-name"]
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

ok

application/json
countinteger · int64RequiredExample: 1
get
/api/v1/org-unit/projects/node-pool-resources/count

Patch multiple projects node pool resources in batch.

post

Partially updates node pool resource quotas for multiple projects in a single request.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body

Batch of node pool resources patch requests.

Responses
chevron-right
200

Batch patch processed. Returns succeeded and failed items with totals and a batch id.

application/json
idstring · uuidRequired

The unique ID of the batch operation.

totalRequestedintegerRequired

Total number of items requested in the batch.

totalSuccessfulintegerRequired

Number of items successfully processed.

totalFailedintegerRequired

Number of items that failed.

post
/api/v1/org-unit/projects/node-pool-resources/batch-patch

Last updated