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

Listing Endpoints

Function

This API is used to list endpoints under a workspace. This API is synchronous.

Calling Method

For details, see Calling APIs.

URI

GET /v2/workspaces/{workspace_id}/endpoints

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_types

No

Array of strings

Definition: List of endpoint engine types. Range

  • AuraJob: AuraJob engine.

  • SparkSql: SparkSQL engine.

  • SparkJob: SparkJob engine.

  • FlinkJob: FlinkJob engine.

  • AuraJobV2: AuraJobV2 engine.

  • RayCluster: RayCluster engine.

  • RayJob: RayJob engine.

Constraints: N/A

compute_id

No

String

Definition: Compute resource ID. You can obtain the compute resource ID 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

offset

No

Integer

Definition: Page offset.

Constraints: N/A

Range: 0 to 10000.

Default Value: 0.

limit

No

Integer

Definition: Page size.

Constraints: N/A

Range: 1 to 1000.

Default Value: 100.

name

No

String

Definition: Endpoint name, used for exact search.

Constraints: N/A

Range: 1 to 63 characters. Must comply with RFC 1035. Only lowercase letters, digits, and hyphens (-) are allowed. The value must start with a lowercase letter and end with a lowercase letter or digit.

Default Value: N/A

storage_id

No

String

Definition: Storage resource ID.

Constraints: N/A

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

Default Value: N/A

tags

No

Array of strings

Definition: Tag filter criteria, supporting multiple tags. Range: Format: key#value1,value2. Separate multiple values with commas (,).

Constraints: Up to 10 tags.

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

total

Integer

Definition: Total number of records.

Range: N/A

endpoints

Array of V2EndpointBriefInfo objects

Definition: Endpoint list.

Table 5 V2EndpointBriefInfo

Parameter

Type

Description

id

String

Definition: Endpoint ID.

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

name

String

Definition: Endpoint name.

Range: 1 to 63 characters. Must comply with RFC 1035. Only lowercase letters, digits, and hyphens (-) are allowed. The value must start with a lowercase letter and end with a lowercase letter or digit.

display_name

String

Definition: Endpoint display name.

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

description

String

Definition: Resource description.

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

status

String

Definition: 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.

  • TRIAL_ENDED: Trial ended.

  • ON_DEMAND_FROZEN: On-demand frozen.

engine

One of:

Definition: Engine configuration.

capacity

Array of V2EndpointCapacityItem objects

Definition: Compute resource capacity configuration.

resource_type

String

Definition: Resource usage mode.

Range

  • RESERVED: Reserved.

  • ONDEMAND: On-demand.

  • HYBRID: Hybrid.

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

compute_id

String

Definition: Compute resource ID.

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

credential

CredentialConfig object

Definition: Endpoint-level user agency name, used for authentication of endpoint storage and other configurations, and as the default agency for job execution.

creator

Creator object

Definition: Resource owner information.

tags

Array of ResourceTag objects

Definition: Resource tag list.

error

Error object

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

Table 6 SparkJob

Parameter

Type

Description

type

String

Definition: Engine type.

Range: SparkJob

spark_config

Map<String,String>

Definition: Spark parameter configuration, where the key in the Map is the Spark configuration parameter name and the value is the corresponding parameter value.

scheduling_config

SparkSchedulingConfig object

Definition: SparkJob scheduling configuration.

staging_config

StagingConfig object

Definition: Temporary storage configuration.

image

V2ImageBriefInfo object

Definition: Image configuration.

Table 7 SparkSchedulingConfig

Parameter

Type

Description

max_concurrent_jobs

Integer

Definition: Maximum number of concurrent jobs for the endpoint.

Range: 1 to 1000.

scheduling_policy

String

Definition: Job scheduling policy. Options include RANDOM and FIFO.

Range

  • RANDOM: Random.

  • FIFO: First in, first out.

fifo_tolerance_seconds

Integer

Definition: First in first out (FIFO) allowed concurrency time, in seconds.

Range: 0 to 3600.

Table 8 SparkSql

Parameter

Type

Description

spark_config

Map<String,String>

Definition: Spark parameter configuration, where the key in the Map is the Spark configuration parameter name and the value is the corresponding parameter value.

staging_config

StagingConfig object

Definition: Temporary storage configuration.

cluster_config

SparkClusterConfig object

Definition: Cluster configuration.

max_endpoint_concurrent_queries

Integer

Definition: Maximum number of concurrent SQL queries for the endpoint.

Range: 1 to 1,000.

image

V2ImageBriefInfo object

Definition: Image configuration.

Table 9 SparkClusterConfig

Parameter

Type

Description

aging_time

Integer

Definition: Cluster aging time, in hours.

Range: 1 to 12.

auto_stop_config

AutoStopConfig object

Definition: Cluster auto-stop configuration.

Range: N/A

driver_resource_spec

SparkDriverResourceSpec object

Definition: Driver resource configuration for the Spark SQL endpoint.

Range: N/A

executor_resource_spec

SparkExecutorResourceSpec object

Definition: Executor resource configuration for the Spark SQL endpoint.

Range: N/A

min_clusters

Integer

Definition: Minimum number of clusters.

Range: 0 to 20

max_clusters

Integer

Definition: Maximum number of clusters.

Range: 2 to 20

max_cluster_concurrent_queries

Integer

Definition: Maximum number of concurrent SQL statements in a cluster.

Range: 1 to 30

Table 10 AutoStopConfig

Parameter

Type

Description

enabled

Boolean

Definition: Specifies whether to automatically stop the cluster.

Range

  • true: Enable automatic cluster stop.

  • false: Disable automatic cluster stop.

idle_timeout_minutes

Integer

Definition: Idle timeout period for automatically stopping the cluster, in minutes.

Range: 5 to 360

Table 11 SparkDriverResourceSpec

Parameter

Type

Description

cpu

Integer

Definition: Spark driver CPU, in millicores.

Range: 1,000 to 48,000.

memory

Integer

Definition: Spark Driver memory size, in MB. 1 GB = 1,024 MB.

Range: 1,024 to 393,216.

Table 12 SparkExecutorResourceSpec

Parameter

Type

Description

cpu

Integer

Definition: Spark executor CPU, in millicores.

Range: 1,000 to 48,000.

memory

Integer

Definition: Spark Executor memory size, in MB. 1 GB = 1,024 MB.

Range: 1,024 to 393,216.

min_executor_numbers

Integer

Definition: Minimum number of Spark Executors.

Range: 1 to 2147483647

max_executor_numbers

Integer

Definition: Maximum number of Spark Executors.

Range: 1 to 1000

Table 13 RayCluster

Parameter

Type

Description

cluster_config

RayClusterConfigV3 object

Definition: Ray cluster specification.

redis_config

RedisConfig object

Definition: Redis cluster configuration. Currently, only DCS is supported.

storages_config

StoragesConfig object

Definition: Storage resource configuration.

image

V2ImageBriefInfo object

Definition: Image configuration.

ray_federation_id

String

Definition: Ray Federation endpoint ID.

Range: N/A

history_server_config

HistoryServerConfig object

Definition: History Server configuration.

Table 14 RayClusterConfigV3

Parameter

Type

Description

head_group_spec

HeadGroupSpecV3 object

Definition: Head group configuration.

Range: N/A

worker_group_specs

Array of WorkerGroupSpecV3 objects

Definition: Worker group configuration.

Table 15 HeadGroupSpecV3

Parameter

Type

Description

resource

ResourceSpecV3 object

Definition: Resource specification.

Range: N/A

Table 16 WorkerGroupSpecV3

Parameter

Type

Description

name

String

Definition: Worker group name.

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

min_replicas

Integer

Definition: Minimum number of replicas.

Range: 0 to 10000.

max_replicas

Integer

Definition: Maximum number of replicas.

Range: 1 to 10000.

resource

ResourceSpecV3 object

Definition: Resource specification.

Range: N/A

Table 17 ResourceSpecV3

Parameter

Type

Description

spec_code

String

Definition: Specification code.

Range: N/A

cpu

Integer

Definition: Number of CPU cores, in millicores.

Range: 0 to 1000000.

memory

Integer

Definition: Memory size, in MB.

Range: 0 to 10000000.

npu

Double

Definition: Number of Huawei Cloud AI processing units (PUs).

Range: 0 to 100.

gpu

Double

Definition: Number of GPUs.

Range: 0 to 100.

Table 18 RedisConfig

Parameter

Type

Description

username

String

Definition: Account name.

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

dew_secret_name

String

Definition: DEW secret name. It stores the password of the DCS account. Format: The secret key is password, and the value is the actual password.

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

ssl_enable

Boolean

Definition: Whether to enable SSL.

Range

  • true: Enable SSL.

  • false: Disable SSL.

dcs_id

String

Definition: DCS instance ID. You can view it on the instance details page of the DCS console or obtain it by calling the API for listing DCS instances.

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

vpcep_service_id

String

Definition: VPC Endpoint server ID, used to connect to the customer-side network. You can view it on the VPC Endpoint console or obtain it by calling the API for listing VPC Endpoint services. This parameter is mandatory when GCS high availability (HA) is enabled, and is used to connect to the customer-side DCS over VPC Endpoint.

Range: N/A

Table 19 RayJob

Parameter

Type

Description

type

String

Definition: Engine type.

Range: RayJob

history_server_config

HistoryServerConfig object

Definition: History Server configuration.

Table 20 HistoryServerConfig

Parameter

Type

Description

enabled

Boolean

Definition: Status of the history server function. Set this parameter to true to enable the function.

Range

  • true: Enabled.

  • false: Disabled.

obs

ObsConfig object

Definition: OBS storage configuration. OBS bucket for storing diagnostic data collected by the History Server collector (for example, data collected by Flow Insight). This service uses the specified agency to read from and write to the bucket. This parameter is mandatory when enabled is set to true.

Range: N/A

flow_insight_enabled

Boolean

Definition: Flow Insight is a diagnosis and observability feature. It collects metrics, logs, and workflow execution data from the Ray cluster and transmits the data to the configured OBS storage through the History Server collector. This feature is available only when the enabled parameter is set to true.

Range

  • true: Enabled.

  • false: Disabled.

Table 21 FlinkJob

Parameter

Type

Description

type

String

Definition: Engine type.

Range: FlinkJob

flink_config

Map<String,String>

Definition: Flink parameter configuration, where the key in the Map is the Flink configuration parameter name and the value is the corresponding parameter value.

staging_config

StagingConfig object

Definition: Temporary storage configuration.

image

V2ImageBriefInfo object

Definition: Image configuration.

Table 22 StagingConfig

Parameter

Type

Description

obs

ObsConfig object

Definition: OBS storage configuration.

Range: N/A

Table 23 ObsConfig

Parameter

Type

Description

bucket_name

String

Definition: OBS bucket name. The bucket must be a parallel file system.

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

agency_name

String

Definition: Agency name. The cloud service will use this agency to perform operations on the OBS bucket.

Range: N/A

Table 24 V2ImageBriefInfo

Parameter

Type

Description

id

String

Definition: Image ID. You can obtain the image ID by calling the Listing Custom Images API.

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

version_id

String

Definition: Image version ID. You can obtain the image version ID by calling the Listing Custom Image Versions API.

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

Table 25 AuraJob

Parameter

Type

Description

storages_config

StoragesConfig object

Definition: Storage resource configuration.

Table 26 AuraJobV2

Parameter

Type

Description

type

String

Definition: Engine type.

Range: AuraJobV2

expand_cpu_resource

Boolean

Definition: When enabled, jobs from the general-purpose computing workgroup can use idle CPU and memory resources from the intelligent computing workgroup. This operation may cause intelligent computing jobs to queue due to insufficient resources.

Range

  • true: Enable general-purpose computing workgroup jobs to use idle CPU and memory resources from the intelligent computing workgroup.

  • false: Disable general-purpose computing workgroup jobs from using idle CPU and memory resources from the intelligent computing workgroup.

worker_group_config

Array of WorkerGroupConfig objects

Definition: Workgroup supplementary configuration, corresponding to external capacity.

staging_config

AuraV2StagingConfig object

Definition: OBS storage configuration for the computing result set.

storages_config

StoragesConfig object

Definition: Storage resource configuration.

Table 27 WorkerGroupConfig

Parameter

Type

Description

name

String

Definition: Workgroup name.

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

spec_code

String

Definition: Node specifications.

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

cpu

Integer

Definition: General-purpose computing CPU size, in millicores.

Range: 0 to 2,147,483,647.

memory

Integer

Definition: General-purpose memory size, in MB.

Range: 0 to 2,147,483,647.

gpu

Double

Definition: Number of GPUs.

Range: 0 to 2,147,483,647.

npu

Double

Definition: Number of NPUs.

Range: 0 to 2,147,483,647.

image

ImageVersionInfo object

Definition: Image.

Range: N/A

Table 28 ImageVersionInfo

Parameter

Type

Description

id

String

Definition: Image ID. You can obtain the image ID by calling the Listing Custom Images API.

Range: N/A

version_id

String

Definition: Custom image version ID. It can be obtained by calling the Listing Custom Image Versions API.

Range: N/A

Table 29 AuraV2StagingConfig

Parameter

Type

Description

obs

AuraV2ObsConfig object

Definition: OBS storage configuration.

Range: N/A

Table 30 AuraV2ObsConfig

Parameter

Type

Description

bucket_name

String

Definition: OBS bucket name.

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

Table 31 StoragesConfig

Parameter

Type

Description

files

Array of FileStorageConfig objects

Definition: File storage configuration.

Table 32 FileStorageConfig

Parameter

Type

Description

storage_id

String

Definition: Storage resource ID.

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

storage_name

String

Definition: Storage name, corresponding to the PVC name.

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

storage_path

String

Definition: Path on the storage.

Range: 1 to 1,024 characters. Only letters, digits, slashes (/), and special characters are allowed.

mount_path

String

Definition: Path to mount to a container.

Range: 1 to 1,024 characters. Only letters, digits, slashes (/), and special characters are allowed.

Table 33 V2EndpointCapacityItem

Parameter

Type

Description

type

String

Definition: Resource type.

Range

  • CPU: Central processing unit.

  • GPU: Graphics processing unit.

  • NPU: Neural processing unit.

maximum_capacity

Integer

Definition: Number of resources. The unit for CPU resources is cores, and the unit for GPU/NPU resources is instances.

Range: 1 to 10000.

minimum_capacity

Integer

Definition: Minimum number of resources. The unit for CPU resources is cores, and the unit for GPU/NPU resources is instances.

Range: 0 to 10000, which is less than or equal to the value of maximum_capacity.

spec_code

String

Definition: Resource specification. You can obtain it by querying the specification list.

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

use_ondemand_resource

Boolean

Definition: Whether to use elastic resources for capacity.

Range

  • true: Use elastic resources.

  • false: Do not use elastic resources.

Table 34 CredentialConfig

Parameter

Type

Description

agency_name

String

Definition: Endpoint-level user agency name, used for authentication of endpoint storage and other configurations, and as the default agency for job execution.

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

Table 35 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.

Table 36 ResourceTag

Parameter

Type

Description

key

String

Definition: Resource tag key.

Range: 1 to 128 characters. Only letters, spaces, digits, underscores (_), periods (.), colons (:), backslashes (), equal signs (=), plus signs (+), minus signs (-), and at signs (@) are allowed.

value

String

Definition: Resource tag value.

Range: 0 to 255 characters. Only letters, spaces, digits, underscores (_), periods (.), colons (:), backslashes (), equal signs (=), plus signs (+), minus signs (-), and at signs (@) are allowed.

Table 37 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.

Status code: 400

Table 38 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 39 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 40 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 41 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 42 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

List endpoints under a specified compute resource under a specified workspace, returning endpoint summary information.

GET /v2/workspaces/{workspace_id}/endpoints?compute_id={compute_id}

Example Responses

Status code: 200

  • Query the endpoint list in a specified workspace and return the endpoint information of the AuraJob type.

    {
      "total" : 1,
      "endpoints" : [ {
        "id" : "0b5633ba2b904511ad514346f4d23d4b",
        "name" : "endpoint-01",
        "display_name" : "endpoint-01",
        "description" : "Test endpoint.",
        "status" : "RUNNING",
        "engine" : {
          "type" : "AuraJob"
        },
        "resource_type" : "RESERVED",
        "compute_id" : "00030bf1-4466-4c84-b32d-f601b136f03b",
        "capacity" : [ {
          "type" : "CPU",
          "maximum_capacity" : 10,
          "minimum_capacity" : 0,
          "use_ondemand_resource" : false,
          "spec_code" : "aidatalake.cpu.x86.general.1c4g"
        } ],
        "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"
        },
        "tags" : [ {
          "key" : "test",
          "value" : "ai"
        } ],
        "credential" : {
          "agency_name" : "aidatalake_spark"
        },
        "error" : { }
      } ]
    }
  • Query the endpoint list in a specified workspace and return the endpoint information of the SparkSql and SparkJob types.

    {
      "total" : 2,
      "endpoints" : [ {
        "id" : "1a2b3c4d5e6f7890abcdef1234567890",
        "name" : "spark-sql-test",
        "display_name" : "spark-sql-test",
        "description" : "SparkSql test endpoint",
        "status" : "RUNNING",
        "engine" : {
          "type" : "SparkSql",
          "spark_config" : { },
          "cluster_config" : {
            "aging_time" : 6,
            "auto_stop_config" : {
              "enabled" : true,
              "idle_timeout_minutes" : 10
            },
            "driver_resource_spec" : {
              "cpu" : 4000,
              "memory" : 32768
            },
            "executor_resource_spec" : {
              "cpu" : 4000,
              "memory" : 32768,
              "min_executor_numbers" : 2,
              "max_executor_numbers" : 8
            },
            "min_clusters" : 0,
            "max_clusters" : 6,
            "max_cluster_concurrent_queries" : 16
          },
          "max_endpoint_concurrent_queries" : 300
        },
        "resource_type" : "RESERVED",
        "compute_id" : "0150a336-dda9-431c-9ef1-af02ec424a5e",
        "capacity" : [ {
          "type" : "CPU",
          "maximum_capacity" : 1000,
          "minimum_capacity" : 0,
          "use_ondemand_resource" : false,
          "spec_code" : "aidatalake.cpu.x86.general.1c2g"
        } ],
        "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"
        },
        "tags" : [ {
          "key" : "test",
          "value" : "ai"
        } ],
        "credential" : {
          "agency_name" : "aidatalake_spark"
        },
        "error" : { }
      }, {
        "id" : "2b3c4d5e6f7890abcdef1234567890ab",
        "name" : "spark-job-test",
        "display_name" : "spark-job-test",
        "description" : "SparkJob test endpoint",
        "status" : "RUNNING",
        "engine" : {
          "type" : "SparkJob",
          "spark_config" : { },
          "scheduling_config" : {
            "max_concurrent_jobs" : 300,
            "scheduling_policy" : "RANDOM"
          }
        },
        "resource_type" : "RESERVED",
        "compute_id" : "0150a336-dda9-431c-9ef1-af02ec424a5e",
        "capacity" : [ {
          "type" : "CPU",
          "maximum_capacity" : 1000,
          "minimum_capacity" : 0,
          "use_ondemand_resource" : false,
          "spec_code" : "aidatalake.cpu.x86.general.1c2g"
        } ],
        "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"
        },
        "tags" : [ {
          "key" : "test",
          "value" : "ai"
        } ],
        "credential" : {
          "agency_name" : "aidatalake_spark"
        },
        "error" : { }
      } ]
    }

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.