Workloads V2

The Workloads V2 API allows you to create, retrieve, and delete workloads that originate from third-party ML frameworks, tools, or the broader Kubernetes ecosystem. These workloads are registered in the platform through the Workload Types API, some are already registered in NVIDIA Run:ai, while others can be added by administrators. Each submission combines the user’s Kubernetes manifest with NVIDIA Run:ai scheduling metadata, enabling consistent orchestration, monitoring, and governance. See Extending workload support for more details.

Create a workload

Submit a workload with metadata and a Kubernetes manifest [Experimental].

SecuritybearerAuth
Request
Request Body schema: application/json
required

Workload metadata and manifest

required
object (WorkloadV2MetadataCreateParams)
object (Manifest)

The full Kubernetes manifest for the workload in JSON form. Mutually exclusive with manifestEncodedBase64.

manifestBase64Encoded
string <byte> (ManifestEncoded)

Kubernetes YAML manifest encoded in base 64. Mutually exclusive with manifest.

Responses
201

Workload created successfully

400

Bad request.

401

Unauthorized

403

Forbidden

409

The specified resource already exists

500

unexpected error

503

unexpected error

post/api/v2/workloads
Request samples
application/json
{
  • "metadata": {
    },
  • "manifest": {
    },
  • "manifestBase64Encoded": "YXBpVmVyc2lvbjogdjEKa2luZDogUG9kCm1ldGFkYXRhOgogIG5hbWU6IG15LXBvZApzcGVjOgogIGNvbnRhaW5lcnM6CiAgLSBuYW1lOiBuZ2lueAogICAgaW1hZ2U6IG5naW54OmxhdGVzdAo="
}
Response samples
application/json
{
  • "metadata": {
    },
  • "desiredPhase": "Running",
  • "workloadManifest": {
    },
  • "rawManifest": {
    }
}

Get a specific workload

Retrieve details of a specific workload by ID [Experimental]

SecuritybearerAuth
Request
path Parameters
WorkloadV2Id
required
string <uuid>

The ID of the workload.

Responses
200

Successfully retrieved the workload

401

Unauthorized

403

Forbidden

404

The specified resource was not found

500

unexpected error

503

unexpected error

get/api/v2/workloads/{WorkloadV2Id}
Response samples
application/json
{
  • "workload": {
    },
  • "syncInfo": {
    }
}

Delete a workload

Delete a specific workload by ID [Experimental]

SecuritybearerAuth
Request
path Parameters
WorkloadV2Id
required
string <uuid>

The ID of the workload.

Responses
202

Deletion request accepted.

401

Unauthorized

403

Forbidden

404

The specified resource was not found

500

unexpected error

503

unexpected error

delete/api/v2/workloads/{WorkloadV2Id}
Response samples
application/json
{
  • "metadata": {
    },
  • "desiredPhase": "Running",
  • "workloadManifest": {
    },
  • "rawManifest": {
    }
}