Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
titleOn this page

Table of Contents

Create Connection


FieldOptionalDefaultMultipleNotesExample
idNo-NoId of the credential to update"89d6632a-a296-426c-adb0-d442adcab4b0"
typeNo-NoThe value must be "filesystem"."filesystem"
descriptionNo-NoName of the connection object."MyFileSystemConnection"
throttlePolicyYes-NoId of the throttle policy that applies to this connection object."f5587cee-9116-4011-b3a9-6b235b333a1b"
propertiesNo-NoConfiguration object
hostNo-NoName of the host where the smb share is located."share.example.com"
portYes445NoPort where the smb protocol is listened.445
indexContainersYesfalseNoEnable to process directories as regular files.true / false
scanExcludedItemsYesfalseNoEnable to scan directories previously excluded from the crawl.true / false
stopOnScanErrorYestrueNoIf enabled, the crawl will stop if there is an error on the scan phase.true / false
disableFetchYesfalseNoDisable the content fetcher, only metadata will be retrieved.

true / false

verboseSMBJYesfalseNoLog SMBJ library output.true / false
traceSMBJYesfalseNoLog TRACE level messages.true / false
includeYes

[ ]

YesPatterns to match against document URL, if any of them match, the document will be included in the crawl.[ ".*pdf$", ".*docx$" ]
excludeYes[ ]YesPatterns to match against document URL, if any of them match, the document will be excluded from the crawl.[ ".*png$", ".*jpeg$" ]
fetchACLsYestrueNoEnable to retrieve the document's ACL information.true / false
resolveSIDsYestrueNoEnable to resolve the document Security Identifier (SID).true / false
addACLSIDYesfalseNoEnable to add the SID to the ACL output.true / false
addACLEncodedSIDYesfalseNoEnable to add the Base32 encoded SID to the ACL output.true / false
addACLFlagsYesfalseNoEnable to add Access Control Entry flags to the ACL output.true / false
addACLTypeYesfalseNoEnable to add Access Control Entry type to the ACL output.true / false
addACLAccessMaskYesfalseNoEnable to add the Access Control Entry access mask (hex value) to the ACL output.true / false
enableDFSYesfalseNoEnable Distributed File System (DFS) path resolution.true / false
connectionTimeoutYes60000NoTimeout in milliseconds for establishing a connection with the server.60000
maxRetriesYes5NoTimes a request will be retried before reporting the error.5
baseBackoffYes500NoInitial time to wait before retrying a failed request500
backoffMultiplierYes2NoMultiplier for the backoff period before retrying a request1.5
lastAccessUpdateYesfalseNoIf enabled, the connector will override the last access date of the documents with the value they had before the crawl. NOTE: Requires writing permission.true / false
staticAclYes

[ ]

YesStatic ACL configuration object
nameNo-NoName of the static ACL."group1"
domainYes""NoDomain of the static ACL."testDomain"
entityYes"user"NoEntity (user / group) represented by the static ACL."user" / "group"
accessYes"allow"NoAccess (allow / deny) granted by the ACL."allow" / "deny"

Example

Saga_json
TitlePOST aspire/_api/connections
"type": "smb",
"description": "mySMBConn",
"credential": "f6679d15-7afa-42fe-b941-ed26fdf0ecd4",
"throttlePolicy": "f5587cee-9116-4011-b3a9-6b235b333a1b",
"properties": {
    "host": "smb.host",
    "port": 445,
    "indexContainers": false,
    "ignoreScanError": false,
    "scanExcludedItems": false,
    "disableFetch": false,
    "verboseSMBJ": false,
    "include": [ "\\.*pdf$" ],
    "exclude": [ "\\.*tiff$" ],
    "fetchACLs": true,
    "resolveSIDs": true,
    "addACLSID": false,
    "addACLEncodedSID": false,
    "addACLFlags": false,
    "addACLType": false,
    "addACLAccessMask": false,
    "staticAcl": [
        {
            "name": "myACL",
            "domain": "myDomain",
            "entity": "user",
            "access": "allow"
        },
        {
            "name": "myGroup",
            "domain": "example",
            "entity": "group",
            "access": "deny"
        }
    ],
    "enableDFS": true,
    "connectionTimeout": 60000,
    "maxRetries": 5,
    "baseBackoff": 500,
    "backoffMultiplier": 2,
    "lastAccessedUpdates": false
}