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",
- "revisionId": "bae12d01-48af-47b3-9304-b09ef0081cd6",
- "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": "alpine",
- "image": "alpine: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",
- "revisionId": "bae12d01-48af-47b3-9304-b09ef0081cd6",
- "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": "alpine",
- "image": "alpine: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
}
Retrieve the details of revision pods by revision id. Supported for clusters v2.21+.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "pods": [
- {
- "name": "pod-of-a-very-important-job",
- "priorityClassName": "high-priority",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "workloadId": "06d16c5d-4728-42fa-b573-3b11820d999f",
- "revisionId": "bae12d01-48af-47b3-9304-b09ef0081cd6",
- "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": "alpine",
- "image": "alpine: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"
}
]
}