CreateRun
Creates a run. A run belongs to an experiment and can be associated with a specific workload or executed as standalone code.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiexperiment:CreateRun |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/runs HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| Name |
string |
No |
The name of the run. The naming rules are as follows:
If the name is left empty during creation, a random ID (RunID) generated by the server is used as the name. |
myName |
| SourceType |
string |
No |
The source type of the PAI workload associated with the run. Valid values: TrainingService, DLC, or empty. This parameter is optional. Default value: empty. |
DLC |
| SourceId |
string |
No |
The ID of the PAI workload associated with the run. |
job-jdnhf***fnrimv |
| ExperimentId |
string |
Yes |
The ID of the experiment associated with the run. |
exp-6thbb5xrbmp***** |
| Labels |
array |
No |
The list of labels for the run. |
|
| Label |
No |
The label details. |
||
| Params |
array |
No |
The list of parameters for the run. |
|
| RunParam |
No |
The parameter details. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
ADF6D849-*****-7E7030F0CE53 |
| RunId |
string |
The run ID. |
run-1meoz7VJd2C6f**** |
Examples
Success response
JSON format
{
"requestId": "ADF6D849-*****-7E7030F0CE53",
"RunId": "run-1meoz7VJd2C6f****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.