Updated on 2026-11-06 GMT+08:00

Updating a Ray Federation Endpoint

Function

This API is used to update a Ray Federation endpoint. This API is synchronous.

Calling Method

For details, see Calling APIs.

URI

PUT /v2/workspaces/{workspace_id}/ray-federations/{ray_federation_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

workspace_id

Yes

String

Definition: Workspace ID, which can be obtained by calling the Obtaining a Workspace ID API.

Constraints: N/A

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

ray_federation_id

Yes

String

Definition: Ray Federation endpoint ID, which can be obtained by calling the Listing Ray Federation Endpoints API.

Constraints: N/A

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition: User token. It is obtained by calling the Obtaining an IAM User Token API.

Constraints: N/A

Range: Up to 65,534 characters. Only letters, digits, and special characters are allowed. The token format is defined by IAM. For details about the character set, see the IAM documentation.

Default Value: N/A

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

name

No

String

Definition: Ray Federation endpoint name.

Constraints: The name cannot be modified.

Range: 1 to 63 characters. Only lowercase letters, digits, and hyphens (-) are allowed. It must start with a letter and end with a letter or digit.

Default Value: N/A

display_name

No

String

Definition: Ray Federation endpoint display name.

Constraints: N/A

Range: 1 to 63 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

description

No

String

Definition: Ray Federation endpoint description.

Constraints: N/A

Range: 0 to 1,024 characters. Exclamation marks (!), less-than signs (<), greater-than signs (>), equal signs (=), ampersands (&), double quotation marks ("), single quotation marks ('), at signs (@), number signs (#), percent signs (%), semicolons (;), left parentheses ((), right parentheses ()), vertical bars (|), asterisks (*), and backslashes () are not allowed.

Default Value: N/A

ray_cluster_list

No

Array of V2RayFederationRayClusterRequest objects

Definition: RayCluster endpoint list. The value will overwrite the existing list.

Constraints: Each RayCluster can belong to only one Ray Federation endpoint.

Range: 0 to 50.

Default Value: N/A

Table 4 V2RayFederationRayClusterRequest

Parameter

Mandatory

Type

Description

id

Yes

String

Definition: RayCluster endpoint ID, which can be obtained by calling the Listing Ray Federation Endpoints API.

Constraints: N/A

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

Response Parameters

Status code: 200

Table 5 Response body parameters

Parameter

Type

Description

id

String

Definition: Ray Federation endpoint ID.

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

name

String

Definition: Ray Federation endpoint name.

Range: 1 to 63 characters. Only lowercase letters, digits, and hyphens (-) are allowed. It must start with a letter and end with a letter or digit.

display_name

String

Definition: Ray Federation endpoint display name.

Range: 1 to 63 characters. Only letters, digits, and hyphens (-) are allowed.

description

String

Definition: Ray Federation endpoint description.

Range: The following characters are not allowed: exclamation marks (!), less-than signs (<), greater-than signs (>), equal signs (=), ampersands (&), double quotation marks (""), and single quotation marks ('). 0 to 1,024 characters.

status

String

Definition: Ray Federation endpoint status.

Range

  • RUNNING: Running.

  • LIMITED_AVAILABLE: Some endpoints are available.

  • FAULT: Fault.

  • WAITING: Waiting.

error

Error object

Definition: Text message content returned on failure, including the error code and error description.

ray_cluster_list

Array of V2RayFederationRayClusterResponse objects

Definition: RayCluster endpoint information list.

create_time

String

Definition: Resource creation time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00.

Range: N/A

update_time

String

Definition: Resource update time, in UTC, in ISO 8601 format, for example, 2025-01-10T03:37:12.000+00:00.

Range: N/A

creator

Creator object

Definition: Resource owner information.

Table 6 Error

Parameter

Type

Description

error_code

String

Definition: Error code on failure.

Range: 0 to 36 characters. Only letters, digits, periods (.), and underscores (_) are allowed.

error_msg

String

Definition: Error message on failure.

Range: 0 to 1,024 characters. Only letters, digits, and special characters are allowed.

Table 7 V2RayFederationRayClusterResponse

Parameter

Type

Description

id

String

Definition: RayCluster endpoint ID.

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

name

String

Definition: RayCluster endpoint name.

Range: 1 to 63 characters. Only lowercase letters, digits, and hyphens (-) are allowed. It must start with a letter and end with a letter or digit.

status

String

Definition: RayCluster endpoint status.

Range

  • CREATING: Creating.

  • RUNNING: Running.

  • CREATE_FAILED: Creation failed.

  • DELETING: Deleting.

  • DELETED: Deleted.

  • UPDATING: Updating.

  • UPDATE_FAILED: Update failed.

  • DELETE_FAILED: Deletion failed.

  • FROZEN: Frozen.

  • INACTIVE: Inactive.

  • ON_DEMAND_FROZEN: On-demand frozen.

  • ABNORMAL: Abnormal.

Table 8 Creator

Parameter

Type

Description

domain_name

String

Definition: Tenant name.

Range: 1 to 64 characters. Only letters, digits, and special characters are allowed.

domain_id

String

Definition: Tenant ID.

Range: 1 to 64 characters. Only letters, digits, and hyphens (-) are allowed.

user_name

String

Definition: Username.

Range: 1 to 64 characters. Only letters, digits, and underscores (_) are allowed.

user_id

String

Definition: User ID.

Range: 1 to 64 characters. Only letters, digits, and hyphens (-) are allowed.

Status code: 400

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 401

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 403

Table 11 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 404

Table 12 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 500

Table 13 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Example Requests

Update the Ray Federation endpoint name and RayCluster endpoint configuration.

PUT /v2/workspaces/{workspace_id}/ray-federations/{ray_federation_id}

{
  "name" : "federation-prod-01-updated",
  "display_name" : "Ray-Federation-endpoint-prod-01-updated.",
  "description" : "Updated description",
  "ray_cluster_list" : [ {
    "id" : "0b5633ba2b904511ad514346f4d23d4b"
  }, {
    "id" : "1b5633ba2b904511ad514346f4d23d4b"
  } ]
}

Example Responses

Status code: 200

{
  "id" : "0b5633ba2b904511ad514346f4d23d4b",
  "name" : "federation-prod-01-updated",
  "display_name" : "Ray-Federation-endpoint-prod-01-updated.",
  "description" : "Updated description.",
  "status" : "RUNNING",
  "error" : { },
  "ray_cluster_list" : [ {
    "id" : "0b5633ba2b904511ad514346f4d23d4b",
    "name" : "ray-cluster-example-01",
    "status" : "RUNNING"
  }, {
    "id" : "1b5633ba2b904511ad514346f4d23d4b",
    "name" : "ray-cluster-example-02",
    "status" : "RUNNING"
  } ],
  "create_time" : "2025-01-10T03:37:12.000+00:00",
  "update_time" : "2025-01-10T03:37:12.000+00:00",
  "creator" : {
    "domain_name" : "test",
    "domain_id" : "0676610f3a0a4c2c80c50bea7ddf18c1",
    "user_id" : "019e19fb78887b57b2f6c4174cd5a002",
    "user_name" : "developer"
  }
}

Status code: 400

{
  "error_code" : "AIDataLake.00010151",
  "error_msg" : "Parameter value is invalid.",
  "solution_msg" : "Please input valid parameter value."
}

Status code: 401

{
  "error_code" : "APIGW.0301",
  "error_msg" : "Incorrect IAM authentication information: decrypt token fail.",
  "solution_msg" : "Check whether the IAM authentication information is correct."
}

Status code: 403

{
  "error_code" : "AIDataLake.00010150",
  "error_msg" : "The operation is not allowed.",
  "solution_msg" : "Check whether the operation is allowed in the current status."
}

Status code: 404

{
  "error_code" : "AIDataLake.00010009",
  "error_msg" : "No resources found.",
  "solution_msg" : "Ensure the requested resource exists and the parameters are correct."
}

Status code: 500

{
  "error_code" : "AIDataLake.00011001",
  "error_msg" : "Internal error.",
  "solution_msg" : "Contact technical support or try again later."
}

Status Codes

Status Code

Description

200

Request succeeded.

400

Invalid request parameters.

401

Unauthorized.

403

Access denied.

404

Resource not found.

500

Internal server error.