Skip to content

Opensearch dashboards.savedobjectsservicestart.createscopedrepository

Home > opensearch-dashboards > SavedObjectsServiceStart > createScopedRepository

SavedObjectsServiceStart.createScopedRepository property

Creates a Saved Objects repository that uses the credentials from the passed in request to authenticate with OpenSearch.

Signature:

createScopedRepository: (req: OpenSearchDashboardsRequest, includedHiddenTypes?: string[]) => ISavedObjectsRepository;

Remarks

Prefer using getScopedClient. This should only be used when using methods not exposed on SavedObjectsClientContract