ListExperiment

Updated at:

Retrieves a list of experiments.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 Key=Value.

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:

  • ASC: ascending order.

  • DESC: descending order. Default value: DESC.

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.