Expected response to a valid request
Unauthorized
The specified resource was not found
unexpected error
[- {
- "podId": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "podGroupId": "string",
- "clusterUuid": "73a3ead7-d612-44f9-b946-4e10a3d62c32",
- "podName": "string",
- "imageName": "string",
- "nodeId": "string",
- "phase": "string",
- "status": "string",
- "created": 0,
- "completed": 0,
- "started": 0,
- "lastUpdated": 0,
- "dynamicData": { },
- "existsInCluster": true,
- "resourceRequest": {
- "property1": 0,
- "property2": 0
}, - "resourceAllocation": {
- "property1": 0,
- "property2": 0
}, - "nodePool": "string",
- "namespace": "string"
}
]
Retrieve a list of pods from a cluster.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "next": 1,
- "pods": [
- {
- "name": "pod-of-a-very-important-job",
- "priorityClassName": "high-priority",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "workloadId": "06d16c5d-4728-42fa-b573-3b11820d999f",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "projectId": "1",
- "nodeName": "gpu-node-1",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "completedAt": "2022-01-01T03:49:52.531Z",
- "containers": [
- {
- "name": "busybox",
- "image": "busybox:latest",
- "startedAt": "2022-01-01T03:49:52.531Z"
}
], - "currentNodePool": "default",
- "requestedNodePools": [
- "default"
], - "requestedResources": {
- "gpuRequestType": "portion",
- "gpu": {
- "limit": 1.5,
- "request": 1
}, - "gpuMemory": {
- "limit": "2G",
- "request": "200M"
}, - "cpu": {
- "limit": 1.5,
- "request": 1
}, - "cpuMemory": {
- "limit": "2G",
- "request": "200M"
}, - "migProfile": "1g.5gb",
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "allocatedResources": {
- "gpu": 1.5,
- "migProfile": "1g.5gb",
- "gpuMemory": "200Mi",
- "cpu": 0.5,
- "cpuMemory": "0B",
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "tolerations": [
- {
- "key": "",
- "operator": "Exists",
- "value": "",
- "effect": "NoExecute",
- "tolerationSeconds": "10"
}
], - "k8sPhase": "Pending",
- "ip": "10.244.1.1",
- "tenantId": 1001,
- "k8sPhaseUpdatedAt": "2022-06-08T11:28:24.131Z",
- "updatedAt": "2022-06-08T11:28:24.131Z",
- "deletedAt": "2022-08-12T19:28:24.131Z",
- "projectName": "my-project",
- "workloadName": "my-workload"
}
]
}
Retrieve pod's metrics data for use in analysis applications.
Executed successfully.
Partial success.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "measurements": [
- {
- "type": "ALLOCATED_GPU",
- "labels": "{'gpu': '3'}",
- "values": [
- {
- "value": "85",
- "timestamp": "2023-06-06 12:09:18.211"
}
]
}
]
}
Retrieve the details of workload pods by workload id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "next": 1,
- "pods": [
- {
- "name": "pod-of-a-very-important-job",
- "priorityClassName": "high-priority",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "workloadId": "06d16c5d-4728-42fa-b573-3b11820d999f",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "projectId": "1",
- "nodeName": "gpu-node-1",
- "createdAt": "2022-01-01T03:49:52.531Z",
- "completedAt": "2022-01-01T03:49:52.531Z",
- "containers": [
- {
- "name": "busybox",
- "image": "busybox:latest",
- "startedAt": "2022-01-01T03:49:52.531Z"
}
], - "currentNodePool": "default",
- "requestedNodePools": [
- "default"
], - "requestedResources": {
- "gpuRequestType": "portion",
- "gpu": {
- "limit": 1.5,
- "request": 1
}, - "gpuMemory": {
- "limit": "2G",
- "request": "200M"
}, - "cpu": {
- "limit": 1.5,
- "request": 1
}, - "cpuMemory": {
- "limit": "2G",
- "request": "200M"
}, - "migProfile": "1g.5gb",
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "allocatedResources": {
- "gpu": 1.5,
- "migProfile": "1g.5gb",
- "gpuMemory": "200Mi",
- "cpu": 0.5,
- "cpuMemory": "0B",
- "extendedResources": [
- {
- "resource": "hardware-vendor.example/foo",
- "quantity": 2,
- "exclude": false
}
]
}, - "tolerations": [
- {
- "key": "",
- "operator": "Exists",
- "value": "",
- "effect": "NoExecute",
- "tolerationSeconds": "10"
}
], - "k8sPhase": "Pending",
- "ip": "10.244.1.1",
- "tenantId": 1001,
- "k8sPhaseUpdatedAt": "2022-06-08T11:28:24.131Z",
- "updatedAt": "2022-06-08T11:28:24.131Z",
- "deletedAt": "2022-08-12T19:28:24.131Z",
- "projectName": "my-project",
- "workloadName": "my-workload"
}
]
}
Retrieve the number of pods from a cluster.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "count": 1
}