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

Creating an Endpoint

Function

This API is used to create an endpoint in a workspace. This API is asynchronous. You can obtain the operation result by calling the Querying Endpoint Details API.

Calling Method

For details, see Calling APIs.

URI

POST /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

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

compute_id

No

String

Definition: Compute resource ID. You can obtain the compute resource ID by calling the Listing Compute Resources API.

Constraints: This parameter is mandatory for endpoints in reserved or hybrid mode.

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

Default Value: N/A

name

Yes

String

Definition: Endpoint name.

Constraints: N/A

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: 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: Endpoint description of the engine.

Constraints: N/A

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

Default Value: N/A

engine

Yes

One of:

Definition: Engine configuration.

Constraints: The value can be SparkJob, SparkSql, RayJob, RayCluster, FlinkJob, AuraJob, or AuraJobV2.

capacity

Yes

Array of V2EndpointCapacityItem objects

Definition: Compute resource capacity configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

prometheus_config

No

PrometheusConfig object

Definition: AOM access configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

lts_config

No

LtsConfig object

Definition: Log Tank Service (LTS) configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

credential

No

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.

Constraints: N/A

Range: N/A

Default Value: N/A

resource_type

Yes

String

Definition: Resource usage mode.

Constraints: N/A

Range

  • RESERVED: Reserved.

  • ONDEMAND: On-demand.

  • HYBRID: Hybrid.

Default Value: N/A

tags

No

Array of V2ResourceTag objects

Definition: Tag list. Each element is a V2ResourceTag object containing the key (tag key) and value (tag value) fields.

Constraints: Up to 20 tags.

Table 4 CreateSparkJob

Parameter

Mandatory

Type

Description

spark_config

No

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.

Constraints: The maximum value is 100.

Range: N/A

Default Value: N/A

scheduling_config

No

SparkSchedulingConfig object

Definition: SparkJob scheduling configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

staging_config

Yes

StagingConfig object

Definition: Temporary storage configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

image

No

V2ImageBriefInfo object

Definition: Image configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 5 SparkSchedulingConfig

Parameter

Mandatory

Type

Description

max_concurrent_jobs

No

Integer

Definition: Maximum number of concurrent jobs for the endpoint.

Constraints: N/A

Range: 1 to 1000.

Default Value: 200.

scheduling_policy

No

String

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

Constraints: N/A

Range

  • RANDOM: Random.

  • FIFO: First in, first out.

Default Value: RANDOM.

fifo_tolerance_seconds

No

Integer

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

Constraints: N/A

Range: 0 to 3600.

Default Value: 300.

Table 6 CreateSparkSql

Parameter

Mandatory

Type

Description

spark_config

No

Map<String,String>

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

Constraints: The maximum value is 100.

Range: N/A

Default Value: N/A

staging_config

Yes

StagingConfig object

Definition: Temporary storage configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

cluster_config

Yes

SparkClusterConfig object

Definition: Cluster configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

max_endpoint_concurrent_queries

No

Integer

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

Constraints: N/A

Range: 1 to 1,000.

Default Value: 300

image

No

V2ImageBriefInfo object

Definition: Image configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 7 SparkClusterConfig

Parameter

Mandatory

Type

Description

aging_time

No

Integer

Definition: Cluster aging time, in hours.

Constraints: N/A

Range: 1 to 12.

Default Value: 6.

auto_stop_config

No

AutoStopConfig object

Definition: Cluster auto-stop configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

driver_resource_spec

Yes

SparkDriverResourceSpec object

Definition: Driver resource configuration for the Spark SQL endpoint.

Constraints: N/A

Range: N/A

Default Value: N/A

executor_resource_spec

Yes

SparkExecutorResourceSpec object

Definition: Executor resource configuration for the Spark SQL endpoint.

Constraints: N/A

Range: N/A

Default Value: N/A

min_clusters

No

Integer

Definition: Minimum number of clusters.

Constraints: N/A

Range: 0 to 20

Default Value: 2

max_clusters

No

Integer

Definition: Maximum number of clusters.

Constraints: N/A

Range: 2 to 20

Default Value: 6

max_cluster_concurrent_queries

No

Integer

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

Constraints: N/A

Range: 1 to 30

Default Value: 16

Table 8 AutoStopConfig

Parameter

Mandatory

Type

Description

enabled

No

Boolean

Definition: Specifies whether to automatically stop the cluster.

Constraints: N/A

Range

  • true: Enable automatic cluster stop.

  • false: Disable automatic cluster stop.

Default Value: N/A

idle_timeout_minutes

No

Integer

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

Constraints: N/A

Range: 5 to 360

Default Value: 10

Table 9 SparkDriverResourceSpec

Parameter

Mandatory

Type

Description

cpu

Yes

Integer

Definition: Spark driver CPU, in millicores.

Constraints: N/A

Range: 1,000 to 48,000.

Default Value: N/A

memory

Yes

Integer

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

Constraints: N/A

Range: 1,024 to 393,216.

Default Value: N/A

Table 10 SparkExecutorResourceSpec

Parameter

Mandatory

Type

Description

cpu

Yes

Integer

Definition: Spark executor CPU, in millicores.

Constraints: N/A

Range: 1,000 to 48,000.

Default Value: N/A

memory

Yes

Integer

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

Constraints: N/A

Range: 1,024 to 393,216.

Default Value: N/A

min_executor_numbers

Yes

Integer

Definition: Minimum number of Spark Executors.

Constraints: N/A

Range: 1 to 2147483647

Default Value: N/A

max_executor_numbers

Yes

Integer

Definition: Maximum number of Spark Executors.

Constraints: N/A

Range: 1 to 1000

Default Value: N/A

Table 11 CreateRayJob

Parameter

Mandatory

Type

Description

history_server_config

No

CreateHistoryServerConfig object

Definition: History Server configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 12 CreateRayCluster

Parameter

Mandatory

Type

Description

cluster_config

Yes

RayClusterConfigV3 object

Definition: Ray cluster specification.

Constraints: N/A

Range: N/A

Default Value: N/A

redis_config

No

RedisConfig object

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

Constraints: N/A

Range: N/A

Default Value: N/A

storages_config

No

CreateStoragesConfig object

Definition: Storage resource configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

image

Yes

V2ImageBriefInfo object

Definition: Image configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

history_server_config

No

CreateHistoryServerConfig object

Definition: History Server configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 13 RayClusterConfigV3

Parameter

Mandatory

Type

Description

head_group_spec

Yes

HeadGroupSpecV3 object

Definition: Head group configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

worker_group_specs

Yes

Array of WorkerGroupSpecV3 objects

Definition: Worker group configuration.

Constraints: N/A

Table 14 HeadGroupSpecV3

Parameter

Mandatory

Type

Description

resource

Yes

ResourceSpecV3 object

Definition: Resource specification.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 15 WorkerGroupSpecV3

Parameter

Mandatory

Type

Description

name

Yes

String

Definition: Worker group name.

Constraints: N/A

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

Default Value: N/A

min_replicas

Yes

Integer

Definition: Minimum number of replicas.

Constraints: N/A

Range: 0 to 10000.

Default Value: N/A

max_replicas

Yes

Integer

Definition: Maximum number of replicas.

Constraints: N/A

Range: 1 to 10000.

Default Value: N/A

resource

Yes

ResourceSpecV3 object

Definition: Resource specification.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 16 ResourceSpecV3

Parameter

Mandatory

Type

Description

spec_code

Yes

String

Definition: Specification code.

Constraints: N/A

Range: N/A

Default Value: N/A

cpu

Yes

Integer

Definition: Number of CPU cores, in millicores.

Constraints: N/A

Range: 0 to 1000000.

Default Value: 0.

memory

Yes

Integer

Definition: Memory size, in MB.

Constraints: N/A

Range: 0 to 10000000.

Default Value: 0.

npu

No

Double

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

Constraints: Only integers are currently supported.

Range: 0 to 100.

Default Value: 0

gpu

No

Double

Definition: Number of GPUs.

Constraints: Only integers are currently supported.

Range: 0 to 100.

Default Value: 0

Table 17 RedisConfig

Parameter

Mandatory

Type

Description

username

No

String

Definition: Account name.

Constraints: N/A

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

Default Value: default

dew_secret_name

Yes

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.

Constraints: N/A

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

Default Value: N/A

ssl_enable

No

Boolean

Definition: Whether to enable SSL.

Constraints: N/A

Range

  • true: Enable SSL.

  • false: Disable SSL.

Default Value: true

dcs_id

Yes

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.

Constraints: N/A

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

Default Value: N/A

vpcep_service_id

Yes

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.

Constraints: This parameter is mandatory when GCS HA is enabled.

Range: N/A

Default Value: N/A

Table 18 CreateStoragesConfig

Parameter

Mandatory

Type

Description

files

No

Array of CreateFileStorageConfig objects

Definition: File storage configuration.

Constraints: Up to 10 file storage configurations.

Range: N/A

Default Value: N/A

Table 19 CreateFileStorageConfig

Parameter

Mandatory

Type

Description

storage_id

Yes

String

Definition: Storage resource ID.

Constraints: N/A

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

Default Value: N/A

storage_path

No

String

Definition: Path on the storage.

Constraints: Must be in a format supported by the storage.

Range: 1 to 1,024 characters.

Default Value: /

mount_path

No

String

Definition: Path to mount to a container.

Constraints: The value must be in a format supported by the container and must not overwrite system paths. The container must be mounted under /home/service/.

Range: 1 to 1,024 characters.

Default Value: /home/service/works

Table 20 CreateHistoryServerConfig

Parameter

Mandatory

Type

Description

enabled

No

Boolean

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

Constraints: N/A

Range

  • true: Enabled.

  • false: Disabled.

Default Value: false

obs

No

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.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 21 CreateFlinkJob

Parameter

Mandatory

Type

Description

flink_config

No

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.

Constraints: N/A

Range: N/A

Default Value: N/A

staging_config

Yes

StagingConfig object

Definition: Temporary storage configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

image

No

V2ImageBriefInfo object

Definition: Image configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 22 StagingConfig

Parameter

Mandatory

Type

Description

obs

No

ObsConfig object

Definition: OBS storage configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 23 ObsConfig

Parameter

Mandatory

Type

Description

bucket_name

No

String

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

Constraints: N/A

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

Default Value: N/A

agency_name

No

String

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

Constraints: N/A

Range: N/A

Default Value: N/A

Table 24 V2ImageBriefInfo

Parameter

Mandatory

Type

Description

id

Yes

String

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

Constraints: N/A

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

Default Value: N/A

version_id

Yes

String

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

Constraints: N/A

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

Default Value: N/A

Table 25 CreateAuraJob

Parameter

Mandatory

Type

Description

storages_config

No

StoragesConfig object

Definition: Storage resource configuration.

Constraints: N/A

Table 26 CreateAuraJobV2

Parameter

Mandatory

Type

Description

expand_cpu_resource

No

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.

Constraints: N/A

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.

Default Value: false

worker_group_config

Yes

Array of WorkerGroupConfig objects

Definition: Workgroup supplementary configuration, corresponding to external capacity.

Constraints: Up to 10.

staging_config

Yes

AuraV2StagingConfig object

Definition: OBS storage configuration for the computing result set.

Constraints: N/A

storages_config

Yes

StoragesConfig object

Definition: Storage resource configuration.

Constraints: N/A

Table 27 WorkerGroupConfig

Parameter

Mandatory

Type

Description

name

Yes

String

Definition: Workgroup name.

Constraints: The name of an existing workgroup cannot be changed. It must be the same as the current workgroup name. This parameter is mandatory for a new workgroup.

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

Default Value: N/A

spec_code

Yes

String

Definition: Node specifications.

Constraints: N/A

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

Default Value: N/A

cpu

No

Integer

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

Constraints: N/A

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

Default Value: N/A

memory

No

Integer

Definition: General-purpose memory size, in MB.

Constraints: N/A

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

Default Value: N/A

gpu

No

Double

Definition: Number of GPUs.

Constraints: Only integers are currently supported.

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

Default Value: N/A

npu

No

Double

Definition: Number of NPUs.

Constraints: Only integers are currently supported.

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

Default Value: N/A

image

No

ImageVersionInfo object

Definition: Image.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 28 ImageVersionInfo

Parameter

Mandatory

Type

Description

id

Yes

String

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

Constraints: N/A

Range: N/A

Default Value: N/A

version_id

Yes

String

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

Constraints: N/A

Range: N/A

Default Value: N/A

Table 29 AuraV2StagingConfig

Parameter

Mandatory

Type

Description

obs

Yes

AuraV2ObsConfig object

Definition: OBS storage configuration.

Constraints: N/A

Range: N/A

Default Value: N/A

Table 30 AuraV2ObsConfig

Parameter

Mandatory

Type

Description

bucket_name

Yes

String

Definition: OBS bucket name.

Constraints: N/A

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

Default Value: N/A

Table 31 StoragesConfig

Parameter

Mandatory

Type

Description

files

Yes

Array of FileStorageConfig objects

Definition: File storage configuration.

Constraints: Up to 10 file storage configurations.

Table 32 FileStorageConfig

Parameter

Mandatory

Type

Description

storage_id

Yes

String

Definition: Storage resource ID.

Constraints: N/A

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

Default Value: N/A

storage_name

No

String

Definition: Storage name, corresponding to the PVC name.

Constraints: N/A

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

Default Value: N/A

storage_path

No

String

Definition: Path on the storage.

Constraints: N/A

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

Default Value: N/A

mount_path

No

String

Definition: Path to mount to a container.

Constraints: N/A

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

Default Value: N/A

Table 33 V2EndpointCapacityItem

Parameter

Mandatory

Type

Description

type

Yes

String

Definition: Resource type.

Constraints: N/A

Range

  • CPU: Central processing unit.

  • GPU: Graphics processing unit.

  • NPU: Neural processing unit.

Default Value: N/A

maximum_capacity

Yes

Integer

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

Constraints: N/A

Range: 1 to 10000.

Default Value: N/A

minimum_capacity

Yes

Integer

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

Constraints: N/A

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

Default Value: N/A

spec_code

No

String

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

Constraints: This parameter is mandatory for reserved and hybrid endpoints. After an endpoint is created, this parameter cannot be modified.

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

Default Value: N/A

use_ondemand_resource

No

Boolean

Definition: Whether to use elastic resources for capacity.

Constraints: After an endpoint is created, this parameter cannot be modified.

Range

  • true: Use elastic resources.

  • false: Do not use elastic resources.

Default Value: false

Table 34 PrometheusConfig

Parameter

Mandatory

Type

Description

enable

No

Boolean

Definition: Whether to enable AOM integration.

Constraints: N/A

Range

  • true: AOM integration is enabled.

  • false: AOM integration is disabled.

Default Value: false

aom_prometheus_id

No

String

Definition: AOM Prometheus instance ID. You can obtain it from the AOM management console or by calling the API for listing AOM Prometheus instances.

Constraints: N/A

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

Default Value: N/A

Table 35 LtsConfig

Parameter

Mandatory

Type

Description

enable

No

Boolean

Definition: Whether to enable LTS.

Constraints: N/A

Range

  • true: Enable.

    • false: Disable.

Default Value: false.

lts_group_id

No

String

Definition: LTS log group ID. You can view it in the log group list on the log management page of the LTS console.

Constraints: This parameter is mandatory when enable is set to true.

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

Default Value: N/A

lts_stream_id

No

String

Definition: LTS log stream ID. You can expand the log group list on the log management page of the LTS console to view the corresponding log streams.

Constraints: This parameter is mandatory when enable is set to true.

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

Default Value: N/A

Table 36 CredentialConfig

Parameter

Mandatory

Type

Description

agency_name

No

String

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

Constraints: N/A

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

Default Value: N/A

Table 37 V2ResourceTag

Parameter

Mandatory

Type

Description

key

Yes

String

Definition: Resource tag key.

Constraints: N/A

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

Default Value: N/A

value

No

String

Definition: Resource tag value.

Constraints: N/A

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

Default Value: N/A

Response Parameters

Status code: 200

Table 38 Response body parameters

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.

prometheus_config

PrometheusConfig object

Definition: AOM access configuration.

Range: N/A

lts_config

LtsConfig object

Definition: Log Tank Service (LTS) configuration.

Table 39 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 40 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 41 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 42 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 43 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 44 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 45 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 46 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 47 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 48 HeadGroupSpecV3

Parameter

Type

Description

resource

ResourceSpecV3 object

Definition: Resource specification.

Range: N/A

Table 49 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 50 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 51 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 52 RayJob

Parameter

Type

Description

type

String

Definition: Engine type.

Range: RayJob

history_server_config

HistoryServerConfig object

Definition: History Server configuration.

Table 53 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 54 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 55 StagingConfig

Parameter

Type

Description

obs

ObsConfig object

Definition: OBS storage configuration.

Range: N/A

Table 56 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 57 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 58 AuraJob

Parameter

Type

Description

storages_config

StoragesConfig object

Definition: Storage resource configuration.

Table 59 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 60 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 61 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 62 AuraV2StagingConfig

Parameter

Type

Description

obs

AuraV2ObsConfig object

Definition: OBS storage configuration.

Range: N/A

Table 63 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 64 StoragesConfig

Parameter

Type

Description

files

Array of FileStorageConfig objects

Definition: File storage configuration.

Table 65 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 66 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 67 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 68 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 69 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 70 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 71 PrometheusConfig

Parameter

Type

Description

enable

Boolean

Definition: Whether to enable AOM integration.

Range

  • true: AOM integration is enabled.

  • false: AOM integration is disabled.

aom_prometheus_id

String

Definition: AOM Prometheus instance ID. You can obtain it from the AOM management console or by calling the API for listing AOM Prometheus instances.

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

Table 72 LtsConfig

Parameter

Type

Description

enable

Boolean

Definition: Whether to enable LTS.

Range

  • true: Enable.

    • false: Disable.

lts_group_id

String

Definition: LTS log group ID. You can view it in the log group list on the log management page of the LTS console.

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

lts_stream_id

String

Definition: LTS log stream ID. You can expand the log group list on the log management page of the LTS console to view the corresponding log streams.

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

Status code: 400

Table 73 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 74 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 75 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 76 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 77 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

  • Create an AuraJobV2 endpoint in a workspace.

    POST /v2/workspaces/{workspace_id}/endpoints
    
    {
      "name" : "aura-job-sune",
      "display_name" : "endpoint-01",
      "description" : "Test endpoint.",
      "resource_type" : "RESERVED",
      "engine" : {
        "type" : "AuraJobV2",
        "staging_config" : {
          "obs" : {
            "bucket_name" : "1316265"
          }
        },
        "storages_config" : {
          "files" : [ {
            "storage_id" : "0df94743-6210-4134-bc46-acf3b46d9705"
          } ]
        },
        "expand_cpu_resource" : false,
        "worker_group_config" : [ {
          "spec_code" : "aidatalake.cpu.x86.general.1c4g",
          "cpu" : 1000,
          "memory" : 2048,
          "gpu" : 0,
          "npu" : 0,
          "name" : "WorkerGroup-1djd",
          "image" : {
            "id" : "94499750-bab9-4f51-bcd7-53ef6bf3a64b",
            "version_id" : "35e2204c-a915-4e4f-92f3-a0c7f8ffaabb"
          }
        }, {
          "spec_code" : "aidatalake.gpu.m.lnt002.2x.d",
          "cpu" : 13000,
          "memory" : 53248,
          "gpu" : 1,
          "npu" : 0,
          "name" : "WorkerGroup-s1lu",
          "image" : {
            "id" : "94499750-bab9-4f51-bcd7-53ef6bf3a64b",
            "version_id" : "35e2204c-a915-4e4f-92f3-a0c7f8ffaabb"
          }
        } ]
      },
      "compute_id" : "00030bf1-4466-4c84-b32d-f601b136f03b",
      "capacity" : [ {
        "type" : "CPU",
        "minimum_capacity" : 0,
        "maximum_capacity" : 10,
        "use_ondemand_resource" : false,
        "spec_code" : "aidatalake.cpu.x86.general.1c4g"
      }, {
        "type" : "GPU",
        "minimum_capacity" : 1,
        "maximum_capacity" : 1,
        "spec_code" : "aidatalake.gpu.m.lnt002.2x.d",
        "use_ondemand_resource" : false
      } ],
      "lts_config" : {
        "enable" : false
      }
    }
  • Create an endpoint of the SparkSql type in the workspace and configure the cluster resource specifications and auto stop policy.

    POST /v2/workspaces/{workspace_id}/endpoints
    
    {
      "compute_id" : "0150a336-dda9-431c-9ef1-af02ec424a5e",
      "name" : "spark-sql-test",
      "display_name" : "spark-sql-test",
      "resource_type" : "RESERVED",
      "engine" : {
        "type" : "SparkSql",
        "spark_config" : { },
        "staging_config" : {
          "obs" : {
            "bucket_name" : "ai4db",
            "agency_name" : "aidatalake-spark"
          }
        },
        "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
      },
      "capacity" : [ {
        "type" : "CPU",
        "maximum_capacity" : 1000,
        "minimum_capacity" : 0,
        "use_ondemand_resource" : false,
        "spec_code" : "aidatalake.cpu.x86.general.1c2g"
      } ]
    }
  • Create an endpoint of the SparkJob type in the workspace and configure the scheduling policy and OBS storage.

    POST /v2/workspaces/{workspace_id}/endpoints
    
    {
      "compute_id" : "0150a336-dda9-431c-9ef1-af02ec424a5e",
      "name" : "spark-job-test",
      "display_name" : "spark-job-test",
      "resource_type" : "RESERVED",
      "engine" : {
        "type" : "SparkJob",
        "spark_config" : { },
        "scheduling_config" : {
          "max_concurrent_jobs" : 300,
          "scheduling_policy" : "RANDOM"
        },
        "staging_config" : {
          "obs" : {
            "bucket_name" : "ai4db",
            "agency_name" : "aidatalake-spark"
          }
        }
      },
      "capacity" : [ {
        "type" : "CPU",
        "maximum_capacity" : 1000,
        "minimum_capacity" : 0,
        "use_ondemand_resource" : false,
        "spec_code" : "aidatalake.cpu.x86.general.1c2g"
      } ],
      "credential" : {
        "agency_name" : "aidatalake-spark"
      }
    }

Example Responses

Status code: 200

  • Create an AuraJobV2 endpoint and return the endpoint information being created.

    {
      "id" : "0b5633ba2b904511ad514346f4d23d4b",
      "name" : "aura-job-sune",
      "display_name" : "endpoint-01",
      "description" : "Test endpoint.",
      "status" : "CREATING",
      "engine" : {
        "type" : "AuraJobV2",
        "worker_group_config" : [ {
          "name" : "WorkerGroup-wpif",
          "spec_code" : "aidatalake.cpu.x86.general.1c4g",
          "cpu" : 1000,
          "memory" : 2048,
          "gpu" : 0,
          "npu" : 0,
          "image" : {
            "id" : "94499750-bab9-4f51-bcd7-53ef6bf3a64b",
            "version_id" : "35e2204c-a915-4e4f-92f3-a0c7f8ffaabb"
          }
        } ],
        "staging_config" : {
          "obs" : {
            "bucket_name" : "1316265"
          }
        },
        "storages_config" : {
          "files" : [ {
            "storage_id" : "0df94743-6210-4134-bc46-acf3b46d9705"
          } ]
        }
      },
      "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"
      },
      "lts_config" : {
        "enable" : false
      },
      "tags" : [ {
        "key" : "test",
        "value" : "ai"
      } ]
    }
  • Create an endpoint of the SparkSql type and return the information about the endpoint being created.

    {
      "id" : "1a2b3c4d5e6f7890abcdef1234567890",
      "name" : "spark-sql-test",
      "display_name" : "spark-sql-test",
      "description" : "SparkSql test endpoint",
      "status" : "CREATING",
      "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"
      } ]
    }
  • Create an endpoint of the SparkJob type and return the information about the endpoint being created.

    {
      "id" : "2b3c4d5e6f7890abcdef1234567890ab",
      "name" : "spark-job-test",
      "display_name" : "spark-job-test",
      "description" : "SparkJob test endpoint",
      "status" : "CREATING",
      "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"
      } ]
    }

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 submitted.

400

Invalid request parameters.

401

Unauthorized.

403

Access denied.

404

Resource not found.

500

Internal server error.