Skip to main content
Version: Next

createFetchCatalogEntityAction()

Home > @backstage/plugin-scaffolder-backend > createFetchCatalogEntityAction

Returns entity or entities from the catalog by entity reference(s).

Signature:

function createFetchCatalogEntityAction(options: {
catalogClient: CatalogApi;
auth?: AuthService;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
optional?: boolean | undefined;
defaultKind?: string | undefined;
defaultNamespace?: string | undefined;
entityRef?: string | undefined;
entityRefs?: string[] | undefined;
}, {
entities?: any[] | undefined;
entity?: any;
}>;

Parameters

Parameter

Type

Description

options

{ catalogClient: CatalogApi; auth?: AuthService; }

**Returns:**

import("@backstage/plugin-scaffolder-node").TemplateAction<{ optional?: boolean | undefined; defaultKind?: string | undefined; defaultNamespace?: string | undefined; entityRef?: string | undefined; entityRefs?: string[] | undefined; }, { entities?: any[] | undefined; entity?: any; }>