ListRayHistoryServers

Updated at:

Lists RayHistoryServer resources.

Operation description

Before you call this operation, make sure that you fully understand the billing methods and pricing of PAI-DLC.

Important The total length of parameters for the CreateJob operation, including system-generated parameters, cannot exceed 65,536 bytes.

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

paidlc:ListRayHistoryServers

list

*All Resource

*

None None

Request syntax

GET /api/v1/rayhistoryservers HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

No

The workspace ID. For information about how to obtain the workspace ID, see ListWorkspaces.

268

DisplayName

string

No

The display name of the job.

test

Status

string

No

The status of the RayHistoryServer. Valid values:

  • Creating: The RayHistoryServer is being created.

  • Queuing: The RayHistoryServer is in the queue.

  • Running: The RayHistoryServer is running.

  • Stopped: The RayHistoryServer is stopped.

  • Failed: The RayHistoryServer failed.

running

PageNumber

integer

No

The page number for a paging query. Pages start from 1.

1

PageSize

integer

No

The number of RayHistoryServer resources to return on each page in a paging query.

10

SortBy

string

No

The field by which to sort the returned results. Valid values:

  • DisplayName

  • GmtCreateTime

  • UserId

  • ResourceId

  • Status

  • GmtModifyTime

GmtCreateTime

Order

string

No

The sort order. Valid values:

  • desc: descending order

  • asc: ascending order

desc

ShowOwn

boolean

No

Specifies whether to return only the RayHistoryServer resources created by the current logon user.

true

StartTime

string

No

The start time.

2020-11-08T16:00:00Z

EndTime

string

No

The end time of the query interval. The creation time of the job is used for filtering.

2020-11-09T16:00:00Z

ModifiedAfter

string

No

The modification time used for filtering.

2020-11-09T16:00:00Z

ResourceId

string

No

The resource group ID. For more information about how to query the ID of a dedicated resource group, see Manage resource quotas.

quotaxxx

PaymentType

string

No

The billing method. Valid values:

  • PrePaid

  • PostPaid

Postpaid

IdPrefix

string

No

The ID prefix.

Filter by ID prefix

UserIdForFilter

string

No

The user ID used for filtering.

123456789

Username

string

No

The username used for filtering.

myusername

StoragePath

string

No

The storage path for Ray logs.

oss://bucket-test-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/tmp

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

473469C7-AA6F-4DC5-B3DB-xxxxxxx

TotalCount

integer

The total number of jobs that meet the filter conditions.

1

RayHistoryServers

array<object>

The list of RayHistoryServer resources.

object

The list of RayHistoryServer resources.

WorkspaceId

string

The workspace ID. For information about how to obtain the workspace ID, see ListWorkspaces.

153466

DisplayName

string

The display name of the job.

AEB-RECHARGE-TASK-14478-1778466397-main-4-

UserId

string

The user ID.

123456789

Username

string

The username.

myusername

TenantId

string

The tenant ID.

1335237941080704

RayHistoryServerId

string

The ID of the created RayHistoryServer.

rhsxxx

RayHistoryServerUrl

string

The Ray Dashboard URL.

https://rhsxxx-dashboard.dsw-gateway-cn-wulanchabu.data.aliyun.com/

StoragePath

string

The storage path for Ray logs.

oss://bucket-test-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/tmp

ResourceId

string

The resource group ID. For more information about how to query the ID of a dedicated resource group, see Manage resource quotas.

quotazoqd53w0q75

ResourceName

string

The name of the resource on which the job runs.

OWNER_REPO

EcsSpec

string

The hardware specifications of the public resource group. To access the detailed list of specifications, see PAI-DLC billing.

Important Prices vary by specification.

ecs.g6.xlarge

Accessibility

string

The visibility of the job. Valid values:

  • PUBLIC: The job is visible to all users in the workspace.

  • PRIVATE: The job is visible only to you and administrators in the workspace. This is the default value.

PUBLIC

Status

string

The status of the TensorBoard. Valid values:

  • Creating: The TensorBoard is being created.

  • Running: The TensorBoard is running.

  • Stopped: The TensorBoard is stopped.

  • Succeeded: The TensorBoard succeeded.

  • Failed: The TensorBoard failed.

Created

ReasonCode

string

The status detail code.

InvalidParameter

ReasonMessage

string

The status details.

PyTorchJob dlc1tx4b9lw3ntb9 is running.

GmtCreateTime

string

The time when the job was created. The time is in UTC.

2025-12-30T02:43:52Z

GmtModifyTime

string

The time when the job was last modified. The time is in UTC.

2026-05-19T04:05:46Z

GmtFinishTime

string

The end time. The time is in UTC.

2026-01-27T09:17:11Z

MaxRuntimeMinutes

integer

The maximum runtime duration.

1000

Examples

Success response

JSON format

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-xxxxxxx",
  "TotalCount": 1,
  "RayHistoryServers": [
    {
      "WorkspaceId": "153466",
      "DisplayName": "AEB-RECHARGE-TASK-14478-1778466397-main-4-",
      "UserId": "123456789",
      "Username": "myusername",
      "TenantId": "1335237941080704",
      "RayHistoryServerId": "rhsxxx",
      "RayHistoryServerUrl": "https://rhsxxx-dashboard.dsw-gateway-cn-wulanchabu.data.aliyun.com/",
      "StoragePath": "oss://bucket-test-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/tmp",
      "ResourceId": "quotazoqd53w0q75",
      "ResourceName": "OWNER_REPO",
      "EcsSpec": "ecs.g6.xlarge",
      "Accessibility": "PUBLIC",
      "Status": "Created",
      "ReasonCode": "InvalidParameter",
      "ReasonMessage": "PyTorchJob dlc1tx4b9lw3ntb9 is running.",
      "GmtCreateTime": "2025-12-30T02:43:52Z",
      "GmtModifyTime": "2026-05-19T04:05:46Z",
      "GmtFinishTime": "2026-01-27T09:17:11Z",
      "MaxRuntimeMinutes": 1000
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.