API Overview

CS provides self-developed APIs. You can call the CS APIs listed in the following table to perform related functions.

Table 1 CS APIs

Type

API

Description

APIs related to job management

Registering to Use CS

Registers with the cloud platform to use CS.

Granting OBS Operation Rights to CS

Grants CS the permission to access OBS buckets for saving job checkpoints and run logs.

Collecting Summary Statistics

Collects summary statistics on users' jobs and prices.

Querying the Current Release Version of CS

Queries the current release version of CS

Creating a SQL Job

Uses the POST method to submit a stream SQL job in JSON format.

Updating a SQL Job

Updates a SQL job.

Creating a User-Defined Job

Creates user-defined jobs, which currently support the JAR format and run in exclusive clusters.

Updating a User-Defined Job

Updates a user-defined job.

Running a Job

Runs a specified job.

Running Jobs in Batches

Runs specified jobs in batches.

Querying the List of Jobs

Queries the list of jobs.

Querying Job Details

Queries details about a specified job.

Querying the Job Execution Plan

Queries the execution plan of a specified job.

Querying Audit Logs

Queries the audit logs of a specified job.

Querying Job Monitoring Information

Queries job monitoring information. You can query monitoring information about multiple jobs at the same time.

Querying the APIG Address of a Job

Queries the APIG address of a job.

Stopping a Job

Stops a specified job.

Stopping Jobs in Batches

Stops specified jobs in batches.

Deleting a Job

Deletes a specified job.

Deleting Jobs in Batches

Deletes specified jobs in batches.

APIs related to job template management

Creating a Template

Adds a custom template.

Updating a Template

Updates a specified template.

Deleting a Template

Deletes a specified template.

Querying the Template List

Queries the list of job templates. Currently, only custom templates can be queried.

APIs related to cluster management

Creating an Exclusive Cluster

Creates an exclusive cluster.

Querying Information About Exclusive Clusters

Queries information about exclusive clusters.

Deleting an Exclusive Cluster

Deletes an exclusive cluster.

Querying the Cluster List of a Tenant

Queries the cluster list of a tenant.

Updating an Exclusive Cluster

Updates an exclusive cluster.

Terminating an Exclusive Cluster

Terminates an exclusive cluster.

Restarting an Exclusive Cluster

Restarts an exclusive cluster.

Querying the List of Jobs Running in an Exclusive Cluster

Queries the list of jobs running in an exclusive cluster.

Add an IP-Domain Mapping

Adds an IP-domain mapping for a specified cluster.

Updating the IP-Domain Mapping

Updates a specified IP-domain mapping.

Querying an IP-Domain Mapping

Queries information about the IP-domain mapping in a specified cluster.

Deleting an IP-Domain Mapping

Deletes the IP-domain mapping.

Adding the hosts File

Adds an IP-domain mapping for a specified cluster through file uploading. The hosts_file parameter is involved in this API, and the parameter must be in the "form-data" format.

Obtaining User Quota Information About a Tenant

Obtains user quota information about a tenant.

Querying Quota Information About a Specified User

Queries quota information about a specified user.

Updating Quota Information About a Specified User

Updates quota information about a specified user.

Creating a VPC Peering Connection

Creates a VPC peering connection used to connect to other VPCs.

Querying the List of VPC Peering Connections

Queries the list of VPC peering connections.

Querying a VPC Peering Connection

Queries a specified VPC peering connection.

Deleting a VPC Peering Connection

Deletes a specified VPC peering connection.

Accepting a VPC Peering Connection Request

Accepts a VPC peering connection request.

Creating a Route to the Local VPC

Creates a route to the local end of a VPC peering connection.

Creating a Route to the Peer VPC

Creates a route to the peer end of a VPC peering connection.

Query the Route List

Queries the list of routes of a VPC peering connection.

Deleting a Route

Deletes a specific route.