Skip to navigation

Create a distributed training.

View as Markdown
Use to create a distributed training.

Authentication

AuthorizationBearer
Bearer authentication

Request

This endpoint expects an object.
namestringRequiredformat: ".*">=1 character
The name of the workload.
projectIdstringRequiredformat: ".*"
The id of the project.
clusterIdstringRequiredformat: "uuid"
The id of the cluster.
useGivenNameAsPrefixbooleanOptionalDefaults to false
When true, the requested name will be treated as a prefix. The final name of the workload will be composed of the name followed by a random set of characters.
templateIdstring or nullOptionalformat: "uuid"
The unique identifier of the template to use for submitting this workload. The combined values provided in the spec, template and assets will be used to create the workload.
specobjectOptional
masterSpecSameAsWorkerbooleanOptional
used for distributed workloads to indicate that the master spec should be the same as the worker spec. in this case, masterSpec should not be specified.
masterSpecobjectOptional

Response

Request completed successfully.
namestringformat: ".*">=1 character
The name of the workload.
requestedNamestring
The name as was requested for the workload. If useGivenNameAsPrefix, in the creation request, is false, name and requestedName should be identical. Otherwise, name should be composed of requestedName followed by a suffix of random characters.
workloadIdstringformat: "uuid"
A unique ID of the workload.
projectIdstringformat: ".*"
The id of the project.
clusterIdstringformat: "uuid"
The id of the cluster.
createdBystring
The user who created the workload
createdAtdatetime
The creation time of the workload.
desiredPhaseenum
The desired phase of the workload.
Allowed values:
departmentIdstringOptionalformat: ".*">=1 character
The id of the department.
deletedAtdatetime or nullOptional
The deletion time of the workload.
actualPhaseenumOptional
specobjectOptional
masterSpecSameAsWorkerbooleanOptional
used for distributed workloads to indicate that the master spec should be the same as the worker spec. in this case, masterSpec should not be specified.
masterSpecobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
503
Service Unavailable Error