API Overview
MRS provides APIs that meet RESTful API design standards, as shown in Table 1.
Some APIs are gradually discarded during MRS version evolution. For details, see Table 2.
API |
Function |
API URI |
---|---|---|
Cluster management APIs (V2) |
POST /v2/{project_id}/clusters |
|
Job object APIs (V2) |
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 |
||
POST /v2/{project_id}/clusters/{cluster_id}/job-executions/batch-delete |
||
GET /v2/{project_id}/clusters/{cluster_id}/job-executions/{job_execution_id}/sql-result |
||
SQL APIs (V2) |
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 |
||
Data source APIs (V1.1) |
POST /v1.1/{project_id}/data-sources |
|
PUT /v1.1/{project_id}/data-sources/{data_source_id} |
||
GET /v1.1/{project_id}/data-sources |
||
GET /v1.1/{project_id}/data-sources/{data_source_id} |
||
DELETE /v1.1/{project_id}/data-sources/{data_source_id} |
||
Cluster management APIs (V1.1) |
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} |
||
DELETE /v1.1/{project_id}/clusters/{cluster_id} |
||
GET /v1.1/{project_id}/clusters/{cluster_id}/hosts |
||
Job binary object APIs (V1.1) |
POST /v1.1/{project_id}/job-binaries |
|
PUT /v1.1/{project_id}/job-binaries/{job_binary_id} |
||
GET /v1.1/{project_id}/job-binaries |
||
GET /v1.1/{project_id}/job-binaries/{job_binary_id} |
||
DELETE /v1.1/{project_id}/job-binaries/{job_binary_id} |
||
Job object APIs (V1.1) |
POST /v1.1/{project_id}/jobs/submit-job |
|
POST /v1.1/{project_id}/jobs |
||
PATCH /v1.1/{project_id}/jobs/{job_id} |
||
POST /v1.1/{project_id}/jobs/{job_id}/execute |
||
GET /v1.1/{project_id}/jobs |
||
GET /v1.1/{project_id}/jobs/{job_id} |
||
GET /v1.1/{project_id}/job-exes |
||
GET /v1.1/{project_id}/job-exes/{job_exe_id} |
||
DELETE /v1.1/{project_id}/jobs/{job_id} |
||
Job execution object APIs (V1.1) |
GET /v1.1/{project_id}/job-executions |
|
GET /v1.1/{project_id}/job-executions/{job_execution_id} |
||
GET /v1.1/{project_id}/job-executions/{job_execution_id}/cancel |
||
DELETE /v1.1/{project_id}/job-executions/{job_execution_id} |
||
Auto scaling APIs (V1.1) |
POST /v1.1/{project_id}/autoscaling-policy/{cluster_id} |
|
Tag management APIs (V1.1) |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot