Skip to main content

CatalogApi.getLocationByEntity()

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

Gets a location associated with an entity.

Signature:

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

Parameters

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

Returns:

Promise<Location | undefined>