Skip to main content

EgnyteFetcher

Egnyte fetcher (egnyte://) for filesystem-like traversal and content download through Egnyte APIs.

Notes​

Fetches documents from Egnyte using stable ID-based references.

Supported scheme:

  • egnyte://{domain}/folders/{folderId}
  • egnyte://{domain}/folders/{folderId}/items/{itemId}

V1 authentication is bearer-token based.

Incremental source-delta mode:

  • When crawler-level changeDiscovery is set to SOURCE_DELTA and the crawl runs in incremental mode, the Egnyte root boundary uses the changes feed instead of full child enumeration.
  • Valid SOURCE_DELTA root is:
    • egnyte://{domain}/folders/root
  • Non-root folder boundaries are not valid SOURCE_DELTA roots in v1.
  • One delta cursor is persisted per configured root start reference for the current crawler session and reused on the next incremental run.
  • If Egnyte rejects a stored cursor (400, 404, or 410), the fetcher clears it and restarts delta discovery from a fresh start cursor.
  • Deletions are handled from explicit change events. Missing items are not inferred from absence while changeDiscovery=SOURCE_DELTA.

Examples​

The following example starts from the Egnyte root folder boundary.

class: EgnyteFetcher
accessToken: <token>
apiBaseUrl: https://{domain}.egnyte.com/pubapi/v1

Use a start reference such as:

egnyte://acme/folders/root

For incremental delta crawling from the valid Egnyte boundary, configure crawler-level options:

  • crawlMode: INCREMENTAL
  • changeDiscovery: SOURCE_DELTA

Then use this start reference:

  • egnyte://acme/folders/root

The following example keeps the secret out of the configuration with encrypted credentials.

class: EgnyteFetcher
credentials:
password: ${accessToken}
passwordKey:
source: ENVIRONMENT
value: MY_KEY_VAR

Usage​

Full configuration skeleton, with every option and its default
class: EgnyteFetcher
accessToken: string
apiBaseUrl: string
credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
notFoundStatusCodes:
- 0
referenceFilters: []
validStatusCodes:
- 0

Properties​

PropertyTypeRequiredDefault
accessTokenstringNo-
apiBaseUrlstringNohttps://{domain}.egnyte.com/pubapi/v1
credentialsCredentialsNoCredentials
notFoundStatusCodesinteger[]No[404]
referenceFiltersReferenceFilter[]No-
validStatusCodesinteger[]No[200, 201, 202, 204]

Property Details​

accessToken​

OAuth access token used for Egnyte API requests, kept as is in the configuration. To keep it secret, leave it empty and give it as the password of credentials.

apiBaseUrl​

Egnyte API base URL.

Default: https://{domain}.egnyte.com/pubapi/v1

The {domain} placeholder is replaced using the reference host.

credentials​

Credentials holding the OAuth access token as their password (the username is not used), used when accessToken is empty. The password can be encrypted.

notFoundStatusCodes​

HTTP status codes treated as "not found" outcomes. Defaults to 404.

referenceFilters​

Filters applied to document references (URLs or file paths) to control which ones are fetched. Documents whose references do not pass the filters are skipped.

validStatusCodes​

HTTP status codes treated as successful API responses. Defaults to 200, 201, 202, and 204.