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
changeDiscoveryis set toSOURCE_DELTAand the crawl runs in incremental mode, the Egnyte root boundary uses the changes feed instead of full child enumeration. - Valid
SOURCE_DELTAroot is:egnyte://{domain}/folders/root
- Non-root folder boundaries are not valid
SOURCE_DELTAroots 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, or410), 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.
- YAML
- JSON
- XML
class: EgnyteFetcher
accessToken: <token>
apiBaseUrl: https://{domain}.egnyte.com/pubapi/v1
{
"class": "EgnyteFetcher",
"accessToken": "<token>",
"apiBaseUrl": "https://{domain}.egnyte.com/pubapi/v1"
}
<class>EgnyteFetcher</class>
<accessToken><token></accessToken>
<apiBaseUrl>https://{domain}.egnyte.com/pubapi/v1</apiBaseUrl>
Use a start reference such as:
egnyte://acme/folders/root
For incremental delta crawling from the valid Egnyte boundary, configure crawler-level options:
crawlMode: INCREMENTALchangeDiscovery: SOURCE_DELTA
Then use this start reference:
egnyte://acme/folders/root
The following example keeps the secret out of the configuration with encrypted credentials.
- YAML
- JSON
- XML
class: EgnyteFetcher
credentials:
password: ${accessToken}
passwordKey:
source: ENVIRONMENT
value: MY_KEY_VAR
{
"class": "EgnyteFetcher",
"credentials": {
"password": "${accessToken}",
"passwordKey": {
"source": "ENVIRONMENT",
"value": "MY_KEY_VAR"
}
}
}
<class>EgnyteFetcher</class>
<credentials>
<password>${accessToken}</password>
<passwordKey>
<source>ENVIRONMENT</source>
<value>MY_KEY_VAR</value>
</passwordKey>
</credentials>
Usage
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
class: EgnyteFetcher
accessToken: string
apiBaseUrl: string
credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
notFoundStatusCodes:
- 0
referenceFilters: []
validStatusCodes:
- 0
{
"class": "EgnyteFetcher",
"accessToken": "string",
"apiBaseUrl": "string",
"credentials": {
"password": "string",
"passwordKey": {
"size": 0,
"source": "KEY",
"value": "string"
},
"username": "string"
},
"notFoundStatusCodes": [
0
],
"referenceFilters": [],
"validStatusCodes": [
0
]
}
<egnyteFetcher>
<class>EgnyteFetcher</class>
<accessToken>string</accessToken>
<apiBaseUrl>string</apiBaseUrl>
<credentials>
<password>string</password>
<passwordKey>
<size>0</size>
<source>KEY</source>
<value>string</value>
</passwordKey>
<username>string</username>
</credentials>
<notFoundStatusCodes>
<notFoundStatusCode>0</notFoundStatusCode>
</notFoundStatusCodes>
<referenceFilters>
<referenceFilter/>
</referenceFilters>
<validStatusCodes>
<validStatusCode>0</validStatusCode>
</validStatusCodes>
</egnyteFetcher>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
accessToken | string | No | - |
apiBaseUrl | string | No | https://{domain}.egnyte.com/pubapi/v1 |
credentials | Credentials | No | Credentials |
notFoundStatusCodes | integer[] | No | [404] |
referenceFilters | ReferenceFilter[] | No | - |
validStatusCodes | integer[] | 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.