API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (DataLake/2020-07-10) 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.
Metadata
|
API |
Title |
Description |
| Catalogs | Catalogs | |
| CreateCatalog | Create a data lake catalog | Creates a data lake catalog. |
| DeleteCatalog | DeleteCatalog | Deletes a catalog. |
| UpdateCatalog | UpdateCatalog | Updates a catalog. |
| ListCatalogs | ListCatalogs | Retrieve catalogs. |
| GetCatalog | GetCatalog | Retrieves the details of a catalog. |
| Databases | Databases | |
| CreateDatabase | CreateDatabase | Creates a metadatabase in the metadata of a data lake. |
| DeleteDatabase | DeleteDatabase | Deletes a database from a catalog. |
| UpdateDatabase | Update database information | Updates the details of a database in the data lake. |
| GetDatabase | GetDatabase | Retrieves the details of a specific database in a data lake. |
| ListDatabases | ListDatabases | Retrieves a paginated list of databases in a data lake. You can match databases by name. |
| Tables | Tables | |
| CreateTable | CreateTable | Creates a table in a data lake. |
| DeleteTable | DeleteTable | Deletes a data table from a data lake. |
| DeleteTableColumnStatistics | DeleteTableColumnStatistics | Deletes the column statistics of a table in a data lake. |
| DeleteTableVersion | DeleteTableVersion | Deletes a specified version of a table in the data lake. |
| UpdateTable | Update table information | Updates the information of a table in the data lake by name. |
| UpdateTableColumnStatistics | Update table statistics information | Creates or updates the column statistics information of a table. |
| GetTable | GetTable | Retrieves the details of a table in a data lake. |
| GetTableColumnStatistics | GetTableColumnStatistics | Retrieves statistics for specified columns in a data lake table. |
| GetTableVersion | GetTableVersion | Retrieves a specific version of a table. |
| ListTableNames | ListTableNames | Lists the names of tables in a data lake. |
| ListTables | ListTables | Retrieves a list of data tables in a data lake. |
| ListTableVersions | ListTableVersions | Performs the versions of a table. |
| GetTableProfile | Retrieve table data profile | Retrieves the details of the table data profile. |
| RenameTable | RenameTable | Updates the name of a data table in a data lake. |
| BatchGetTables | Retrieve details of multiple tables | Retrieves the details of multiple tables in a data lake. |
| BatchCreateTables | Create multiple tables in a data lake | Creates multiple tables in a data lake. |
| BatchDeleteTables | Delete multiple tables | Deletes multiple tables in a data lake by name. |
| BatchDeleteTableVersions | Batch delete table versions | Deletes the specified versions of a data lake table. |
| BatchUpdateTables | Update table information in batches | Updates the details of tables in a data lake in batches. |
| Partitions | Partitions | |
| CreatePartition | Add a partition to a data table | Adds a partition to a data table in the data lake. |
| DeletePartition | DeletePartition | Deletes a specified partition from a table in a data lake. |
| DeletePartitionColumnStatistics | DeletePartitionColumnStatistics | Deletes the column statistics of a table partition in a data lake. |
| UpdatePartitionColumnStatistics | Update table partition statistics information | Creates or updates the column statistics information for a table partition. |
| GetPartition | GetPartition | Retrieves the details of a database partition in a data lake. |
| GetPartitionColumnStatistics | GetPartitionColumnStatistics | Retrieves statistics for specified columns in a data partition of a data lake. |
| ListPartitionNames | ListPartitionNames | Retrieves a list of partition names for a table in a data lake. This operation is typically used for tables with multiple partition levels. |
| ListPartitions | ListPartitions | Lists the details of database partitions in a data lake. |
| ListPartitionsByFilter | ListPartitionsByFilter | Retrieves a list of partitions for a data table in a data lake based on a filter condition. |
| BatchCreatePartitions | Batch create partitions for a data table | Creates multiple partitions in batches for a data table in a data lake. |
| BatchDeletePartitions | Batch delete table partitions | Deletes the specified partitions of a table in a data lake in batches. |
| BatchGetPartitionColumnStatistics | Retrieve partition statistics information in batches | Retrieves the column statistics information for table partitions in a data lake in batches. |
| BatchGetPartitions | Retrieve database partitions in batches | Retrieves the details of multiple database partitions in a data lake. |
| BatchUpdatePartitions | Batch update partitions for a data table | Updates multiple partitions for a data table in a data lake. |
| RenamePartition | RenamePartition | Renames a partition in a data lake table. |
| Functions | Functions | |
| CreateFunction | CreateFunction | Creates a user-defined function in a database within a data lake. |
| DeleteFunction | DeleteFunction | Deletes a user-defined function from a database in the data lake by name. |
| UpdateFunction | Update a database function | Updates the user-defined function information of a database in a data lake by name. |
| ListFunctionNames | ListFunctionNames | Performs a paged query to retrieve a list of function names from a database. |
| ListFunctions | ListFunctions | Lists the user-defined functions from a database in a data lake. |
| GetFunction | GetFunction | Retrieves a user-defined function from a database in a data lake. |
| Locks | Locks | |
| CreateLock | Create a metadata lock | Creates a specified metadata lock. |
| GetLock | GetLock | Queries a specified metadata lock. |
| AbortLock | Abort a metadata lock | Aborts the specified metadata lock. |
| RefreshLock | RefreshLock | Refreshes the specified metadata lock. |
| UnLock | Release a specified metadata lock | Releases a specified metadata lock. |
| Metadata migration | Metadata migration | |
| RunMigrationWorkflow | RunMigrationWorkflow | Runs a migration workflow. |
| GetAsyncTaskStatus | GetAsyncTaskStatus | Queries the status of an asynchronous task. |
Permissions
|
API |
Title |
Description |
| CreateRole | Create a role for data lake permissions | Creates a role for data lake permissions. |
| GrantRoleToUsers | GrantRoleToUsers | Grants a DLF role to multiple users. |
| GrantRolesToUser | GrantRolesToUser | Grants multiple roles to a user. |
| GrantPermissions | Grant permissions to a user or data lake role | Grants operation permissions on resources to a user or a data lake role. |
| BatchGrantPermissions | Grant operation permissions on resources to DLF users or roles in batches | Grants operation permissions on resources to DLF users or roles in batches. |
| DeleteRole | DeleteRole | Deletes a DLF role. |
| RevokeRoleFromUsers | RevokeRoleFromUsers | Revokes a DLF role from multiple users. |
| RevokeRolesFromUser | RevokeRolesFromUser | Removes multiple roles from a single user. |
| RevokePermissions | Revoke permissions granted to a user or data lake role | Revokes the operation permissions on resources granted to a user or a data lake role. |
| BatchRevokePermissions | Revoke granted permissions from users or data lake roles in batches | Revokes the granted resource operation permissions from users or data lake roles in batches. |
| UpdateRole | Update a role in data lake permissions | Updates a role in data lake permissions. |
| UpdateRoleUsers | Update users in a role | Updates the users in a role. The users can be RAM users or RAM roles. |
| UpdatePermissions | Update permissions for a user or data lake role | Updates the permissions of a user or data lake role. |
| UpdateCatalogSettings | Update data lake catalog configuration | Updates the configuration of a data lake catalog. This operation requires the admin role or higher. |
| GetRole | GetRole | Retrieves a DLF role by its name. |
| ListRoles | ListRoles | Retrieves DLF roles. |
| ListRoleUsers | ListRoleUsers | Lists the users for a specific role. |
| ListUserRoles | Retrieve data lake roles for a single user | Retrieves the data lake roles of a single user. |
| ListPermissions | Retrieve permissions | Retrieves a list of permissions. |
| CheckPermissions | CheckPermissions | Checks user permissions. |
| GetCatalogSettings | GetCatalogSettings | Retrieves the configuration of a catalog. This operation requires the admin role or a higher role. |
Data exploration
|
API |
Title |
Description |
| CancelQuery | Cancel a query | Cancels a query task. |
General services
|
API |
Title |
Description |
| GetRegionStatus | GetRegionStatus | Retrieves the DLF activation status in a region. |
| GetServiceStatus | GetServiceStatus | Retrieves the DLF activation status for a user. |
| DescribeRegions | DescribeRegions | Retrieves a list of available regions. |
Other
|
API |
Title |
Description |
| SearchAcrossCatalog | SearchAcrossCatalog | Searches for databases, tables, and columns across catalogs. |
| RegisterLocation | RegisterLocation | Registers an Object Storage Service (OSS) path to be managed by Data Lake Formation (DLF). |
| DeregisterLocation | DeregisterLocation | Deregisters a location. |
| UpdateRegisteredLocation | UpdateRegisteredLocation | Updates a registered location. |
| ListPartitionsByExpr | ListPartitionsByExpr | Lists partitions of a table based on a conditional query. |
| GetDatabaseProfile | GetDatabaseProfile | Retrieves the database profile. |
| GetLifecycleRule | GetLifecycleRule | Retrieves the lifecycle rule of a table. |
| ListPartitionsProfile | Retrieve partition data profiles | Retrieves the details of partition data profiles. |