Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
OneLake offers a REST API endpoint for interacting with tables in Fabric. This article describes how to get started using this endpoint to interact with Apache Iceberg REST Catalog (IRC) APIs available at this endpoint for metadata read operations.
These operations discover namespaces, tables, and table metadata. To retrieve rows from a Delta Lake or Apache Iceberg table while enforcing OneLake security, use the OneLake table read API.
For overall OneLake table API guidance and prerequisite guidance, see the OneLake table API overview.
For examples of using the API, see the Iceberg table API samples.
Iceberg table API endpoint
The OneLake table API endpoint is:
https://onelake.table.fabric.microsoft.com
At the OneLake table API endpoint, the Iceberg REST Catalog (IRC) API is available under the following <BaseUrl>. You can generally provide this path when initializing existing IRC clients or libraries.
https://onelake.table.fabric.microsoft.com/iceberg
Examples of IRC client configuration with the OneLake table endpoint are covered in the Iceberg table API samples.
Note
Before using the Iceberg APIs, be sure you have Delta Lake to Iceberg metadata conversion enabled for your tenant or workspace. See the instructions to learn how to enable automatic Delta Lake to Iceberg metadata conversion.
Iceberg table API operations
This endpoint currently supports the following IRC operations. You can find examples of these operations in the Iceberg table API samples.
Get configuration
GET <BaseUrl>/v1/config?warehouse=<Warehouse>This operation accepts the workspace ID and data item ID (or their equivalent friendly names if they don’t contain any special characters).
<Warehouse>is typically<WorkspaceID>/<dataItemID>.This operation returns the
Prefixstring that is used in subsequent requests.List namespaces
GET <BaseUrl>/v1/<Prefix>/namespacesThis operation returns the list of schemas within a data item. If the data item doesn't support schemas, a fixed schema named
dbois returned.Get namespace
GET <BaseUrl>/v1/<Prefix>/namespaces/<SchemaName>This operation returns information about a schema within a data item, if the schema is found. If the data item doesn't support schemas, a fixed schema named
dbois supported here.List tables
GET <BaseUrl>/v1/<Prefix>/namespaces/<SchemaName>/tablesThis operation returns the list of tables found within a given schema.
Get table
GET <BaseUrl>/v1/<Prefix>/namespaces/<SchemaName>/tables/<TableName>This operation returns metadata details for a table within a schema, if the table is found.
Current limitations, considerations
The use of the OneLake Iceberg metadata API is subject to the following limitations and considerations:
Certain data items may not support schemas
Depending on the type of data item you use, such as non-schema-enabled Fabric lakehouses, there may not be schemas within the Tables directory. In such cases, for compatibility with API clients, the OneLake table APIs provide a default, fixed
dboschema (or namespace) to contain all tables within a data item.Current namespace scope
In Fabric, data items contain a flat list of schemas, which each contains a flat list of tables. Today, the top-level namespaces listed by the Iceberg APIs are schemas, so although the Iceberg REST Catalog (IRC) standard supports multi-level namespaces, the OneLake implementation offers one level, mapping to schemas.
Because of this limitation, we don't yet support the
parentquery parameter for thelist namespacesoperation.Metadata write operations and other metadata operations
The Iceberg REST Catalog surface supports only the metadata operations listed in Iceberg table API operations. This surface doesn't support metadata write operations. This limitation doesn't describe row retrieval through the separate table read API.
Related content
- Learn more about the OneLake table APIs overview.
- See the Iceberg table API samples.
- Read OneLake table data.
- Set up automatic Delta Lake to Iceberg format conversion.