API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (MaxCompute/2022-01-04) uses the ROA signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.
Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.
Custom signature scenarios
If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.
Account and security preparation
Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.
Quota management
|
API |
Title |
Description |
| CreateQuota | Create a quota | Creates a quota. When you activate MaxCompute for the first time, you must first create a pay-as-you-go quota. If you create a subscription quota, an automatic payment is deducted. |
| ListQuotas | Retrieves a list of quotas. | Retrieves a list of quotas. |
| QueryQuota | QueryQuota | Queries the information about a specified level-1 quota group. |
| GetQuota | GetQuota | Retrieve information for the specified level-1 quota group. Warning: This operation will be decommissioned on July 31, 2024. It will be replaced by the `QueryQuota` operation. The request parameters, response parameters, and features of the two operations are the same. |
| Compute quota configuration | Compute quota configuration | |
| CreateComputeQuotaPlan | Create a compute quota plan | Creates a compute quota plan. |
| UpdateComputeSubQuota | UpdateComputeSubQuota | Updates the basic configuration of a MaxCompute quota, including adding or deleting level-2 quotas, defining the basic attributes of a level-2 quota, and configuring compute units (CUs) for a quota plan that is in effect. |
| GetComputeQuotaPlan | Retrieve compute quota plan details | Retrieves the details of a single compute quota plan. |
| ListComputeQuotaPlan | List compute quota plans | Lists compute quota plans. |
| UpdateComputeQuotaPlan | Update a quota plan | Updates a quota plan. |
| DeleteComputeQuotaPlan | Delete a compute quota plan | Deletes a MaxCompute compute quota plan. |
| ApplyComputeQuotaPlan | Immediately activate a quota plan | Immediately activates a quota plan. |
| GetComputeQuotaSchedule | GetComputeQuotaSchedule | Displays the time-specific configuration of compute quota. |
| UpdateComputeQuotaSchedule | Update the time-based plan for a compute quota | Updates the time-based plan for a compute quota. |
| GetComputeEffectivePlan | Retrieve the currently active compute quota plan | Retrieves the currently active compute quota plan. |
| Compute quota configuration (legacy, not recommended) | Compute quota configuration (legacy, not recommended) | |
| CreateQuotaPlan | Create a quota plan | Creates a quota plan. |
| GetQuotaPlan | GetQuotaPlan | Obtains the information of a quota plan. |
| UpdateQuotaPlan | Update a quota plan | Updates a quota plan. |
| ListQuotasPlans | ListQuotasPlans | Obtains quota plans. |
| DeleteQuotaPlan | Delete a quota plan | Deletes a quota plan. |
| UpdateQuotaSchedule | UpdateQuotaSchedule | Updates the scheduling plan for a quota plan. |
| GetQuotaSchedule | GetQuotaSchedule | Obtains the scheduling plan for a quota plan. |
Project management
|
API |
Title |
Description |
| Basic management (Project) | Basic management (Project) | |
| UpdateProjectBasicMeta | Modify basic project information | Modifies the basic information of a project. |
| UpdateProjectDefaultQuota | UpdateProjectDefaultQuota | Updates the default computing quota of a project. |
| UpdateProjectIpWhiteList | Update the project IP address whitelist | Updates the IP address whitelist for a MaxCompute project. |
| UpdateProjectModelTier | UpdateProjectModelTier | Upgrades a project's Layer 2 model to a Layer 3 model. |
| GetTrustedProjects | GetTrustedProjects | Obtains the trusted projects of the current project. |
| Roles and permissions (Role, user) | Roles and permissions (Role, user) | |
| DeleteRole | DeleteRole | Deletes a project-level role in MaxCompute. |
| ListProjectUsers | Retrieve the list of users in a project | Retrieves the list of users in a project. |
| CreateRole | Create a project-level role | Creates a project-level role in MaxCompute. |
| GetRoleAcl | GetRoleAcl | Obtains the ACL-based permissions that is granted to a project-level role. |
| GetRoleAclOnObject | GetRoleAclOnObject | Obtains ACL-based permissions on an object that are granted to a project-level role. |
| GetRolePolicy | GetRolePolicy | Obtains the policy that is attached to a project-level role. |
| ListUsersByRole | Retrieve users bound to a project-level role | Retrieves the list of users bound to a project-level role. |
| UpdateUsersToRole | Add or remove users from a project role | Add or remove users from a project role. |
| Package | Package | |
| ListPackages | Retrieve the list of packages | Retrieves the list of packages in a MaxCompute project. |
| UpdatePackage | UpdatePackage | Updates the objects in a package and projects in which the package can be installed. |
| CreatePackage | Create a package | Creates a package. |
| GetPackage | GetPackage | Obtains the information about a package. |
| Tables (Table) | Tables (Table) | |
| GetTableInfo | Retrieve table information | Queries the information about MaxCompute internal tables, views, external tables, clustered tables, or transactional tables. |
Resource observability
|
API |
Title |
Description |
| QueryQuotaMetric | Query compute resource consumption information | Queries time-series information about quota resource consumption. |
| QueryTunnelMetricDetail | Query tunnel resource observability details | Queries the detailed data of the Tunnel data transfer service within a specified time range. |
| QueryTunnelMetric | Retrieve tunnel resource observation time series data | Queries the metric data of the Tunnel data transfer service within a specified time range. |
| GetQuotaUsage | GetQuotaUsage | Queries quota resource consumption information. |
| ListJobMetric | Retrieve job performance metrics | Retrieves the performance metrics of completed jobs. |
| QueryStorageMetric | QueryStorageMetric | Queries time-series metrics of data storage. |
| ListStorageTablesInfo | Retrieve table storage details | Retrieves the storage details of tables in a MaxCompute project. |
| ListStoragePartitionsInfo | Retrieve partition storage details | Retrieves the storage details of each partition in a partitioned table within a specified MaxCompute project. |
| GetStorageSizeSummary | GetStorageSizeSummary | Retrieves a summary of storage usage. |
| GetStorageAmountSummary | Retrieves the total storage information. | Retrieves the total storage information. |
| GetStorageSummaryCompared | GetStorageSummaryCompared | Retrieves the year-on-year (YoY) change in storage usage. |
| ListStorageProjectsInfo | Retrieves the storage details of MaxCompute projects. | Retrieves the storage details of MaxCompute projects. |
Job O&M
|
API |
Title |
Description |
| ListJobInfos | Lists jobs. | Lists jobs. |
| ListJobSnapshotInfos | Retrieves the list of job snapshots. | Retrieves job snapshot data at a specific point in time. |
| GetJobInfo | GetJobInfo | Queries basic information about a job. |
| GetRunningJobs | GetRunningJobs | Obtains the running state data of jobs that are in the running state in a specified period of time. |
| KillJobs | Terminate a job | Terminates a running job. |
| GetJobResourceUsage | GetJobResourceUsage | Performs statistics on all jobs that are complete on a specified day and obtains the total resource usage of each job executor on a daily basis. |
Data migration
|
API |
Title |
Description |
| RetryMmsTask | Retry a data migration task | Retries a data migration task. |
| CreateMmsDataSource | Create a data source | Creates a data source to perform data migration from the data source to MaxCompute through Migration Service. |
| GetMmsDataSource | GetMmsDataSource | Retrieves the details of a single MaxCompute Migration Assist (MMA) data source. |
| ListMmsDataSources | List data sources | Lists MMA data sources. |
| UpdateMmsDataSource | Updates the data source configuration and enables or disables the data source instance. | Refreshes the metadata of a MaxCompute Migration Assist (MMA) data source. |
| DeleteMmsDataSource | Delete a data source | Deletes an MMA data source, including the migration plans and metadata of the data source. |
| CreateMmsFetchMetadataJob | Create a task to synchronize datasource metadata | Creates a task to pull datasource metadata. |
| GetMmsFetchMetadataJob | Retrieves the details of a fetches metadata job. | Retrieves the details of a MaxCompute Migration Assist (MMA) job that fetches metadata. |
| ListMmsDbs | List databases in a data source | Lists the databases in an MMA data source. |
| GetMmsDb | GetMmsDb | Retrieves a database from a MaxCompute Migration Assist (MMA) data source. |
| ListMmsTables | ListMmsTables | Lists the tables in a MaxCompute Migration Assist (MMA) data source. |
| GetMmsTable | GetMmsTable | Retrieves a table from a MaxCompute Migration Assist (MMA) data source. |
| ListMmsPartitions | List partitions in a data source | Lists the partitions in an MMA data source. |
| GetMmsPartition | GetMmsPartition | Retrieves a partition from a MaxCompute Migration Assist (MMA) data source. |
| CreateMmsJob | Create a data migration task | Creates a data migration task. |
| ListMmsJobs | ListMmsJobs | Lists migration jobs. |
| GetMmsJob | Retrieve the details of a single migration job | Retrieves the details of a single MMA migration plan. |
| GetMmsAsyncTask | Retrieve details of a single asynchronous task related to data migration | Retrieves a single asynchronous task in MMA. |
| DeleteMmsJob | Delete a data migration job | Deletes an MMA data migration plan. |
| StartMmsJob | Start a data migration job | Starts a data migration job. |
| StopMmsJob | StopMmsJob | Stops a data migration job. |
| RetryMmsJob | Retry a data migration job | Retries a data migration job. |
| ListMmsTasks | Queries the list of data migration tasks. | Queries the list of migration tasks. |
| GetMmsTask | GetMmsTask | Retrieves the details of a specific migration task. |
| ListMmsTaskLogs | Lists the execution logs of a single migration task.k | Lists the execution logs of a single migration task. |
| CreateMmsTimer | Create a scheduled data migration task | CreateMmsTimer |
| UpdateMmsTimer | Update a scheduled task | UpdateMmsTimer |
| UpdateMmsTables | UpdateMmsTables | Updates table metadata. |
| UpdateMmsTable | UpdateMmsTable | Updates table metadata. |
| UpdateMmsDb | UpdateMmsDb | Updates the metadata of a specified database. |
| ListMmsTimers | List scheduled tasks for data migration | ListMmsTimers |
| ListMmsTimerLogs | List scheduled task logs | ListMmsTimerLogs |
| ListMmsDataSourceConfigItems | ListMmsDataSourceConfigItems | Lists the configuration items for a specified data source type. |
| GetMmsTimer | GetMmsTimer | GetMmsTimer |
| DeleteMmsTimer | Delete a scheduled task | Deletes a scheduled task. |
Cost analysis
|
API |
Title |
Description |
| ListInstances | ListInstances | Retrieves a list of projects for cost analysis over a specified time period. |
| SumStorageMetricsByType | Queries storage usage statistics by storage type. | Queries storage usage statistics by storage type. |
| ListComputeMetricsBySignature | ListComputeMetricsBySignature | View detailed compute usage for jobs by Signature. |
| SumComputeMetricsByUsage | SumComputeMetricsByUsage | Aggregates compute usage by scanned data volume or CU usage. |
| SumComputeMetricsByRecord | Count the number of usage records | Counts the number of usage records. |
| SumDailyBillsByItem | Query daily billing details by instance or billable item | Queries the daily billing details by instance or billable item. |
| SumBills | Aggregate billing information by instance or billable item | Aggregates the billing information by instance or billable item. |
| SumBillsByDate | SumBillsByDate | Retrieves a daily summary of costs, grouped by instance or billable item. |
| SumStorageMetricsByDate | SumStorageMetricsByDate | Retrieves aggregated storage metrics over a specified date range, grouped by project or storage class. |
| ListComputeMetricsByInstance | List job compute usage at the instance level | Lists job compute usage at the instance level. |
Others
|
API |
Title |
Description |
| TriggerMmsTimer | TriggerMmsTimer | Triggers a timer for a specific datasource. |
| CreateProject | Create a project | Creates a MaxCompute project. |
| DeleteProject | Delete a project | Deletes a MaxCompute project. This operation is irreversible. Exercise caution when calling this API. |
| GetLogviewDownloadUrl | Retrieve offline logview download link | Retrieves the download link for the offline Logview file of an instance in a specified MaxCompute project. The link is valid for 10 minutes from the time of generation. |
| GetProject | Retrieve the project information. | Queries the basic information of a MaxCompute project. |
| ListFunctions | ListFunctions | Obtains functions in a MaxCompute project. |
| ListProjects | List projects | Lists MaxCompute projects |
| ListResources | List resources | Retrieves a list of resources in a MaxCompute project. |
| ListRoles | Retrieve project-level roles | Retrieves the list of project-level roles in a MaxCompute project. |
| ListTables | List tables | Retrieves a list of tables in a MaxCompute project. |
| ListUsers | List users | Retrieves all users under a tenant. |