ListExperiment
Retrieves a list of experiments.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiexperiment:ListExperiments |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/experiments HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The name of the experiment. |
exp-test |
| WorkspaceId |
string |
No |
The ID of the workspace to which the experiment belongs. For more information about how to obtain the workspace ID, see ListWorkspaces. Note
If you do not specify the workspace ID, the system returns the list of experiments in the default workspace. |
1517** |
| Labels |
string |
No |
The label filter conditions. Separate multiple conditions with commas (,).
The format of a single filter condition is |
is_evaluation:true |
| SortBy |
string |
No |
The field by which to sort the results of a paged query. Currently, only the GmtCreateTime field is supported for sorting. |
GmtCreateTime |
| Order |
string |
No |
The sort order of the specified field in a paged query. Valid values:
|
DESC |
| PageNumber |
integer |
No |
The page number. Pages start from 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| OrderBy |
string |
No |
The list of sort order strings. Supported fields for sorting include GmtCreateTime, Name, GmtModifiedTime, and ExperimentId. The sort order can be DESC or ASC. Default value: ASC. |
GmtCreateTime DESC,Name ASC |
| PageToken |
integer |
No |
The pagination token. Pages start from 0. Default value: 0. |
0 |
| MaxResults |
integer |
No |
The maximum number of results to return for the request. Default value: 10. |
10 |
| Verbose |
boolean |
No |
Specifies whether to retrieve the LatestRun information associated with the experiment. |
false |
| Options |
object |
No |
The optional parameters. |
|
| match_name_exactly |
string |
No |
Specifies whether the name is an exact match. Valid values: true and false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The ID of the request. |
0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C |
| TotalCount |
integer |
The total number of records. |
5 |
| Experiments |
array |
The list of experiments. |
|
| Experiment |
The details of the experiment. |
||
| NextPageToken |
integer |
The token for the next page. Record this token and pass it in the next request. |
0 |
Examples
Success response
JSON format
{
"requestId": "0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C",
"TotalCount": 5,
"Experiments": [
{
"ExperimentId": "exp-1zpfthdx******",
"Name": "exp-test",
"WorkspaceId": "1517**",
"ArtifactUri": "oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/test",
"TensorboardLogUri": "oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/tensorboard/",
"Labels": [
{
"Key": "key",
"Value": "value",
"GmtCreateTime": "2023-12-27T03:30:04Z",
"GmtModifiedTime": "2023-12-27T03:30:04Z",
"ExperimentId": "exp-890waerw09a0f"
}
],
"UserId": "1557702098******",
"OwnerId": "1631044****3440",
"GmtCreateTime": "2021-01-30T12:51:33.028Z",
"GmtModifiedTime": "2021-01-30T12:51:33.028Z",
"RequestId": "0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C",
"Accessibility": "PRIVATE",
"LatestRun": {
"Accessibility": "PRIVATE",
"SourceId": "train9s0afvjkf",
"SourceType": "TrainingService",
"WorkspaceId": "145883",
"Params": [
{
"Value": "",
"Key": ""
}
],
"Labels": [
{
"Value": "true",
"RunId": "run-1qJhzJ2YXgX****",
"GmtCreateTime": "2023-12-27T03:30:04Z",
"GmtModifiedTime": "2023-12-27T03:30:04Z",
"Key": "is_evaluation"
}
],
"GmtModifiedTime": "2021-01-30T12:51:33.028Z",
"Name": "testrun",
"Metrics": [
{
"Value": 0,
"Step": 0,
"Timestamp": 0,
"Key": "loss"
}
],
"OwnerId": "163104*****3440",
"ExperimentId": "exp-1zpfthdx******",
"UserId": "1557702098******",
"RunId": "run-1qJhzJ2YXgX****",
"GmtCreateTime": "2021-01-30T12:51:33.028Z",
"RequestId": "5A14FA81-DD4E-******-6343FE44B941"
}
}
],
"NextPageToken": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.