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 Projects for more information.
Create a project
Project to create.
Created
Bad request.
Unauthorized
Forbidden
unexpected error
{- "description": "string",
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "resources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
], - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "requestedNamespace": "runai-proj1",
- "parentId": "53a9228e-a722-420d-a102-9dc90da2efca"
}
{- "description": "string",
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "resources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
], - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "id": 33,
- "parentId": "53a9228e-a722-420d-a102-9dc90da2efca",
- "requestedNamespace": "runai-proj1",
- "status": {
- "namespace": "runai-proj1",
- "phase": "Creating",
- "phaseMessage": "Project is ready",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "nodePoolQuotaStatuses": [
- {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "nodePoolName": "string",
- "nodePoolId": "string"
}
], - "quotaStatus": {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}
}, - "additionalStatusData": { }
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "parent": {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "parent": { }
}, - "effective": {
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}
}, - "overtimeData": {
- "range24hData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range7dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range30dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}
}
}
List projects
ok
Bad request.
Unauthorized
Forbidden
unexpected error
{- "projects": [
- {
- "description": "string",
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "resources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
], - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "id": 33,
- "parentId": "53a9228e-a722-420d-a102-9dc90da2efca",
- "requestedNamespace": "runai-proj1",
- "status": {
- "namespace": "runai-proj1",
- "phase": "Creating",
- "phaseMessage": "Project is ready",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "nodePoolQuotaStatuses": [
- {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "nodePoolName": "string",
- "nodePoolId": "string"
}
], - "quotaStatus": {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}
}, - "additionalStatusData": { }
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "parent": {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "parent": { }
}, - "effective": {
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}
}, - "overtimeData": {
- "range24hData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range7dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range30dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}
}
}
], - "next": 1
}
Get projects telemetry data by the given query parameters
Project to update.
Updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "description": "string",
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "resources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
]
}
{- "description": "string",
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "resources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
], - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "id": 33,
- "parentId": "53a9228e-a722-420d-a102-9dc90da2efca",
- "requestedNamespace": "runai-proj1",
- "status": {
- "namespace": "runai-proj1",
- "phase": "Creating",
- "phaseMessage": "Project is ready",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "nodePoolQuotaStatuses": [
- {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "nodePoolName": "string",
- "nodePoolId": "string"
}
], - "quotaStatus": {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}
}, - "additionalStatusData": { }
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "parent": {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "parent": { }
}, - "effective": {
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}
}, - "overtimeData": {
- "range24hData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range7dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range30dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}
}
}
Get a project by id
ok
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "description": "string",
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "resources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
], - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "id": 33,
- "parentId": "53a9228e-a722-420d-a102-9dc90da2efca",
- "requestedNamespace": "runai-proj1",
- "status": {
- "namespace": "runai-proj1",
- "phase": "Creating",
- "phaseMessage": "Project is ready",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "nodePoolQuotaStatuses": [
- {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "nodePoolName": "string",
- "nodePoolId": "string"
}
], - "quotaStatus": {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}
}, - "additionalStatusData": { }
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "parent": {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "parent": { }
}, - "effective": {
- "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}
}, - "overtimeData": {
- "range24hData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range7dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}, - "range30dData": {
- "averageGpuAllocation": 10,
- "averageGpuUtilization": 95,
- "updatedAt": "2021-08-01T00:00:00Z"
}
}
}
Delete a project
Accepted
Deleted
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Update projects resources
Project resources to update.
object or null the node pool which the resources refer to | |
required | object GPU number to the project in the node pool |
object or null CPU in Millicores to the project in the node pool | |
object or null Memory to the project in the node pool |
Updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
[- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
]
[- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
]
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.
Project resources to patch.
object or null the node pool which the resources refer to | |
required | object GPU number to the project in the node pool |
object or null CPU in Millicores to the project in the node pool | |
object or null Memory to the project in the node pool |
Updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
[- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
]
[- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 1000,
- "limit": 0,
- "overQuotaWeight": 2,
- "units": "Mib"
}
}
]
count projects
ok
Bad request.
Unauthorized
Forbidden
unexpected error
{- "count": 1
}
Retrieves data from the metrics database. \n Use in reporting and analysis tools. \n Use a time range to return historical data (optional). If you use a start
date, an end
date is required.
Successfully retrieved metrics for all projects.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "data": [
- {
- "metadata": {
- "projectId": 1,
- "projectName": "project-a",
- "departmentId": 8,
- "departmentName": "default",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "clusterName": "cluster-a"
}, - "current": {
- "resources": [
- {
- "numberOfPendingWorkloads": 1,
- "gpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "cpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "memory": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "nodepoolName": "nodepoola"
}
]
}, - "timeRange": null
}
], - "timeRange": {
- "resources": [
- {
- "numberOfPendingWorkloads": 1,
- "gpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "cpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "memory": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "timestamp": "2023-06-06T12:09:18.211Z"
}
]
}
}
Retrieves data from the metrics database. \n Use in reporting and analysis tools. \n Use a time range to return historical data (optional). If you use a start
date, an end
date is required.
Successfully retrieved metrics for the project.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "metadata": {
- "projectId": 1,
- "projectName": "project-a",
- "departmentId": 8,
- "departmentName": "default",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "clusterName": "cluster-a"
}, - "current": {
- "resources": [
- {
- "numberOfPendingWorkloads": 1,
- "gpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "cpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "memory": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "nodepoolName": "nodepoola"
}
]
}, - "timeRange": {
- "resources": [
- {
- "numberOfPendingWorkloads": 1,
- "gpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "cpu": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "memory": {
- "quota": 3,
- "allocated": 2.5,
- "utilization": 0.765
}, - "timestamp": "2023-06-06T12:09:18.211Z"
}
]
}
}
Creates a new project in a specific cluster. Deprecated - use /api/v1/org-unit/projects
instead.
Project created successfully.
Bad Project request.
Project creation failed.
{- "name": "team-a",
- "departmentId": 2,
- "nodePoolsResources": [
- {
- "nodePool": {
- "id": 3,
- "name": "default"
}, - "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
], - "namespace": "ns-proj1",
- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
{- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
Retrieves a list of all projects and details from a specific cluster. Use in reporting and analysis tools. Deprecated - use /api/v1/org-unit/projects
instead.
Successfully retrieved a list of all the projects.
[- {
- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
]
Updates a project's details in a specific cluster. For example, node pool resources, and others. Deprecated - use /api/v1/org-unit/projects/{projectId}
instead.
An updated project details.
Bad project request.
Project not found.
Could not update the project.
{- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
{- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
Deletes a project from a specific cluster. Deprecated - use /api/v1/org-unit/projects/{projectId}
instead.
Project deleted successfully.
Project not found.
{- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
Retrieves the details of a specific project from a specific cluster. Use for project analysis. Requires view
permissions to the queried project. Deprecated - use /api/v1/org-unit/projects/{projectId}
instead.
Successfully retrieved project details.
Project not found.
{- "deservedGpus": 3,
- "maxAllowedGpus": 5,
- "gpuOverQuotaWeight": 1,
- "defaultNodePools": [
- "default"
], - "interactiveJobTimeLimitSecs": 3600,
- "interactiveJobMaxIdleDurationSecs": 3000,
- "interactivePreemptibleJobMaxIdleDurationSecs": 3000,
- "trainingJobTimeLimitSecs": 3600,
- "trainingJobMaxIdleDurationSecs": 3000,
- "nodeAffinity": {
- "train": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}, - "interactive": {
- "affinityType": "no_limit",
- "selectedTypes": [
- {
- "id": 0,
- "name": "string"
}
]
}
}, - "permissions": {
- "users": [
- "string"
], - "groups": [
- "string"
], - "applications": [
- "string"
]
}, - "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}