Versions Compared

Key

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

The configuration and control API provides functionality that allows a administrator to perform actions such as adding a seed to crawl, or beginning or stopping a crawl. This API will provide the functionality required by the Aspire User interface and will be extensively used by it. The API will also be used by any external process (or script) that needs to control Aspire

Table of Contents

Seed API

Section

List seeds

Lists all the seeds configured in the Aspire

Panel
borderColorblack
bgColor#fafafb
GET /aspire_api/seeds

Parameters

NameTypeDescription
statestringFilter returned seeds to only those with the given status(es)
typestringFilter returned seeds to only those with the given type
descriptionstringFilter returned seeds to only those whose description matches the given expression
seedstringFilter returned seeds to only those whose seed matches the given expression

Response

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

Status

Response codeDescription
200Success




Section

Get a single seed

Get information about a single seed configured in Aspire

Panel
borderColorblack
bgColor#fafafb

GET /aspire_api/seeds

GET /aspire_api/seeds/:

seed_

id

Response

Code Block
languagejs
{
  "seed": {
    "id": "AAABcID5GBc=",
    "seed": "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 id was not found




Section

Add seed(s)

Add one or more seeds to Aspire

Panel
borderColorblack
bgColor#fafafb
POST /aspire_api/seeds

Request Body ObjectsParameters

NameTypeDescription
seedstringRequired: The url/path indicating the content to crawl
typestringRequired: The type of connector to use for this seed (may be omitted if connector is specified)
connectorstringRequired: The identifier of the connector configuration to use for this seed (may be omitted if type is specified)
descriptionstringAn optional description of the seed
credentialstringAn optional id of the credential to use for this seed
policystringAn optional list of the policy identifiers to use for this seed
workflowstringAn optional list of the workflow identifiers to use for this seed

Examples

Add a single seed

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

Add multiple seeds

Code Block
languagejs
[{
  "seed": "c:\\testdata\\2500",
  "type": "filesystem"
},
{
  "seed": "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
{
  "seed": [{
    "id": "AAABcID5GBc=",
    "seed": "c:\\testdata\\2500",
    "type": "filesystem",
    "status": "N"
   },
   {
    "id": "AAABcIueWUc=",
    "type": "filesystem",
    "seed": "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(s)

Update one or more seeds 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/seeds

Request Body ObjectsParameters

NameTypeDescription
idstringRequired: The identifier of the seed to update
seedstringRequired: The url/path indicating the content to crawl
typestringRequired: The type of connector to use for this seed (may be omitted if connector is specified)
connectorstringRequired: The identifier of the connector configuration to use for this seed (may be omitted if type is specified)
descriptionstringAn optional description of the seed
credentialstringAn optional id of the credential to use for this seed
policystringAn optional list of the policy identifiers to use for this seed
workflowstringAn optional list of the workflow identifiers to use for this seed

Examples

Update a single seed

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

Update multiple seeds

Code Block
languagejs
[{
  "id": "AAABcID5GBc=",
  "seed": "c:\\testdata\\2500",
  "type": "filesystem"
},
{
  "id": "AAABcIueWUc=",
  "seed": "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
{
  "seed": [{
    "id": "AAABcID5GBc=",
    "seed": "c:\\testdata\\2500",
    "type": "filesystem",
    "status": "N"
   },
   {
    "id": "AAABcIueWUc=",
    "type": "filesystem",
    "seed": "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 identifier was not found
406Not acceptable - there was an issue validating the input




Section

Delete seed(s)

Delete one or more seeds from Aspire.

Panel
borderColorblack
bgColor#fafafb

DELETE /aspire_api/seeds/:id

DELETE /aspire_api/seeds

Request Body ObjectsParameters

NameTypeDescription
idstringRequired: The identifier(s) of the seed(s) to delete

Examples

Delete a single seed

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

Update multiple seeds

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

Update multiple 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 identifier was not found
406Not acceptable - there was an issue validating the input
Status





Crawl Control API

Crawl Control
Section

Control crawls for one or more seeds

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

Panel
borderColorblack
bgColor#fafafb

GET /aspire_api/seeds/crawl

GET /aspire_api/seeds/crawl/:id

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

POST /aspire_api/seeds/crawl

POST /aspire_api/seeds/crawl/:action

Request Body Objects

NameTypeDescription
idstringRequired: The identifier(s) of the seed(s) to delete

Examples

Delete a single seed

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

Update multiple seeds

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

Update multiple 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 identifier was not found
406Not acceptable - there was an issue validating the input





Status API

Connector API

Credential API

Policy API

Workflow API

Schedule API