Help Center/ AI DataLake/ API Reference/ Endpoint Management/ Querying Endpoint Configuration Restrictions
Updated on 2026-11-06 GMT+08:00

Querying Endpoint Configuration Restrictions

Function

This API is used to query the endpoint configuration limits of each specification in a specified resource pool. This API is synchronous. There are no accompanying APIs or specific scenarios.

Calling Method

For details, see Calling APIs.

URI

GET /v2/workspaces/{workspace_id}/endpoint-limit

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

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

engine_type

Yes

String

Definition: Endpoint engine type.

Constraints: N/A

Range

  • AuraJob: AuraJob engine.

  • SparkSql: SparkSQL engine.

  • SparkJob: SparkJob engine.

  • FlinkJob: FlinkJob engine.

  • AuraJobV2: AuraJobV2 engine.

  • RayJob: RayJob engine.

  • RayCluster: RayCluster engine.

Default Value: N/A

id

No

String

Definition: Endpoint ID. You can obtain the endpoint ID by calling the Listing Endpoints API.

Constraints: N/A

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

Default Value: N/A

compute_id

Yes

String

Definition: Compute resource ID, which can be obtained by calling the Listing Compute Resources API.

Constraints: N/A

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

Default Value: N/A

Request Parameters

Table 3 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

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

[items]

Array of ResourceLimit objects

Definition: Resource limit.

Table 5 ResourceLimit

Parameter

Type

Description

type

String

Definition: Resource type.

Range

  • CPU: Central processing unit.

  • GPU: Graphics processing unit.

  • NPU: Neural processing unit.

spec_code

String

Definition: Resource specification code, which identifies a specific resource specification in a resource pool and is generated by the system, for example, aidatalake.cpu.x86.general.1c2g.

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

compute_allocatable

ComputeAllocatable object

Definition: Allocatable resource summary.

compute_size

ComputeSize object

Definition: Total resource information.

worker_sizes

Array of WorkerSizeInfo objects

Definition: List of optional resource configuration enumerations.

Table 6 ComputeAllocatable

Parameter

Type

Description

cpu

Integer

Definition: Remaining number of CPUs, in millicores.

Range: Less than or equal to the CPU size of this specification in the resource pool.

mem

Integer

Definition: Remaining memory size, in MB.

Range: Less than or equal to the memory size of this specification in the resource pool.

accelerator

Integer

Definition: Remaining number of GPUs, in cards.

Range: Less than or equal to the GPU size of this specification in the resource pool.

Table 7 ComputeSize

Parameter

Type

Description

cpu

Integer

Definition: Total number of CPU cores, in millicores.

Range: Equal to the CPU size of this specification in the resource pool.

mem

Integer

Definition: Total memory size, in MB.

Range: Equal to the memory size of this specification in the resource pool.

accelerator

Integer

Definition: Total number of GPUs, in cards.

Range: Equal to the number of GPUs of this specification in the resource pool.

Table 8 WorkerSizeInfo

Parameter

Type

Description

cpu

Integer

Definition: CPU size in optional resource configurations, that is, the CPU size configured for a single worker, in millicores.

Range: Less than or equal to the CPU size of this specification in the resource pool.

mem

Integer

Definition: Memory size in optional resource configurations, that is, the memory size configured for a single worker, in MB.

Range: Less than or equal to the memory size of this specification in the resource pool.

accelerator

Integer

Definition: Number of GPUs in optional resource configurations, that is, the number of GPUs configured for a single worker.

Range: Less than or equal to the GPU size of this specification in the resource pool.

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

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.

Status code: 500

Table 14 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

Query the endpoint configuration restrictions of a specified resource pool, including the resource size and remaining resources of each specification in the resource pool.

GET /v2/workspaces/{workspace_id}/endpoint-limit?engine_type=AuraJob&compute_id=0150a336-dda9-431c-9ef1-af02ec424a5e

Example Responses

Status code: 200

[ {
  "type" : "CPU",
  "spec_code" : "aidatalake.cpu.x86.general.1c2g",
  "compute_allocatable" : {
    "cpu" : 1000,
    "mem" : 2000
  },
  "compute_size" : {
    "cpu" : 10000,
    "mem" : 20000
  }
}, {
  "type" : "GPU",
  "spec_code" : "aidatalake.gpu.m.hnt02.8x.d",
  "compute_allocatable" : {
    "cpu" : 500,
    "mem" : 1000,
    "accelerator" : 2
  },
  "compute_size" : {
    "cpu" : 5000,
    "mem" : 10000,
    "accelerator" : 4
  }
} ]

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

{
  "error_code" : "common.00000408",
  "error_msg" : "timeout exception occurred",
  "solution_msg" : "Try again later. If the problem persists, contact technical support."
}

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.

408

Request timeout.

500

Internal server error.