Catalog Entities
Last updated
Last updated
Use these operations to interact with entities in Cortex.
Edit entities: Your API key must have the Edit entities
permission.
Archive entities: Your API key must have the Archive entities
permission.
Delete entities: Your API key must have Delete entities
permission.
List 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.
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, which 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. Can be 'full' or a valid integer
Supports only GitHub repositories in the org/repo
format
cortexapps%2Fbackend,cortexapps%2Ffrontend
List of sub fields to include for hierarchies. Only supports 'groups'
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.
service,rds,s3,domain
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
team:members
Number of results to return per page, between 1 and 1000. Default 250.
Page number to return, 0-indexed. Default 0.
List entity descriptors
The descriptors do not include objects (e.g. custom data, dependencies, etc) defined via the API
When true, returns the YAML representation of the descriptors
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.
service,rds,s3,domain
Number of entities to return per page
Page number to return, 0 indexed
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Depth of the parent / children hierarchy nodes. Can be 'full' or a valid integer
List of sub fields to include for hierarchies. Only supports 'groups'
groups
Retrieve entity descriptor
The descriptor does not include objects (e.g. custom data, dependencies, etc) defined via the API
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
When true, returns the YAML representation of the descriptor
Create a catalog entity using a descriptor YAML. If the YAML refers to an entity that already exists (as referenced by the x-cortex-tag
), this API will update the existing entity.
When true, this endpoint only validates the descriptor contents and returns any errors or warnings.
Add a comment with validation errors on the pull request with the given ID
Creates or updates an entity using OpenAPI. If the YAML refers to an entity that already exists (as referenced by the x-cortex-tag
), this API will merge the specified changes into the existing entity.
When true, this endpoint only validates the descriptor contents and returns any errors or warnings.
Delete keys with this value from the merged yaml, e.g. __delete__
, if any values match this, they will not be included in merged YAML. For example my_value: __delete__
will remove my_value
from the merged YAML.
Default merge behavior is to replace arrays, set this to true to append arrays instead. For simple types, duplicate values will be removed from the merged array.
Default behavior is to upsert the entity, set failIfEntityDoesNotExist=true
to fail (404) if the entity specified in x-cortex-tag
does not exist.
Note: Dangerous operation that will delete all entities that are of the given type
A list of entity types to delete
service,rds,s3,domain
No body