:original_name: mrs_02_0007.html
.. _mrs_02_0007:
API Overview
============
:ref:`Table 1 ` describes MRS APIs that meet RESTful API design standards.
:ref:`Table 2 ` lists MRS Manager APIs provided by MRS.
.. _mrs_02_0007__table40115147113128:
.. table:: **Table 1** APIs
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| API | Function | API URI |
+================================+======================================================================+=========================================================================================+
| Data source APIs | :ref:`Creating a Data Source ` | POST /v1.1/{project_id}/data-sources |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Updating a Data Source ` | PUT /v1.1/{project_id}/data-sources/{data_source_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying the Data Source List ` | GET /v1.1/{project_id}/data-sources |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying the Data Source Details ` | GET /v1.1/{project_id}/data-sources/{data_source_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting a Data Source ` | DELETE /v1.1/{project_id}/data-sources/{data_source_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Cluster management APIs (V2) | :ref:`Creating Clusters ` | POST /v2/{project_id}/clusters |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Cluster management APIs (V1) | :ref:`Creating a Cluster and Running a Job ` | POST /v1.1/{project_id}/run-job-flow |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Resizing a Cluster ` | PUT /v1.1/{project_id}/cluster_infos/{cluster_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying a Cluster List ` | GET /v1.1/{project_id}/cluster_infos |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying Cluster Details ` | GET /v1.1/{project_id}/cluster_infos/{cluster_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting a Cluster ` | DELETE /v1.1/{project_id}/clusters/{cluster_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying a Host List ` | GET /v1.1/{project_id}/clusters/{cluster_id}/hosts |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Job binary object APIs | :ref:`Creating a Job Binary Object ` | POST /v1.1/{project_id}/job-binaries |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Updating a Job Binary Object ` | PUT /v1.1/{project_id}/job-binaries/{job_binary_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying the Binary Object List ` | GET /v1.1/{project_id}/job-binaries |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying the Binary Object Details ` | GET /v1.1/{project_id}/job-binaries/{job_binary_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting a Job Binary Object ` | DELETE /v1.1/{project_id}/job-binaries/{job_binary_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Job object APIs (V1) | :ref:`Adding a Job and Executing the Job ` | POST /v1.1/{project_id}/jobs/submit-job |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Creating a Job Object ` | POST /v1.1/{project_id}/jobs |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Updating a Job Object ` | PATCH /v1.1/{project_id}/jobs/{job_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Executing a Job Object ` | POST /v1.1/{project_id}/jobs/{job_id}/execute |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying the Job Object List ` | GET /v1.1/{project_id}/jobs |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying Job Object Details ` | GET /v1.1/{project_id}/jobs/{job_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying the exe Object List of Jobs ` | GET /v1.1/{project_id}/job-exes |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying exe Object Details ` | GET /v1.1/{project_id}/job-exes/{job_exe_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting a Job Object ` | DELETE /v1.1/{project_id}/jobs/{job_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Job execution object APIs (V1) | :ref:`Querying the Job Execution Object List ` | GET /v1.1/{project_id}/job-executions |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying Job Execution Object Details ` | GET /v1.1/{project_id}/job-executions/{job_execution_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Canceling Job Execution ` | GET /v1.1/{project_id}/job-executions/{job_execution_id}/cancel |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting a Job Execution Object ` | DELETE /v1.1/{project_id}/job-executions/{job_execution_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Job object APIs (V2) | :ref:`Adding and Executing a Job ` | POST /v2/{project_id}/clusters/{cluster_id}/job-executions |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying Information About a Job ` | GET /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying a List of Jobs ` | GET /v2/{project_id}/clusters/{cluster_id}/job-executions |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Terminating a Job ` | POST /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}/kill |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting Jobs in Batches ` | POST /v2/{project_id}/clusters/{cluster_id}/job-executions/batch-delete |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Obtain the SQL Result ` | GET /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}/sql-result |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Auto scaling APIs | :ref:`Configuring an Auto Scaling Rule ` | POST /v1.1/{project_id}/autoscaling-policy/{cluster_id} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| Tag Management APIs | :ref:`Adding a Tag to a Specified Cluster ` | POST /v1.1/{project_id}/clusters/{cluster_id}/tags |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Deleting a Tag of a Specified Cluster ` | DELETE /v1.1/{project_id}/clusters/{cluster_id}/tags/{key} |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying Tags of a Specified Cluster ` | GET /v1.1/{project_id}/clusters/{cluster_id}/tags |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Adding or Deleting Cluster Tags in Batches ` | POST /v1.1/{project_id}/clusters/{cluster_id}/tags/action |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying All Tags ` | GET /v1.1/{project_id}/clusters/tags |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
| | :ref:`Querying a List of Clusters with Specified Tags ` | POST /v1.1/{project_id}/clusters/resource_instances/action |
+--------------------------------+----------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
.. _mrs_02_0007__table521983381017:
.. table:: **Table 2** MRS Manager API
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| API | Function | API URI |
+=====================+===========================================================================+=========================================================================+
| MRS Manager CAS API | :ref:`Logging In to the CAS ` | POST /cas/login |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Logging Out of the CAS ` | POST /cas/logout |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| MRS Manager WEB API | :ref:`Checking the Login ` | GET /web/v1/access/login_check |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Modifying the Password of the Current Login User ` | POST /web/v1/access/modify_self_password |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Querying the Health Status of a Specified Cluster ` | GET /web/v1/cluster/{cluster_id}/status |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Querying Basic Information About a Specified Cluster ` | GET /web/v1/clusters |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Querying the Command Execution Progress ` | GET /web/v1/common/command/{command_id}/progress |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Saving Configurations ` | POST /web/v1/config/cluster/{cluster_id}/save |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Logging Out Of a Session ` | GET /web/v1/logout_action |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Starting a Service ` | POST /web/v1/maintain/cluster/{cluster_id}/service/{service_name}/start |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Stopping a Service ` | POST /web/v1/maintain/cluster/{cluster_id}/service/{service_name}/stop |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Querying Monitoring Data ` | GET /web/v1/monitor/metrics_info |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+
| | :ref:`Querying Summary of a Specified Service ` | GET /web/v1/cluster/{cluster_id}/services/{service_name} |
+---------------------+---------------------------------------------------------------------------+-------------------------------------------------------------------------+