Departments, in the hierarchy of resource allocation, are above Projects. A Department can contain multiple Projects, and has its own quotas. A Department's quota supersedes the total of the Project quotas in the Department, so tt is recommended that a Department's quota be the total, or more than of all the Project quotas in the Department. For further information see, Working with Departments.
Create Department
Department to create.
Created
Bad request.
Unauthorized
Forbidden
unexpected error
{- "description": "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"
}
}
], - "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "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"
}
}
}
{- "description": "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"
}
}
], - "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "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"
}
}, - "id": 50,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "children": [
- {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "children": [
- { }
]
}
], - "projectsAggregatedResources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000
}, - "cpu": {
- "deserved": 1000
}, - "memory": {
- "deserved": 1000,
- "units": "Mib"
}
}
], - "status": {
- "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
}
}
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}
}
list departments
ok
Bad request.
Unauthorized
Forbidden
unexpected error
{- "departments": [
- {
- "description": "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"
}
}
], - "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "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"
}
}, - "id": 50,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "children": [
- {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "children": [
- { }
]
}
], - "status": {
- "quotaStatus": {
- "allocated": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "allocatedNonPreemptible": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}, - "requested": {
- "gpu": 0,
- "cpu": 1000,
- "memory": 1000
}
}
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}
}
], - "next": 1
}
Update department by Id
Department to update.
Updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "description": "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"
}
}
], - "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}
}
{- "description": "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"
}
}
], - "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "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"
}
}, - "id": 50,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "children": [
- {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "children": [
- { }
]
}
], - "projectsAggregatedResources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000
}, - "cpu": {
- "deserved": 1000
}, - "memory": {
- "deserved": 1000,
- "units": "Mib"
}
}
], - "status": {
- "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
}
}
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}
}
Get department by Id
ok
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "description": "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"
}
}
], - "schedulingRules": {
- "interactiveJobTimeLimitSeconds": 100,
- "interactiveJobMaxIdleDurationSeconds": 100,
- "interactiveJobPreemptIdleDurationSeconds": 100,
- "trainingJobMaxIdleDurationSeconds": 100,
- "trainingJobTimeLimitSeconds": 100
}, - "defaultNodePools": [
- "string"
], - "nodeTypes": {
- "training": [
- "string"
], - "workspace": [
- "string"
], - "names": {
- "property1": "string",
- "property2": "string"
}
}, - "name": "organization1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "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"
}
}, - "id": 50,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedBy": "string",
- "children": [
- {
- "id": "9f55253e-11ed-47c7-acef-fc4054768dbc",
- "name": "organization1",
- "children": [
- { }
]
}
], - "projectsAggregatedResources": [
- {
- "nodePool": {
- "id": 22,
- "name": "default"
}, - "gpu": {
- "deserved": 1000
}, - "cpu": {
- "deserved": 1000
}, - "memory": {
- "deserved": 1000,
- "units": "Mib"
}
}
], - "status": {
- "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
}
}
}, - "totalResources": {
- "gpuQuota": 0,
- "cpuQuota": 0,
- "memoryQuota": 0
}
}
Delete department by Id
Deleted
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Update department resources by Id
Department 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
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.
Department 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
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 departments
ok
Bad request.
Unauthorized
Forbidden
unexpected error
{- "count": 1
}
Get metrics for all departments in the cluster. 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 departments.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "data": [
- {
- "metadata": {
- "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"
}
], - "projectResources": [
- {
- "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
}, - "projectName": "project-a",
- "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"
}
]
}
}
Get metrics for a specific department in the cluster.
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 department.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "metadata": {
- "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"
}
], - "projectResources": [
- {
- "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
}, - "projectName": "project-a",
- "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"
}
]
}
}
Retrieves the details of a specific department. Requires theview
permission for the department.
Successfully retrieved department details.
{- "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "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 department's details in the cluster. \n For example, node pools and other details.
Department updated successfully.
{- "nodePoolsResources": [
- {
- "id": 0,
- "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
}
}
], - "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
{- "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "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 department from a specific cluster.
Department deleted successfully.
{- "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
List all the departments managed by the tenant on a specific cluster.
Successfully retrieved a list of Departments.
[- {
- "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
]
Creates a new department in the cluster.
Department created successfully.
{- "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
}
}
], - "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
{- "name": "default",
- "deservedGpus": 2,
- "allowOverQuota": false,
- "maxAllowedGpus": 2,
- "resources": {
- "id": 0,
- "gpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "cpu": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}, - "memory": {
- "deserved": 0,
- "maxAllowed": 1000,
- "overQuotaWeight": 2
}
}
}
Deprecated. Instead, use the accessrules API to add the department-admin permissions to a specific subject.
Department admin set successfully.
Bad request.
Unauthenticated
Forbidden
{- "departmentId": 2,
- "departmentAdmins": [
- "string"
]
}
{- "departmentId": 2,
- "departmentAdmins": [
- "string"
]
}