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 where the experiment resides. For more information about how to obtain a workspace ID, see ListWorkspaces. Note
If you do not specify a workspace ID, the system returns the list of experiments in the default workspace. |
1517** |
| Labels |
string |
No |
The filter conditions for labels. Separate multiple conditions with commas (,). A single filter condition must be in the |
is_evaluation:true |
| SortBy |
string |
No |
The field to use for sorting in a paged query. Currently, only the GmtCreateTime field is supported for sorting. |
GmtCreateTime |
| Order |
string |
No |
The order in which to sort the results of 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 |
A list of sorting methods as strings. You can sort by the following fields: GmtCreateTime, Name, GmtModifiedTime, or ExperimentId. The sorting methods are DESC and ASC. The default is ASC. |
GmtCreateTime DESC,Name ASC |
| PageToken |
integer |
No |
The paging token. It starts from 0. The default is 0. |
0 |
| MaxResults |
integer |
No |
The maximum number of results to return. The default is 10. |
10 |
| Verbose |
boolean |
No |
Specifies whether to retrieve the LatestRun information related to the experiment. |
false |
| Options |
object |
No |
Optional parameters. |
|
| match_name_exactly |
string |
No |
Specifies whether to perform an exact match for the name. Valid values are "true" and "false". |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| requestId |
string |
The request ID. |
0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C |
| TotalCount |
integer |
The total number of records. |
5 |
| Experiments |
array |
The list of experiments. |
|
|
Experiment |
The details of an experiment. |
||
| NextPageToken |
integer |
The token for the next page. Save this token and include it in the next request to retrieve the next page of results. |
0 |
Examples
Success response
JSON format
{
"requestId": "0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C",
"TotalCount": 5,
"Experiments": [
{
"ExperimentId": "",
"Name": "",
"WorkspaceId": "",
"ArtifactUri": "",
"TensorboardLogUri": "",
"Labels": [
{
"Key": "key",
"Value": "value",
"GmtCreateTime": "2023-12-27T03:30:04Z",
"GmtModifiedTime": "2023-12-27T03:30:04Z",
"ExperimentId": "exp-890waerw09a0f"
}
],
"UserId": "",
"OwnerId": "",
"GmtCreateTime": "",
"GmtModifiedTime": "",
"RequestId": "",
"Accessibility": "",
"LatestRun": {
"Accessibility": "PRIVATE",
"SourceId": "train9s0afvjkf",
"SourceType": "TrainingService",
"WorkspaceId": "145883",
"Params": [
{
"Value": "",
"Key": ""
}
],
"Labels": [
{
"Value": "",
"RunId": "",
"GmtCreateTime": "",
"GmtModifiedTime": "",
"Key": ""
}
],
"GmtModifiedTime": "2021-01-30T12:51:33.028Z",
"Name": "testrun",
"Metrics": [
{
"Value": 0,
"Step": 0,
"Timestamp": 0,
"Key": ""
}
],
"OwnerId": "1631044****3440",
"ExperimentId": "exp-1zpfthdx******",
"UserId": "",
"RunId": "run-1qJhzJ2YXgX****",
"GmtCreateTime": "2021-01-30T12:51:33.028Z",
"RequestId": "5A14FA81-DD4E-******-6343FE44B941"
}
}
],
"NextPageToken": 0
}
Error codes
See for a complete list.
Release notes
See Release Notes for a complete list.