Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titlePage in development

This page is in development and as such, its contents may be incorrect

The connector API provides functionality that allows a administrator to perform actions such as adding and configuring connectors

Table of Contents

Section

List connectors

Lists all the seeds connectors configured in the Aspire

Panel
borderColorblack
bgColor#fafafb
GET /aspire_api/seedsconnector

Query String Parameters

Optional
NameTypeRequiredDescriptionstatestring
Filter returned seeds to only those with the given status(es)typestringOptionalFilter returned seeds connectors to only those with the given type
descriptionstringOptionalFilter returned seeds connectors to only those whose description matches the given expressionseedstringOptionalFilter returned seeds to only those whose seed matches the given expression

Response

Code Block
languagejs
{
  "seedconnector": [{
    "id": "AAABcID5GBc=",
    "seed": "c:\\testdata\\2500",
    "type": "filesystem",
    "description": "2,500 files",
    "status": "SNetApp connector",
    "start": 1584550193011,
    "stop": 1584550267047
  },
  {
    "id": "AAABcIueWUc=",
    "seed": "c:\\testdata\\250000",
    "type": "filesystemshareoint-online",
    "description": "250,000 files",
    "status": "S",
    "stop": 1583240224684,
    "start": 1583239823374SharePoint Online",
  }],
  "message": "optional response message"
}

Status

Response codeDescription
200Success




Section

Get a single

seed

connector

Get information about a single seed connector configured in Aspire

Panel
borderColorblack
bgColor#fafafb

GET /aspire_api/seedsconnector?id=:id

GET /aspire_api/seedsconnector/:id

Query String and Path Parameters

NameTypeRequiredDescription
idstringRequiredThe id of the seed connector to return

Response

Code Block
languagejs
{
  "seedconnector": {
    "id": "AAABcID5GBc=",
    "seedconnector": "c:\\testdata\\2500",
    "type": "filesystem",
    "description": "2,500 files",
    "status": "S",
    "start": 1584550193011,
    "stop": 1584550267047
  },
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404The given seed connector id was not found




Section

Add

seed

connector(s)

Add one or more seeds connectors to Aspire

Panel
borderColorblack
bgColor#fafafb
POST /aspire_api/seedsconnector

Request Body Parameters

NameTypeRequiredDescription
seedconnectorstringRequiredThe url/path indicating the content to crawl
typestringRequiredThe type of connector to use for this seed connector (may be omitted if connector is specified)
connectorstringRequiredThe identifier of the connector configuration to use for this seed connector (may be omitted if type is specified)
descriptionstringOptionalAn optional description of the seedconnector
credentialstringOptionalAn optional id of the credential to use for this seedconnector
policystringOptionalAn optional list of the policy identifiers to use for this seedconnector
workflowstringOptionalAn optional list of the workflow identifiers to use for this seedconnector

Examples

Add a single seedconnector

Code Block
languagejs
{
  "seedconnector": "c:\\testdata\\2500",
  "type": "filesystem"
}

Add multiple seedsconnectors

Code Block
languagejs
[{
  "seedconnector": "c:\\testdata\\2500",
  "type": "filesystem"
},
{
  "seedconnector": "c:\\testdata\\250000",
  "connector": "connector_1",
  "description": "250,000 files",
  "credential": "cred_1",
  "policy": "policy_1",
  "workflow": ["workflow_1","workflow_99"]
}]

Response

Code Block
languagejs
{
  "seedconnector": [{
    "id": "AAABcID5GBc=",
    "seedconnector": "c:\\testdata\\2500",
    "type": "filesystem",
    "status": "N"
   },
   {
    "id": "AAABcIueWUc=",
    "type": "filesystem",
    "seedconnector": "c:\\testdata\\250000",
    "connector": "connector_1",
    "description": "250,000 files",
    "credential": "cred_1",
    "policy": "policy_1",
    "workflow": ["workflow_1","workflow_99"]
    "status": "N"
  }],
  "message": "optional response message"
}

Status

Response codeDescription
201Created
406Not acceptable - there was an issue validating the input




Section

Update

seed

connector(s)

Update one or more seeds connectors in Aspire. Updates will be treated as partial updates rather than overwrites. If a field is not present in the input, any previous value will remain after the update. If you wish to "delete" a value, pass a value of null

Panel
borderColorblack
bgColor#fafafb
PUT /aspire_api/seedsconnector

Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier of the seed connector to updateseed
connectorstringRequiredThe url/path indicating the content to crawl
typestringRequiredThe type of connector to use for this seed connector (may be omitted if connector is specified)
connectorstringRequiredThe identifier of the connector configuration to use for this seed connector (may be omitted if type is specified)
descriptionstringOptionalAn optional description of the seedconnector
credentialstringOptionalAn optional id of the credential to use for this seedconnector
policystringOptionalAn optional list of the policy identifiers to use for this seedconnector
workflowstringOptionalAn optional list of the workflow identifiers to use for this seedconnector

Examples

Update a single seedconnector

Code Block
languagejs
{
  "id": "AAABcID5GBc=",
  "seedconnector": "c:\\testdata\\2500",
  "type": "filesystem"
}

Update multiple seedsconnectors

Code Block
languagejs
[{
  "id": "AAABcID5GBc=",
  "seedconnector": "c:\\testdata\\2500",
  "type": "filesystem"
},
{
  "id": "AAABcIueWUc=",
  "seedconnector": "c:\\testdata\\250000",
  "connector": "connector_1",
  "description": "250,000 files",
  "credential": "cred_1",
  "policy": "policy_1",
  "workflow": ["workflow_1","workflow_99"]
}]

Response

Code Block
languagejs
{
  "seedconnector": [{
    "id": "AAABcID5GBc=",
    "seedconnector": "c:\\testdata\\2500",
    "type": "filesystem",
    "status": "N"
   },
   {
    "id": "AAABcIueWUc=",
    "type": "filesystem",
    "seedconnector": "c:\\testdata\\250000",
    "connector": "connector_1",
    "description": "250,000 files",
    "credential": "cred_1",
    "policy": "policy_1",
    "workflow": ["workflow_1","workflow_99"]
    "status": "N"
  }],
  "message": "optional response message"
}

Status

Response codeDescription
201Created
404Not found - a given seed connector identifier was not found
406Not acceptable - there was an issue validating the input




Examples

Starts a crawl for a single seed

Section

Delete

seed

connector(s)

Delete one or more seeds connectors from Aspire.

Panel
borderColorblack
bgColor#fafafb

DELETE /aspire_api/seedsconnector?id=:id

DELETE /aspire_api/seedsconnector/:id

DELETE /aspire_api/seedsconnector

Query String, Path and Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the seedconnector(s) to delete

Examples

Delete a single seedconnector

Code Block
languagejs
{
  "id": "AAABcID5GBc="
}

Delete multiple seedsconnectors

Code Block
languagejs
[{
  "id": "AAABcID5GBc="
},
{
  "id": "AAABcIueWUc="
}]

Delete multiple seeds connectors (alternative form)

Code Block
languagejs
{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
}

Response

Code Block
languagejs
{
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404Not found - a given seed identifier was not found
406Not acceptable - there was an issue validating the input
Section

Crawl control

Start, stop, pause and resume crawls of one or more seeds.

Panel
borderColorblack
bgColor#fafafb

GET /aspire_api/seeds/crawl?id=:id&action=:action&type=:type

GET /aspire_api/seeds/crawl/:id

GET /aspire_api/seeds/crawl/:id/:action

GET /aspire_api/seeds/crawl/:id/:action/:type

POST /aspire_api/seeds/crawl

POST /aspire_api/seeds/crawl/:action

POST /aspire_api/seeds/crawl/:action/:type

Query String, Path and Request Body Objects

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the seed(s) to control
actionstringOptional

The action to perform:

  • start
  • stop
  • pause
  • resume
  • abort

Defaults to start if not specified

typestringOptional

The type of crawl to start:

  • incremental
  • full
  • test

Defaults to incremental if not specified

Code Block
languagejs
{
  "id": "AAABcID5GBc="
}

Starts a crawl for multiple seeds

Code Block
languagejs
[{
  "id": "AAABcID5GBc="
},
{
  "id": "AAABcIueWUc="
}]

Starts a crawl for seeds (alternative form)

Code Block
languagejs
{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
}

Response

Code Block
languagejs
{
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404Not found - a given seed connector identifier was not found
406Not acceptable - there was an issue validating the input