GetRayHistoryServer

Updated at:

Queries a Ray history server.

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:GetRayHistoryServer

get

*All Resource

*

None None

Request syntax

GET /api/v1/rayhistoryservers/{RayHistoryServerId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

RayHistoryServerId

string

Yes

The ID of the Ray history server.

rhsxxx

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

WorkspaceId

string

The ID of the workspace to which the job belongs.

46099

DisplayName

string

The display name of the job.

my-ray-history-server

UserId

string

The ID of the user to which the job belongs.

123456789

Username

string

The username of the user to which the job belongs.

myusername

TenantId

string

The ID of the tenant.

10**************14

RayHistoryServerId

string

The ID of the Ray history server.

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 ID of the resource group where the job runs.

quotaxxx

ResourceName

string

The name of the resource where the job runs.

my-resource-name

Status

string

The status.

running

ReasonCode

string

The status detail code.

NotFound

ReasonMessage

string

The status details.

""

GmtCreateTime

string

The creation time in UTC.

2021-01-12T14:35:01Z

GmtModifyTime

string

The modification time in UTC.

2021-01-12T14:36:00Z

GmtFinishTime

string

The completion time in UTC.

2021-01-12T15:36:08Z

MaxRuntimeMinutes

integer

The maximum runtime in minutes.

1000

EcsSpec

string

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

Important Prices vary by specification.

ecs.g6.large

Accessibility

string

The visibility.

PRIVATE

Examples

Success response

JSON format

{
  "WorkspaceId": "46099",
  "DisplayName": "my-ray-history-server",
  "UserId": "123456789",
  "Username": "myusername",
  "TenantId": "10**************14",
  "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": "quotaxxx",
  "ResourceName": "my-resource-name",
  "Status": "running",
  "ReasonCode": "NotFound",
  "ReasonMessage": "\"\"",
  "GmtCreateTime": "2021-01-12T14:35:01Z",
  "GmtModifyTime": "2021-01-12T14:36:00Z",
  "GmtFinishTime": "2021-01-12T15:36:08Z",
  "MaxRuntimeMinutes": 1000,
  "EcsSpec": "ecs.g6.large",
  "Accessibility": "PRIVATE"
}

Error codes

HTTP status code

Error code

Error message

Description

404 InvalidRayHistoryServer.NotFound The specified RayHistoryServer does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.