Workload templates

This set of endpoints manages workload templates used to define reusable workload configurations across various workload types in the NVIDIA Run:ai platform. Templates help standardize workload definitions for consistent submission and resource usage across projects and users.

List templates. [Experimental]

get

Retrieve all available templates.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
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 by parameter.

Possible values:
filterBystring[]Optional

Filter results by 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 contain, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-template-name","createdAt>=2021-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
complyToProjectinteger · int32Optional

Include workload creation compliance information of an asset, for a given project, as part of the response. To check compliance, you need to provide both project id and workload type.

complyToWorkloadTypestring · enumOptional

Include workload creation compliance information of an asset, for a given workload type, as part of the response. To check compliance, you need to provide both project id and workload type.

Possible values:
complyToReplicaTypestring · enumOptional

Include workload creation compliance information of an asset, for a given replica type, as part of the response. To check compliance, you need to provide both project id and workload type. For distributed, replica type should be provided as well.

Possible values:
Responses
get
/api/v1/workload-templates

Template name availability

get

Check if a given template name creates naming conflicts under the given scope. Returns conflict (409) in case the name is not available, or 204 (no content) if it is ok.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
templateNamestring · min: 1Required

The name of the template.

Example: my-template-name
scopeTypestring · enumRequired

The resource scope type to filter by.

Possible values:
scopeIdstringOptional

filter by scope id

Responses
chevron-right
204

The name is available to use

No content

get
/api/v1/workload-templates/name-availability

No content

Get a template, any type. [Experimental]

get

Retrieve the details of a template using its id.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
get
/api/v1/workload-templates/{templateId}

Count templates. [Experimental]

get

Get the total number of templates.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by 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 contain, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-template-name","createdAt>=2021-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
get
/api/v1/workload-templates/count

List all workspace templates. [Experimental]

get

List all workspace templates.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
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 by parameter.

Possible values:
filterBystring[]Optional

Filter results by 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 contain, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-template-name","createdAt>=2021-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
complyToProjectinteger · int32Optional

Include workload creation compliance information of an asset, for a given project, as part of the response. To check compliance, you need to provide both project id and workload type.

Responses
get
/api/v1/workload-templates/workspaces

Create a new workspace template. [Experimental]

post

Create a new workspace template.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
and
and
anyOptional
Responses
post
/api/v1/workload-templates/workspaces

Retrieve a specific workspace template by ID. [Experimental]

get

Retrieve a specific workspace template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
get
/api/v1/workload-templates/workspaces/{templateId}

Update a workspace template by ID. [Experimental]

put

Update a workspace template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
and
and
anyOptional
Responses
put
/api/v1/workload-templates/workspaces/{templateId}

Delete a workspace template by ID. [Experimental]

delete

Delete a workspace template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
204

No Content.

No content

delete
/api/v1/workload-templates/workspaces/{templateId}

No content

Patch a workspace template by ID. [Experimental]

patch

Patch a workspace template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
and
and
and
anyOptional
Responses
patch
/api/v1/workload-templates/workspaces/{templateId}

List all training templates. [Experimental]

get

List all training templates.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
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 by parameter.

Possible values:
filterBystring[]Optional

Filter results by 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 contain, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-template-name","createdAt>=2021-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
complyToProjectinteger · int32Optional

Include workload creation compliance information of an asset, for a given project, as part of the response. To check compliance, you need to provide both project id and workload type.

Responses
get
/api/v1/workload-templates/trainings

Create a new training template. [Experimental]

post

Create a new training template.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
and
and
anyOptional
Responses
post
/api/v1/workload-templates/trainings

Retrieve a specific training template by ID. [Experimental]

get

Retrieve a specific training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
get
/api/v1/workload-templates/trainings/{templateId}

Update a training template by ID. [Experimental]

put

Update a training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
and
and
anyOptional
Responses
put
/api/v1/workload-templates/trainings/{templateId}

Delete a training template by ID. [Experimental]

delete

Delete a training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
204

No Content.

No content

delete
/api/v1/workload-templates/trainings/{templateId}

No content

Patch a training template by ID. [Experimental]

patch

Patch a training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
and
and
and
anyOptional
Responses
patch
/api/v1/workload-templates/trainings/{templateId}

List all distributed training templates. [Experimental]

get

List all distributed training templates.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
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 by parameter.

Possible values:
filterBystring[]Optional

Filter results by 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 contain, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-template-name","createdAt>=2021-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
complyToProjectinteger · int32Optional

Include workload creation compliance information of an asset, for a given project, as part of the response. To check compliance, you need to provide both project id and workload type.

complyToReplicaTypestring · enumOptional

Include workload creation compliance information of an asset, for a given replica type, as part of the response. To check compliance, you need to provide both project id and workload type. For distributed, replica type should be provided as well.

Possible values:
Responses
get
/api/v1/workload-templates/distributed

Create a new distributed training template. [Experimental]

post

Create a new distributed training template.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
and
and
anyOptional
and
Responses
post
/api/v1/workload-templates/distributed

Get a specific distributed training template by ID. [Experimental]

get

Get a specific distributed training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
get
/api/v1/workload-templates/distributed/{templateId}

Update a distributed training template by ID. [Experimental]

put

Update a distributed training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
and
and
anyOptional
and
Responses
put
/api/v1/workload-templates/distributed/{templateId}

Delete a distributed training template by ID. [Experimental]

delete

Delete a distributed training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
204

No Content.

No content

delete
/api/v1/workload-templates/distributed/{templateId}

No content

Patch a distributed training template by ID. [Experimental]

patch

Patch a distributed training template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
and
anyOptional
and
Responses
patch
/api/v1/workload-templates/distributed/{templateId}

List all inference templates.

get

List all inference templates.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
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 by parameter.

Possible values:
filterBystring[]Optional

Filter results by 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 contain, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-template-name","createdAt>=2021-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
complyToProjectinteger · int32Optional

Include workload creation compliance information of an asset, for a given project, as part of the response. To check compliance, you need to provide both project id and workload type.

Responses
get
/api/v1/workload-templates/inferences

Create a new inference template.

post

Create a new inference template.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
and
and
anyOptional
Responses
post
/api/v1/workload-templates/inferences

Get a specific inference template by ID.

get

Get a specific inference template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
get
/api/v1/workload-templates/inferences/{templateId}

Delete an inference template by ID.

delete

Delete an inference template by ID.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
templateIdstring · uuidRequired

The Universally Unique Identifier (UUID) of the template.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
204

No Content.

No content

delete
/api/v1/workload-templates/inferences/{templateId}

No content

Last updated