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 | |
PUT /v2/{project_id}/clusters/{cluster_id}/cluster-name | ||
Creating a Cluster and Submitting a Job - CreateClusterAndSubmitJob | POST /v2/{project_id}/run-job-flow | |
Obtaining the Cluster Communication Security Authorization Status - ListSecurityRuleStatus | GET /v2/{project_id}/clusters/{cluster_id}/security-rule/status | |
POST /v2/{project_id}/clusters/{cluster_id}/expand | ||
POST /v2/{project_id}/clusters/{cluster_id}/shrink | ||
POST /v2/{project_id}/clusters/{cluster_id}/components | ||
GET /v2/{project_id}/clusters/{cluster_id}/nodes | ||
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 | ||
Auto scaling APIs | GET /v2/{project_id}/autoscaling-policy/{cluster_id} | |
PUT /v2/{project_id}/autoscaling-policy/{cluster_id} | ||
DELETE /v2/{project_id}/autoscaling-policy/{cluster_id} | ||
POST /v2/{project_id}/autoscaling-policy/{cluster_id} | ||
Cluster HDFS file APIs (V2) | Obtaining the List of Files from a Specified Directory - ShowHdfsFileList | 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 - ShowAgencyMapping | GET /v2/{project_id}/clusters/{cluster_id}/agency-mapping |
Updating the Mapping Between a User (Group) and an IAM Agency - UpdateAgencyMapping | PUT /v2/{project_id}/clusters/{cluster_id}/agency-mapping | |
Data connection management APIs | POST /v2/{project_id}/data-connectors | |
GET /v2/{project_id}/data-connectors | ||
PUT /v2/{project_id}/data-connectors/{connector_id} | ||
DELETE /v2/{project_id}/data-connectors/{connector_id} | ||
Version metadata query APIs | GET /v2/{project_id}/metadata/versions | |
Querying Available Specifications of an MRS Cluster Version - ShowMrsFlavors | GET /v2/{project_id}/metadata/version/{version_name}/available-flavor | |
IAM synchronization management APIs | Checking Ongoing IAM User Synchronization in a Cluster - ListClusterSyncTaskStatus | GET /v2/{project_id}/clusters/{cluster_id}/iam-sync |
Querying IAM User Synchronization Status of a Specified Cluster - ListClusterSyncStatus | GET /v2/{project_id}/clusters/{cluster_id}/iam-sync/is-synchronous | |
Obtaining Synchronized IAM Users and User Groups - ShowSyncIamUser | GET /v2/{project_id}/clusters/{cluster_id}/iam-sync-user | |
POST /v2/{project_id}/clusters/{cluster_id}/iam-sync-user | ||
Cancelling Synchronization of Specified Users and User Groups - CancelSyncIamUser | DELETE /v2/{project_id}/clusters/{cluster_id}/iam-sync-user | |
Tag Management APIs | Enabling or Disabling the Default Tag of a Cluster - SwitchClusterTags | POST /v2/{project_id}/clusters/{cluster_id}/tags/switch |
Querying the Default Cluster Tag Status - ShowDefaultTagStatus | GET /v2/{project_id}/clusters/{cluster_id}/tags/status | |
GET /v2/{project_id}/clusters/{cluster_id}/tags/quota |
API | Function | API URI |
|---|---|---|
Cluster management APIs | Creating a Cluster and Executing a Job - CreateClusterAndSubmitJob | 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} | ||
Querying the Status of an Agency Switch Task in a Specified Cluster- ListAgencyTaskStatus | GET /v1/{project_id}/clusters/{cluster_id}/async_task_status/update_ecs_agency | |
Job object APIs | POST /v1.1/{project_id}/jobs/submit-job | |
GET /v1.1/{project_id}/job-exes | ||
GET /v1.1/{project_id}/job-exes/{job_exe_id} | ||
Job execution object APIs | DELETE /v1.1/{project_id}/job-executions/{job_execution_id} | |
Auto scaling APIs | POST /v1.1/{project_id}/autoscaling-policy/{cluster_id} | |
AZ APIs | GET /v1.1/{region_id}/available-zones | |
Version metadata | Querying the Metadata of a Cluster Version - ShowMrsVersionMetadata | GET /v1.1/{project_id}/metadata/versions/{version_name} |
Tag management APIs | POST /v1.1/{project_id}/clusters/{cluster_id}/tags | |
GET /v1.1/{project_id}/clusters/{cluster_id}/tags | ||
DELETE /v1.1/{project_id}/clusters/{cluster_id}/tags/{key} | ||
Adding Tags to a Cluster in Batches - BatchCreateClusterTags | POST /v1.1/{project_id}/clusters/{cluster_id}/tags/action | |
Deleting Tags from a Cluster in Batches - BatchDeleteClusterTags | POST /v1.1/{project_id}/clusters/{cluster_id}/tags/action | |
GET /v1.1/{project_id}/clusters/tags | ||
Querying a List of Clusters with Specified Tags - ListClustersByTags | 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
