Template

Templates are a pre-set configuration used to quickly configure and submit workloads using existing assets.

List templates.

Retrieve a list of templates.

SecuritybearerAuth
Request
query Parameters
name
string

Filter results by name.

scope
string

Filter results by scope.

projectId
integer <int32>

Filter results by project id. if scope filter is project, only assets from the specific project will be included in the response. otherwise, the response will include both project, department, cluster and tenant assets.

departmentId
string

Filter using the department id.

Example: departmentId=1
clusterId
string <uuid>

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: clusterId=d73a738f-fab3-430a-8fa3-5241493d7128
distributedFramework
string

Filter results to workload of type distributed and distributedFramework.

isDistributed
boolean

Filter results to workload of type distributed.

isTraining
boolean

Filter results to workload of type training.

isWorkspace
boolean

Filter results to workload of type workspace.

Responses
200

Request completed successfully.

401

Unauthorized

403

Forbidden

503

unexpected error

get/api/v1/asset/workload-template
Response samples
application/json
{
  • "entries": [
    ]
}

Create a template.

Use to create a template.

SecuritybearerAuth
Request
Request Body schema: application/json
required
object (AssetCreationRequest)
required
object (SpecificRunCreationFields)

The information needed for creating az template - a set of assets and an optional set of specific environment parameters.

Responses
202

Request accepted successfully.

400

Bad request.

401

Unauthorized

403

Forbidden

409

The specified resource already exists

503

unexpected error

post/api/v1/asset/workload-template
Request samples
application/json
{
  • "meta": {
    },
  • "spec": {
    }
}
Response samples
application/json
{
  • "meta": {
    },
  • "spec": {
    }
}

Get a template.

Retrieve the details of a template by id.

SecuritybearerAuth
Request
path Parameters
AssetId
required
string <uuid> non-empty

Unique identifier of the asset.

Responses
200

Request completed successfully.

401

Unauthorized

403

Forbidden

404

The specified resource was not found

503

unexpected error

get/api/v1/asset/workload-template/{AssetId}
Response samples
application/json
{
  • "meta": {
    },
  • "spec": {
    }
}

Update a template.

Use to update the details of a template by id.

SecuritybearerAuth
Request
path Parameters
AssetId
required
string <uuid> non-empty

Unique identifier of the asset.

Request Body schema: application/json
required
object (AssetUpdateRequest)
required
object (SpecificRunCreationFields)

The information needed for creating az template - a set of assets and an optional set of specific environment parameters.

Responses
202

Request accepted successfully.

400

Bad request.

401

Unauthorized

403

Forbidden

409

The specified resource already exists

503

unexpected error

put/api/v1/asset/workload-template/{AssetId}
Request samples
application/json
{
  • "meta": {
    },
  • "spec": {
    }
}
Response samples
application/json
{
  • "meta": {
    },
  • "spec": {
    }
}

Delete a template.

Use to delete a template by id.

SecuritybearerAuth
Request
path Parameters
AssetId
required
string <uuid> non-empty

Unique identifier of the asset.

Responses
202

Accepted.

401

Unauthorized

403

Forbidden

404

The specified resource was not found

503

unexpected error

delete/api/v1/asset/workload-template/{AssetId}
Response samples
application/json
{
  • "code": 202,
  • "message": "Request has been accepted."
}