Pods

Retrieve data about workload pods from your NVIDIA Run:ai platform.

Deprecated

get all pods from a specific cluster. Deprecated - please use api/v1/workloads/pods instead

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
uuidstring · uuidRequired

Unique identifier of the cluster

Responses
chevron-right
200

Expected response to a valid request

application/json
podIdstringRequired

Identifier of the pod running the job.

jobIdstring · uuidRequired

Unique identifier of the job.

podGroupIdstringOptional

This had been used as jobId. Remained here for backward compatibility

clusterUuidstring · uuidRequired

Unique identifier of the cluster.

podNamestringRequired

The name of the pod running the job.

imageNamestringRequired

The name of the image executed by the pod.

nodeIdstringOptional

Unique identifier of the node.

phasestringRequired
statusstringOptional
createdinteger · int64Required

Creation time of the pod.

completedinteger · int64Required

Completion time of the pod.

startedinteger · int64Optional

The time when the pod started executing.

lastUpdatedinteger · int64Required

Last time the pod details were updated.

dynamicDataobjectOptional
existsInClusterbooleanOptional
nodePoolstringOptional

The node pool of the pod.

namespacestringOptional

The namespace of the pod.

get
/v1/k8s/clusters/{uuid}/pods

List pods.

get

Retrieve a list of pods from a cluster.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
deletedbooleanOptional

Return only deleted resources when true.

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
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
sortBystring · enumOptional

Sort results using a parameter.

Possible values:
filterBystring[]Optional

Filter results using 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: ["nodeName!=some-node-name"]
verbositystring · enumOptional

response verbosity level. if full, the response includes workloadName and projectName fields.

Default: briefExample: fullPossible values:
completedstringOptional

Return only completed resources when 'true', return only non-completed resources when 'false'. By default, or when empty, returns all resources.

Default: all
Responses
chevron-right
200

Executed successfully.

application/json
nextintegerOptionalExample: 1
get
/api/v1/workloads/pods

Get pod metrics data.

get

Retrieve pod's metrics data for use in analysis applications.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
workloadIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the workload.

podIdstring · uuidRequired

The requested pod id.

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
Responses
chevron-right
200

Executed successfully.

get
/api/v1/workloads/{workloadId}/pods/{podId}/metrics

Get workload pods by id.

get

Retrieve the details of workload pods by workload id.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
workloadIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the workload.

Query parameters
deletedbooleanOptional

Return only deleted resources when true.

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
Responses
chevron-right
200

Executed successfully.

application/json
nextintegerOptionalExample: 1
get
/api/v1/workloads/{workloadId}/pods

Get pods count.

get

Retrieve the number of pods from a cluster.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
deletedbooleanOptional

Return only deleted resources when true.

filterBystring[]Optional

Filter results using 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: ["nodeName!=some-node-name"]
Responses
chevron-right
200

Executed successfully.

application/json
countinteger · int64RequiredExample: 1
get
/api/v1/workloads/pods/count

Last updated