GET /v1/domains
from metadata.sdk import configure
from metadata.sdk.entities import Domains
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List first page
domains = Domains.list(limit=50)
for d in domains.data:
print(f"{d.fullyQualifiedName} ({d.domainType})")
# List all with auto-pagination
for d in Domains.list_all():
print(f"{d.fullyQualifiedName}")
# With fields
domains = Domains.list(
fields=["owners", "children", "experts"],
limit=50
)
for d in domains.data:
print(f"{d.fullyQualifiedName}")
if d.owners:
print(f" Owners: {[o.name for o in d.owners]}")
import static org.openmetadata.sdk.fluent.Domains.*;
// List first page
var result = Domains.list()
.limit(50)
.execute();
for (var d : result.getData()) {
System.out.println(d.getFullyQualifiedName());
}
// With fields
var result = Domains.list()
.fields("owners", "children", "experts")
.limit(50)
.execute();
for (var d : result.getData()) {
System.out.println(d.getFullyQualifiedName());
}
# List all
curl "{base_url}/api/v1/domains?limit=50" \
-H "Authorization: Bearer {access_token}"
# With fields
curl "{base_url}/api/v1/domains?fields=owners,children,experts&limit=50" \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "a0729e98-e946-4e25-acde-10e8a2294ba1",
"domainType": "Aggregate",
"name": "TestDomain",
"fullyQualifiedName": "TestDomain",
"description": "Lorem ipsum...",
"version": 0.1,
"updatedAt": 1769984330261,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/domains/a0729e98-e946-4e25-acde-10e8a2294ba1",
"deleted": false,
"owners": [],
"children": []
}
],
"paging": {
"after": "...",
"total": 5
}
}
List Domains
List all domains with optional filtering and pagination
GET
/
v1
/
domains
GET /v1/domains
from metadata.sdk import configure
from metadata.sdk.entities import Domains
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List first page
domains = Domains.list(limit=50)
for d in domains.data:
print(f"{d.fullyQualifiedName} ({d.domainType})")
# List all with auto-pagination
for d in Domains.list_all():
print(f"{d.fullyQualifiedName}")
# With fields
domains = Domains.list(
fields=["owners", "children", "experts"],
limit=50
)
for d in domains.data:
print(f"{d.fullyQualifiedName}")
if d.owners:
print(f" Owners: {[o.name for o in d.owners]}")
import static org.openmetadata.sdk.fluent.Domains.*;
// List first page
var result = Domains.list()
.limit(50)
.execute();
for (var d : result.getData()) {
System.out.println(d.getFullyQualifiedName());
}
// With fields
var result = Domains.list()
.fields("owners", "children", "experts")
.limit(50)
.execute();
for (var d : result.getData()) {
System.out.println(d.getFullyQualifiedName());
}
# List all
curl "{base_url}/api/v1/domains?limit=50" \
-H "Authorization: Bearer {access_token}"
# With fields
curl "{base_url}/api/v1/domains?fields=owners,children,experts&limit=50" \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "a0729e98-e946-4e25-acde-10e8a2294ba1",
"domainType": "Aggregate",
"name": "TestDomain",
"fullyQualifiedName": "TestDomain",
"description": "Lorem ipsum...",
"version": 0.1,
"updatedAt": 1769984330261,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/domains/a0729e98-e946-4e25-acde-10e8a2294ba1",
"deleted": false,
"owners": [],
"children": []
}
],
"paging": {
"after": "...",
"total": 5
}
}
List Domains
List all domains with optional filtering and pagination.Query Parameters
Maximum number of results to return (max: 1000000).
Cursor for backward pagination.
Cursor for forward pagination.
Comma-separated list of fields to include:
owners, children, experts. See Supported Fields below.Include
all, deleted, or non-deleted entities.GET /v1/domains
from metadata.sdk import configure
from metadata.sdk.entities import Domains
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List first page
domains = Domains.list(limit=50)
for d in domains.data:
print(f"{d.fullyQualifiedName} ({d.domainType})")
# List all with auto-pagination
for d in Domains.list_all():
print(f"{d.fullyQualifiedName}")
# With fields
domains = Domains.list(
fields=["owners", "children", "experts"],
limit=50
)
for d in domains.data:
print(f"{d.fullyQualifiedName}")
if d.owners:
print(f" Owners: {[o.name for o in d.owners]}")
import static org.openmetadata.sdk.fluent.Domains.*;
// List first page
var result = Domains.list()
.limit(50)
.execute();
for (var d : result.getData()) {
System.out.println(d.getFullyQualifiedName());
}
// With fields
var result = Domains.list()
.fields("owners", "children", "experts")
.limit(50)
.execute();
for (var d : result.getData()) {
System.out.println(d.getFullyQualifiedName());
}
# List all
curl "{base_url}/api/v1/domains?limit=50" \
-H "Authorization: Bearer {access_token}"
# With fields
curl "{base_url}/api/v1/domains?fields=owners,children,experts&limit=50" \
-H "Authorization: Bearer {access_token}"
{
"data": [
{
"id": "a0729e98-e946-4e25-acde-10e8a2294ba1",
"domainType": "Aggregate",
"name": "TestDomain",
"fullyQualifiedName": "TestDomain",
"description": "Lorem ipsum...",
"version": 0.1,
"updatedAt": 1769984330261,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/domains/a0729e98-e946-4e25-acde-10e8a2294ba1",
"deleted": false,
"owners": [],
"children": []
}
],
"paging": {
"after": "...",
"total": 5
}
}
Returns
Returns a paginated list of domain objects. By default, only basic fields are included. Use thefields parameter to request additional data.
Response
Array of domain objects.
Show properties
Show properties
Unique identifier for the domain (UUID format).
Domain name.
Fully qualified name of the domain.
Type of domain:
Source-aligned, Consumer-aligned, or Aggregate.List of owners. Only included when
fields contains owners.Child domain references. Only included when
fields contains children.Subject matter experts. Only included when
fields contains experts.Supported Fields
The following fields can be requested via thefields query parameter:
| Field | Description |
|---|---|
owners | Owner references (users and teams) |
children | Child domain references |
experts | Subject matter expert references |
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to list domains |
Was this page helpful?
⌘I