ver

The REST API Connection configuration guidelines can be found here.

The Salesforce Connector's Connection type must always be specified as “salesforce”.

The Properties specific to the Salesforce Connector's Connection are described below.


Salesforce Connection Properties


FieldRequiredDefaultMultipleNotesExample
propertiesYes-NoConfiguration object
serverYes-NoSalesforce server URL to be crawled (to be specified without protocol).https://na15.salesforce.com
authRESTEndpointYes-NoThe Salesforce login URL to be usedhttps://login.salesforce.com/services/oauth2/token
apiVersionNofalseNoAPI version of the Salesforce server57.0
idleConnectionTimeout Yes3600000NoMaximum time (in milliseconds) to keep an idle connection open.3600000
maxConnectionsYes100NoMaximum number of connections to be opened.100
maxConnectionsPerRouteYes10NoMaximum number of connections opened for the same target.10
connectionTimeoutYes15000NoMaximum time (in milliseconds) to wait for the connection.15000
socketTimeoutYes15000NoMaximum time (in milliseconds) to wait for a socket response.15000
throttlingRateYes5000NoTime (in milliseconds) to throttle the connection.5000
throttlingConnectionRateYes500NoMaximum number of connections used during the throttling period.500
maxRetriesYes3NoMaximum number of retries of a failed document.3
retryWaitTimeYes5000NoTime (in milliseconds) to wait before a retry.5000
proxyHostYes

Proxy hostname
proxyPortYes8080
Proxy Port8080
proxySchema
http
Proxy Schemahttp
proxyUsernameYes

Proxy Username
proxyPasswordYes

Proxy Password

Create example


POST /aspire/_api/connections
{
	"type": "salesforce",
	"description": "Salesforce Test Connection",
	"credential": "e1664b70-b6ca-42c9-bfa1-7d76a18dd8e1",
	"properties": {
		"server": "https://na46.salesforce.com/",
		"authRESTEndpoint": https://login.salesforce.com/services/oauth2/token,
		"apiVersion": 57.0,
		"idleConnectionTimeout ": 3600000,
		"maxConnections": 1000,
 		"maxConnectionsPerRoute": 10,
		"connectionTimeout": 15000,
	    "socketTimeout": 15000,
        "useThrottling":false,
        "maxRetries": 3,
		"retryWaitTime": 5000,
        "useProxy":[
           true
         ], 
        "proxyHost":"127.0.0.1",
        "proxyPort":8080,
        "proxySchema":"http",
        "proxyUsername":"proxyUser",
        "proxyPassword":"encrypted:577376F6E341A1F41A1156545494A5F1867C1A98C7F2E1478AEE5F30B0463709",
        "includes":[
         ],
        "excludes":[         
        ]
    }
}



  • No labels