API overview

Updated at:

API standards and multilingual preset SDKs

The OpenAPI of this product (emr-serverless-spark/2023-08-08) uses the ROA signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.

Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.

Custom signature scenarios

If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.

Account and security preparation

Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.

Permission management

API

Title

Description

AddMembers Add members Invokes AddMembers to add Resource Access Management (RAM) users or RAM roles to a workspace as new members.
ListMembers Retrieve member list Queries the members of a workspace.
GrantRoleToUsers Grant roles to users Grants the specified role permissions to users.

Session management

API

Title

Description

GetSessionCluster Retrieve session details Retrieves the details of a session.
CreateSessionCluster Create a session Creates a session.
StopSessionCluster Stop session Stops a session cluster.
StartSessionCluster Start session Starts a session cluster.
ListSessionClusters List sessions Retrieves a list of sessions.

Gateway

API

Title

Description

Kyuubi Gateway Kyuubi Gateway
ListKyuubiSparkApplications Retrieve the list of spark application details submitted by kyuubi Retrieves a list of Spark applications submitted by Kyuubi.
CancelKyuubiSparkApplication Cancel a spark application submitted by kyuubi Cancels a Spark application submitted by Kyuubi.
DeleteKyuubiToken Delete a kyuubi gateway authentication token Deletes the Kyuubi Gateway authentication token.
UpdateKyuubiToken Update kyuubi gateway authentication token Updates the authentication token for Kyuubi Gateway.
GetKyuubiToken Retrieve kyuubi gateway authentication token Retrieves the Kyuubi Gateway authentication token.
CreateKyuubiToken Create a kyuubi gateway authentication token Creates a Kyuubi Gateway authentication token.
ListKyuubiToken List kyuubi gateway authentication tokens Lists the authentication tokens for Kyuubi Server.
ListKyuubiServices List kyuubi gateway information Lists Kyuubi Gateways.
CreateKyuubiService Create a kyuubi gateway Creates a Kyuubi Gateway.
GetKyuubiService Retrieve the kyuubi gateway Retrieves the Kyuubi Gateway.
UpdateKyuubiService Update kyuubi gateway Updates Kyuubi Gateway.
DeleteKyuubiService Delete a kyuubi gateway Deletes a Kyuubi gateway.
StartKyuubiService Start kyuubi gateway Starts Kyuubi Gateway.
StopKyuubiService Stop kyuubi gateway Stops Kyuubi Gateway.
Livy Gateway Livy Gateway
ListLivyComputeSessions List historical sessions of a livy gateway Retrieves the historical sessions of a Livy gateway.
DeleteLivyCompute Delete a livy gateway Deletes a Livy gateway.
CreateLivyCompute Create a livy gateway Creates a Livy compute.
UpdateLivyCompute Update a livy gateway Updates a Livy gateway.
ListLivyCompute List livy gateways Lists Livy gateways.
StartLivyCompute Start livy gateway Starts Livy Gateway.
RefreshLivyComputeToken Update the token of a livy gateway Updates the token of a Livy gateway.
GetLivyComputeToken Retrieve the token for the livy gateway Retrieves the token for the Livy Gateway.
CreateLivyComputeToken Create a token for livy gateway Creates a token for Livy Gateway.
DeleteLivyComputeToken Delete a livy gateway token Deletes a Livy Gateway token.
StopLivyCompute Stop the livy gateway Stops the Livy Gateway.
ListLivyComputeToken List livy gateway tokens Lists the tokens of Livy Gateway.
GetLivyCompute Retrieve livy gateway information Retrieves the details of a Livy gateway.

Data development

API

Title

Description

TerminateSqlStatement TerminateSqlStatement Terminates an SQL query task.
CreateSqlStatement Create a SQL query Creates a SQL query.
GetSqlStatement Retrieve SQL query details Retrieves the details of an SQL query.
ListSqlStatementContents Query SQL session execution results Retrieves the content of SQL statements.

Workspace management

API

Title

Description

GetWorkspace Retrieve workspace details Retrieves the details of a workspace.
ListWorkspaces List workspaces Retrieves a list of workspaces.
CreateWorkspace Create a workspace Creates a workspace.
DeleteWorkspaceQueue Delete a workspace queue Deletes a workspace queue.
CreateWorkspaceQueue Create a workspace queue Creates a workspace queue.
ListWorkspaceQueues List workspace queues Queries the queues in a workspace.
EditWorkspaceQueue Edit workspace queue Modifies a workspace queue.

Spark version management

API

Title

Description

ListReleaseVersions Retrieve spark versions Retrieves a list of release versions.

Spark task management

API

Title

Description

ListExecutorLogs Retrieve spark job logs Lists the log files of a job executor.
ListJobExecutors List job executors Lists the executors of a job.
ListLogContents Query log content Retrieves the log content.
GetCuHours Retrieve workspace queue CU hours Retrieves the CU hours of a workspace queue.
GetDoctorApplication Retrieve job diagnostic information Retrieves the diagnostic information for a Serverless Spark job.
CancelJobRun Terminate a spark job Terminates a running Spark job.
ListJobRuns List spark job runs Retrieves a list of Spark job runs.
GetJobRun Retrieve spark job run details Retrieves the details of a job run.
StartJobRun Start a spark job Starts a Spark job.
GetRunConfiguration Retrieve spark task configuration Retrieves the configuration of a Spark task.

Ray task management

API

Title

Description

ListRayLogs List ray logs Lists Ray logs.
GetRayLog Get ray job log Retrieves the log of a Ray job.
CancelRayJob Stop a ray job Stops a Ray job.
SubmitRayJob Submit a ray job Submits a Ray job.
ListRayJob List ray job information Lists Ray job information.
GetRayJob Retrieve ray job information Retrieves Ray Job information.

Task orchestration

API

Title

Description

StartProcessInstance Manually run a workflow Manually runs a workflow.
UpdateProcessDefinitionWithSchedule Update workflow definition and schedule Updates a workflow definition and scheduling.
CreateProcessDefinitionWithSchedule Create a workflow definition and schedule Creates a workflow definition.
GenerateTaskCodes Generate workflow node definition codes Publishes a workflow and its schedule.

Cluster management

API

Title

Description

Ray cluster Ray cluster
UpdateRayCluster Update a ray cluster Updates a Ray cluster.
GetRayCluster Retrieve ray cluster information Retrieves a Ray cluster.
ListRayCluster List ray clusters Lists Ray clusters.
StopRayCluster StopRayCluster Stops a Ray cluster.
StartRayCluster Start a ray cluster Starts a Ray cluster.
DeleteRayCluster Delete a ray cluster Deletes a Ray cluster.
CreateRayCluster Create a ray cluster Creates a Ray cluster.

Network connection

API

Title

Description

ListNetworkServices Retrieve network connectivity Retrieves a list of network connectivity.
CreateNetworkService Create network connectivity Creates network connectivity.

Ciphertext management

API

Title

Description

ListSecretValue List secrets Lists secrets.
DeleteSecretValue Delete ciphertext Deletes the ciphertext.
CreateSecretValue Create ciphertext Creates a ciphertext.

Other

API

Title

Description

ListCatalogs List data catalogs Queries the list of data catalogs.
ListRegions Retrieve regions supported by the spark service Retrieves the list of available regions.
RemoveMember Remove a member Deletes a user.
RevokeRoleFromUsers Remove user roles Removes a list of roles from a user.
GetCacheCluster Retrieve cache cluster details Retrieves the details of a cache cluster.
StartCacheCluster Start a cache cluster Starts a cache cluster.
StopCacheCluster Stop a cache cluster Stops a cache cluster.
ActivateAICenter Activate the AI center Activates the AI center.
ChangeResourceGroup Update workspace resource group Updates the resource group of an instance.
GetAICenterState Retrieve AI hub status Retrieves the status of AI Hub.
GetTemplate GetTemplate Retrieves a task template.
ListTemplate Retrieve workspace configuration templates Retrieves a list of task templates.
UpdateWorkspace Update a workspace Updates the attributes of a workspace.
ListQueueTopJobs Query the proportion of top jobs in a queue Queries the jobs with the highest CU usage in a queue.
QueryApmGrafanaData Query job metrics Queries APM Grafana panel data for Serverless Spark.