Skip to main content

CatalogClient.getLocationByEntity()

Home > @backstage/catalog-client > CatalogClient > getLocationByEntity

Gets a location associated with an entity.

Signature:

getLocationByEntity(entityRef: CompoundEntityRef | string, options?: CatalogRequestOptions): Promise<Location | undefined>;

Parameters

ParameterTypeDescription
entityRefCompoundEntityRef | stringA complete entity ref, either on string or compound form
optionsCatalogRequestOptions(Optional) Additional options

Returns:

Promise<Location | undefined>