Registers a new location.
Request parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Validate a given location.
Request parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Lists catalog entities.
Optionalrequest: GetEntitiesRequestRequest parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Gets a batch of entities, by their entity refs.
Request parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Gets entity ancestor information, i.e. the hierarchy of parent entities whose processing resulted in a given entity appearing in the catalog.
Request parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Gets a single entity from the catalog by its ref (kind, namespace, name) triplet.
A complete entity ref, either on string or compound form
Optionaloptions: CatalogRequestOptionsAdditional options
The matching entity, or undefined if there was no entity with that ref
Gets a summary of field facets of entities in the catalog.
Request parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Gets a location associated with an entity.
A complete entity ref, either on string or compound form
Optionaloptions: CatalogRequestOptionsAdditional options
Gets a registered location by its ID.
A location ID
Optionaloptions: CatalogRequestOptionsAdditional options
Gets a registered location by its ref.
A location ref, e.g. "url:https://github.com/..."
Optionaloptions: CatalogRequestOptionsAdditional options
List locations
Optionalrequest: {}Request parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Gets paginated entities from the catalog.
Optionalrequest: QueryEntitiesRequestRequest parameters
Optionaloptions: CatalogRequestOptionsAdditional options
const response = await catalogClient.queryEntities({
filter: [{ kind: 'group' }],
limit: 20,
fullTextFilter: {
term: 'A',
},
orderFields: { field: 'metadata.name', order: 'asc' },
});
this will match all entities of type group having a name starting with 'A', ordered by name ascending.
The response will contain a maximum of 20 entities. In case more than 20 entities exist, the response will contain a nextCursor property that can be used to fetch the next batch of entities.
const secondBatchResponse = await catalogClient
.queryEntities({ cursor: response.nextCursor });
secondBatchResponse will contain the next batch of (maximum) 20 entities, together with a prevCursor property, useful to fetch the previous batch.
Refreshes (marks for reprocessing) an entity in the catalog.
An entity ref on string form (e.g. 'component/default:my-component')
Optionaloptions: CatalogRequestOptionsAdditional options
Removes a single entity from the catalog by entity UID.
An entity UID
Optionaloptions: CatalogRequestOptionsAdditional options
Removes a registered Location by its ID.
A location ID
Optionaloptions: CatalogRequestOptionsAdditional options
Asynchronously streams entities from the catalog. Uses queryEntities
to fetch entities in batches, and yields them one page at a time.
Optionalrequest: StreamEntitiesRequestRequest parameters
Optionaloptions: CatalogRequestOptionsAdditional options
Validate entity and its location.
Entity to validate
Location ref in format url:http://example.com/file
Optionaloptions: CatalogRequestOptionsAdditional options
A client for interacting with the Backstage software catalog through its API.