API Overview
Table 1 and Table 2 describe the RESTful APIs provided by MRS.
Some APIs are gradually discarded during MRS version evolution. For details, see Table 3.
| 
       API  | 
     
       Function  | 
     
       API URI  | 
    
|---|---|---|
| 
       Cluster management APIs  | 
     
       POST /v2/{project_id}/clusters  | 
    |
| 
       Job object APIs  | 
     
       POST /v2/{project_id}/clusters/{cluster_id}/job-executions  | 
    |
| 
       GET /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}  | 
    ||
| 
       GET /v2/{project_id}/clusters/{cluster_id}/job-executions  | 
    ||
| 
       POST /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}/kill  | 
    ||
| 
       GET /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}/sql-result  | 
    ||
| 
       POST /v2/{project_id}/clusters/{cluster_id}/job-executions/batch-delete  | 
    ||
| 
       Cluster HDFS file APIs (V2)  | 
     
       GET /v2/{project_id}/clusters/{cluster_id}/files?path={directory}&offset={offset}&limit={limit}&sort_key={sort_key}&order={order}  | 
    |
| 
       SQL APIs  | 
     
       POST /v2/{project_id}/clusters/{cluster_id}/sql-execution  | 
    |
| 
       GET /v2/{project_id}/clusters/{cluster_id}/sql-execution/{sql_id}  | 
    ||
| 
       POST /v2/{project_id}/clusters/{cluster_id}/sql-execution/{sql_id}/cancel  | 
    ||
| 
       Agency management APIs (V2)  | 
     
       Querying the Mapping Between a User (Group) and an IAM Agency  | 
     
       GET /v2/{project_id}/clusters/{cluster_id}/agency-mapping  | 
    
| 
       Updating the Mapping Between a User (Group) and an IAM Agency  | 
     
       PUT /v2/{project_id}/clusters/{cluster_id}/agency-mapping  | 
    
| 
       API  | 
     
       Function  | 
     
       API URI  | 
    
|---|---|---|
| 
       Cluster management APIs  | 
     
       POST /v1.1/{project_id}/run-job-flow  | 
    |
| 
       PUT /v1.1/{project_id}/cluster_infos/{cluster_id}  | 
    ||
| 
       GET /v1.1/{project_id}/cluster_infos  | 
    ||
| 
       GET /v1.1/{project_id}/cluster_infos/{cluster_id}  | 
    ||
| 
       GET /v1.1/{project_id}/clusters/{cluster_id}/hosts  | 
    ||
| 
       DELETE /v1.1/{project_id}/clusters/{cluster_id}  | 
    ||
| 
       Auto scaling APIs  | 
     
       POST /v1.1/{project_id}/autoscaling-policy/{cluster_id}  | 
    |
| 
       Tag management APIs  | 
     
       POST /v1.1/{project_id}/clusters/{cluster_id}/tags  | 
    |
| 
       DELETE /v1.1/{project_id}/clusters/{cluster_id}/tags/{key}  | 
    ||
| 
       GET /v1.1/{project_id}/clusters/{cluster_id}/tags  | 
    ||
| 
       POST /v1.1/{project_id}/clusters/{cluster_id}/tags/action  | 
    ||
| 
       GET /v1.1/{project_id}/clusters/tags  | 
    ||
| 
       POST /v1.1/{project_id}/clusters/resource_instances/action  | 
    
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.