List entities
Changed onList all entities across the Service, Resource and Domain Catalogs.
This API returns summary data for each entity, so refer to the retrieve entity method to lookup more details for a single entity.
Request
- Base URLhttps://api.getcortexapp.com
- URLhttps://api.getcortexapp.com/api/v1/catalog
- AuthHTTP bearer
Query parameters
Filter based on groups, which correspond to the x-cortex-groups field in the Catalog Descriptor. Accepts a comma-delimited list of groups
Filter based on owner group names. Returns entities owned by the specified groups, as well as entities owned by any child/sub-teams of those groups. Group names correspond to the x-cortex-owners field in the Catalog Descriptor. Accepts a comma-delimited list of owner group names.
Depth of the parent / children hierarchy nodes to include for each entity. Defaults to 0, which returns no hierarchy data. Pass 'full' to return the entire hierarchy, or a positive integer to limit the depth.
Filter by git repositories. Supports GitHub (github:org/repo or org/repo), GitLab (gitlab:namespace/project or gitlab:<project ID>), Bitbucket (bitbucket:workspace/repo), and Azure DevOps (azure-devops:project/repo). Unprefixed values default to GitHub for backward compatibility.
List of sub fields to include for hierarchies. Only supports 'groups'
Filter the response to specific types of entities. By default, this includes services, resources, and domains. Corresponds to the x-cortex-type field in the entity descriptor.
Filter based on a search query. This will search across entity properties. If provided, results will be sorted by relevance.
Whether to include archived entities in the response
Whether to include custom data for each entity in the response
Whether to include links for each entity in the response
Whether to include Slack channels for each entity in the response
Whether to include ownership information for each entity in the response
List of sub fields to include for different types
Number of results to return per page, between 1 and 1000. Default 250.
Page number to return, 0-indexed. Default 0.
Response
Successfully found entities
Example response
{
"entities": [
{
"git": {
"provider": "github"
},
"id": "en2da8159dbeefb974",
"members": [
{
"description": "Product manager",
"email": "aditya.bansal@cortex.io",
"name": "Aditya Bansal",
"roles": [
{
"name": "Team Leader",
"source": "WORKDAY"
}
]
}
],
"name": "My Favorite Entity",
"owners": {
"individuals": [
{
"description": "Product manager"
}
],
"teams": [
{
"description": "This is my team",
"id": "en2da8159dbeefb974",
"name": "My Favorite Team",
"tag": "my-favorite-team-entity"
}
]
},
"slackChannels": [
{
"description": "This is the engineering channel",
"name": "engineering"
}
],
"tag": "my-favorite-entity",
"type": "service"
}
]
}Changes
- breaking
for the
queryrequest parameterhierarchyDepth, default value was changed fromfullto0 - info
added the optional property
to the response with the status
- breaking