from metadata.sdk import configurefrom metadata.sdk.entities import APICollectionsconfigure( host="https://your-company.getcollate.io/api", jwt_token="your-jwt-token")# Get by IDac = APICollections.retrieve("0f7ee81c-8163-4097-8adb-45c3d6c7b14b")print(f"{ac.fullyQualifiedName}: {ac.description}")# Get by ID with fieldsac = APICollections.retrieve( "0f7ee81c-8163-4097-8adb-45c3d6c7b14b", fields=["owners", "tags"])# Get by fully qualified nameac = APICollections.retrieve_by_name("sample_api_service.pet")# Get by name with fieldsac = APICollections.retrieve_by_name( "sample_api_service.pet", fields=["owners", "tags", "domain"])
Get an API collection by ID or fully qualified name
GET
https://sandbox.getcollate.io/api
/
v1
/
apiCollections
/
{id}
GET /v1/apiCollections/{id}
Copy
Ask AI
from metadata.sdk import configurefrom metadata.sdk.entities import APICollectionsconfigure( host="https://your-company.getcollate.io/api", jwt_token="your-jwt-token")# Get by IDac = APICollections.retrieve("0f7ee81c-8163-4097-8adb-45c3d6c7b14b")print(f"{ac.fullyQualifiedName}: {ac.description}")# Get by ID with fieldsac = APICollections.retrieve( "0f7ee81c-8163-4097-8adb-45c3d6c7b14b", fields=["owners", "tags"])# Get by fully qualified nameac = APICollections.retrieve_by_name("sample_api_service.pet")# Get by name with fieldsac = APICollections.retrieve_by_name( "sample_api_service.pet", fields=["owners", "tags", "domain"])
from metadata.sdk import configurefrom metadata.sdk.entities import APICollectionsconfigure( host="https://your-company.getcollate.io/api", jwt_token="your-jwt-token")# Get by IDac = APICollections.retrieve("0f7ee81c-8163-4097-8adb-45c3d6c7b14b")print(f"{ac.fullyQualifiedName}: {ac.description}")# Get by ID with fieldsac = APICollections.retrieve( "0f7ee81c-8163-4097-8adb-45c3d6c7b14b", fields=["owners", "tags"])# Get by fully qualified nameac = APICollections.retrieve_by_name("sample_api_service.pet")# Get by name with fieldsac = APICollections.retrieve_by_name( "sample_api_service.pet", fields=["owners", "tags", "domain"])