Skip to main content
GET
https://sandbox.getcollate.io/api
/
v1
/
containers
GET /v1/containers
from metadata.sdk import configure
from metadata.sdk.entities import Containers

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# List first page
containers = Containers.list(limit=50)
for c in containers.data:
    print(f"{c.fullyQualifiedName}")

# List all with auto-pagination
for c in Containers.list_all():
    print(f"{c.fullyQualifiedName}")

# Filter by storage service
containers = Containers.list(
    service="s3_datalake",
    fields=["owners", "tags", "dataModel"],
    limit=50
)

for c in containers.data:
    print(f"{c.fullyQualifiedName}")
    if c.owners:
        print(f"  Owners: {[o.name for o in c.owners]}")
    if c.tags:
        print(f"  Tags: {[t.tagFQN for t in c.tags]}")
{
  "data": [
    {
      "id": "14744329-85c2-499e-b1fa-249fb8162341",
      "name": "analytics-bucket",
      "displayName": "Analytics Bucket",
      "fullyQualifiedName": "s3_datalake.analytics-bucket",
      "description": "Primary analytics data lake bucket",
      "version": 0.1,
      "updatedAt": 1769982673032,
      "updatedBy": "admin",
      "service": {
        "id": "d1589e1d-2ab0-431c-a383-15e4be20a106",
        "type": "storageService",
        "name": "s3_datalake",
        "fullyQualifiedName": "s3_datalake",
        "deleted": false
      },
      "serviceType": "S3",
      "prefix": "/analytics/",
      "numberOfObjects": 150000,
      "size": 5368709120,
      "fileFormats": ["parquet", "json"],
      "href": "http://localhost:8585/api/v1/containers/14744329-85c2-499e-b1fa-249fb8162341",
      "deleted": false,
      "owners": [],
      "tags": [],
      "followers": [],
      "votes": {
        "upVotes": 0,
        "downVotes": 0
      },
      "domains": []
    }
  ],
  "paging": {
    "after": "...",
    "total": 5
  }
}

List Containers

List all containers with optional filtering and pagination.

Query Parameters

service
string
Filter by storage service fully qualified name.
limit
integer
default:"10"
Maximum number of results to return (max: 1000000).
before
string
Cursor for backward pagination.
after
string
Cursor for forward pagination.
fields
string
Comma-separated list of fields to include: owners, tags, followers, votes, extension, domains, dataModel, children, sourceHash. See Supported Fields below.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
GET /v1/containers
from metadata.sdk import configure
from metadata.sdk.entities import Containers

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# List first page
containers = Containers.list(limit=50)
for c in containers.data:
    print(f"{c.fullyQualifiedName}")

# List all with auto-pagination
for c in Containers.list_all():
    print(f"{c.fullyQualifiedName}")

# Filter by storage service
containers = Containers.list(
    service="s3_datalake",
    fields=["owners", "tags", "dataModel"],
    limit=50
)

for c in containers.data:
    print(f"{c.fullyQualifiedName}")
    if c.owners:
        print(f"  Owners: {[o.name for o in c.owners]}")
    if c.tags:
        print(f"  Tags: {[t.tagFQN for t in c.tags]}")
{
  "data": [
    {
      "id": "14744329-85c2-499e-b1fa-249fb8162341",
      "name": "analytics-bucket",
      "displayName": "Analytics Bucket",
      "fullyQualifiedName": "s3_datalake.analytics-bucket",
      "description": "Primary analytics data lake bucket",
      "version": 0.1,
      "updatedAt": 1769982673032,
      "updatedBy": "admin",
      "service": {
        "id": "d1589e1d-2ab0-431c-a383-15e4be20a106",
        "type": "storageService",
        "name": "s3_datalake",
        "fullyQualifiedName": "s3_datalake",
        "deleted": false
      },
      "serviceType": "S3",
      "prefix": "/analytics/",
      "numberOfObjects": 150000,
      "size": 5368709120,
      "fileFormats": ["parquet", "json"],
      "href": "http://localhost:8585/api/v1/containers/14744329-85c2-499e-b1fa-249fb8162341",
      "deleted": false,
      "owners": [],
      "tags": [],
      "followers": [],
      "votes": {
        "upVotes": 0,
        "downVotes": 0
      },
      "domains": []
    }
  ],
  "paging": {
    "after": "...",
    "total": 5
  }
}

Returns

Returns a paginated list of container objects. By default, only basic fields are included. Use the fields parameter to request additional data.

Response

data
array
Array of container objects.
paging
object
Pagination information.

Supported Fields

The following fields can be requested via the fields query parameter:
FieldDescription
ownersOwner references (users and teams)
tagsClassification tags
followersUsers following the container
votesUser votes and ratings
extensionCustom property values
domainsDomain assignments for governance
dataModelData model with column definitions
childrenNested child containers
sourceHashHash for change detection

Error Handling

CodeError TypeDescription
401UNAUTHORIZEDInvalid or missing authentication token
403FORBIDDENUser lacks permission to list containers