Versions Compared

Key

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


The seeds API provides functionality that allows a administrator to perform actions such as adding and configuring a seed to crawl, or beginning or stopping a crawl

Table of Contents

Section

Get all seeds

Lists all the seeds configured in the Aspire

Panel
borderColorblack
bgColor#fafafb
GET /aspire/_api/seeds


Query String Parameters

NameTypeRequiredDescription
state
from
string
typestringOptionalFilter returned seeds to only those with the given type
descriptionstringOptionalFilter returned seeds to only those whose description matches the given expression
seedstringOptionalFilter returned seeds to only those whose seed matches the given expression
tagstringOptionalFilter returned seeds to only those whose tags matches the given expression
connectorstringOptionalFilter returned seeds to only those whose connector description matches the given expression
integerOptional
Filter returned seeds to only those with the given status(es)
Indicates the initial page to be retrieved
sizeintegerOptionalSpecifies the size of results page
sortBystringOptionalField by which results are sorted
sortModestringOptional

Sort mode

  • "asc" for ascending sort,
  • "desc" for descending sort
$expandstringOptionalList of fields to expand, * will expand everything


Response

Code Block
languagejs
{
  "seed": [
    {
      "id": "191283d9-183e-4820-8932-32b1fa07d2d5",
      "description": "2500 test",
      "seed": "c:\\testdata\\2500",
      "connector": {
        "id": "accd3396-6004-47c9-80a6-d6ae283878f5",
        "description": "NetApp Connector",
        "type": {
          "id": "filesystem",
          "name": "File System"
        },
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "workflow": {
        "id": "accd3396-4820-8932-80a6-f57191283d98",
        "description": "My workflow",
        "type": "connector",
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "priority": "medium",
      "tags": [
        "UK",
        "GE",
        "FR"
      ],
      "checksum": "499207DDF2E673B3B33D74566D7457B5",
      "crawl": {
        "manager": "manager_192.168.188.55:50505//AAABc8Mnl84=",
        "mode": "full",
        "phase": "crawlStart",
        "state": "running",
        "start": 1596707252548,
        "next": 1596707252548
      },
   	  "properties": { This will be a dynamic JSON object } 
    },
    {
      "id": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
      "seed": "c:\\testdata\\2500",
      "connector": {
        "id": "accd3396-6004-47c9-80a6-d6ae283878f5",
        "description": "NetApp Connector",
        "type": {
          "id": "filesystem",
          "name": "File System"
        },
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "workflow": {
        "id": "accd3396-4820-8932-80a6-f57191283d98",
        "description": "Stager Workflow",
        "type": "connector",
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "priority": "medium",
      "checksum": "5647E40827A6C09CBA868294BB437CE5",
      "crawl": {
        "phase": "idle",
        "state": "never"
      },
 	  "properties": { This will be a dynamic JSON object } 
    }
  ]
}


Status

Response codeDescription
200Success




Section

Get

a single seed

all seeds, filtered

Lists seeds configured in the Aspire, filtered by a specified criteriaGet information about a single seed configured in Aspire

Panel
borderColorblack
bgColor#fafafb

GET POST /aspire/_api/seeds/:idgetAll


Path Query String Parameters

idstring
NameTypeRequiredDescription
fromintegerRequiredOptionalThe id of the seed to return

Response

Indicates the initial page to be retrieved
sizeintegerOptionalSpecifies the size of results page
sortBystringOptionalField by which results are sorted
sortModestringOptional

Sort mode

  • "asc" for ascending sort,
  • "desc" for descending sort
$expandstringOptionalList of fields to expand, * will expand everything


Body Parameters

NameTypeRequiredDescription
filterJSONRequiredFilters retrieved seeds. Check the filter definition here


Response

Code Block
languagejs
{
Code Block
languagejs
{
  "seed": {
    "id": "191283d9-183e-4820-8932-32b1fa07d2d5",
    "connector": "accd3396-6004-47c9-80a6-d6ae283878f5",
    "seed": "c:\\testdata\\2500",
 [
    {
      "priorityid": "medium191283d9-183e-4820-8932-32b1fa07d2d5",
      "checksumdescription": "499207DDF2E673B3B33D74566D7457B52500 test",
      "crawlseed": {"c:\\testdata\\2500",
      "managerconnector": "manager_192.168.188.55:50505//AAABc8Mnl84=",{
        "modeid": "fullaccd3396-6004-47c9-80a6-d6ae283878f5",
        "phasedescription": "crawlStartNetApp Connector",
        "statetype": {
          "id": "runningfilesystem",
          "startname": 1596707252548"File System"
        },
	"properties": { This will be a dynamic JSON object } 
  }
}

Status

Response codeDescription
200Success
404The given seed id was not found
"created": 1596707252548,
        "updated": 1596707252548 
      },
      "workflow": {
        "id": "accd3396-4820-8932-80a6-f57191283d98",
        "description": "My workflow",
        "type": "connector",
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "priority": "medium",
      "tags": [
        "UK",
        "GE",
        "FR"
      ],
      "checksum": "499207DDF2E673B3B33D74566D7457B5",
      "crawl": {
        "manager": "manager_192.168.188.55:50505//AAABc8Mnl84=",
        "mode": "full",
        "phase": "crawlStart",
        "state": "running",
        "start": 1596707252548,
        "next": 1596707252548
      },
   	  "properties": { This will be a dynamic JSON object } 
    },
    {
      "id": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
      "seed": "c:\\testdata\\2500",
      "connector": {
        "id": "accd3396-6004-47c9-80a6-d6ae283878f5",
        "description": "NetApp Connector",
        "type": {
          "id": "filesystem",
          "name": "File System"
        },
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "workflow": {
        "id": "accd3396-4820-8932-80a6-f57191283d98",
        "description": "Stager Workflow",
        "type": "connector",
        "created": 1596707252548,
        "updated": 1596707252548 
      },
      "priority": "medium",
      "checksum": "5647E40827A6C09CBA868294BB437CE5",
      "crawl": {
        "phase": "idle",
        "state": "never"
      },
 	  "properties": { This will be a dynamic JSON object } 
    }
  ]
}


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/:id

Path Parameters

NameTypeRequiredDescription
idstringRequiredThe id of the seed to return

Response

Code Block
languagejs
{
  "seed": {
    "id": "191283d9-183e-4820-8932-32b1fa07d2d5",
    "connector": "accd3396-6004-47c9-80a6-d6ae283878f5",
    "seed": "c:\\testdata\\2500",
    "priority": "medium",
    "checksum": "499207DDF2E673B3B33D74566D7457B5",
    "crawl": {
      "manager": "manager_192.168.188.55:50505//AAABc8Mnl84=",
      "mode": "full",
      "phase": "crawlStart",
      "state": "running",
      "start": 1596707252548
    },
	"properties": { This will be a dynamic JSON object } 
  }
}

Status

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




POST /aspire/_api/seeds { "
Section

Add seeds

Add

Section

Add seeds

Add one or more seeds to Aspire

Panel
borderColorblack
bgColor#fafafb
POST /aspire/_api/seeds


Request Body Parameters

NameTypeRequiredDescription
seedstringRequiredThe url/path indicating the content to crawl
typestringRequiredThe type of connector to use for this seed (may be omitted if connector is specified)
connectorstringRequiredThe identifier of the connector configuration to use for this seed (may be omitted if type is specified)
descriptionstringOptionalAn optional description of the seed
credentialstringOptionalAn optional id of the credential to use for this seed
policystringOptionalAn optional list of the policy identifiers to use for this seed
workflowstringOptionalAn 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" }


ExampleAdd multiple seeds

Code Block
languagejs
POST /aspire/_api/seeds
[{
  "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": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
    "connector": "accd3396-6004-47c9-80a6-d6ae283878f5",
    "seed": "c:\\testdata\\2500",
    "priority": "medium",
    "checksum": "5647E40827A6C09CBA868294BB437CE5",
    "crawl": {
      "phase": "idle",
      "state": "never"
    }
  },
  {
    "id": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
    "connector": "connector_1",
    "description": "250,000 files",
    "credential": "cred_1",
    "policy": "policy_1",
    "workflow": ["workflow_1","workflow_99"]
    "seed": "c:\\testdata\\25000",
    "priority": "medium",
    "checksum": "5647E40827A6C09CBA868294BB437CE5",
    "crawl": {
      "phase": "idle",
      "state": "never"
    }
  }, 
  "properties": { This will be a dynamic JSON object }]
}

Status

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




Section

Update seeds

Update one or more seeds in Aspire.

Panel
borderColorblack
bgColor#fafafb

PUT /aspire/_api/seeds/:id

PUT /aspire/_api/seeds


Request Body Parameters

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

Examples


Update a single seedExample

Code Block
languagejs
PUT /aspire/_api/seeds/AAABcID5GBc%3D
{
  "AAABcID5GBc=": {
    "id": "AAABcID5GBc=",
    "seed": "c:\\testdata\\2500",
    "type": "filesystem"
}

Update multiple seeds

Code Block
languagejs
PUT /aspire/_api/seeds
{
  },
  "AAABcID5GBcAAABcIueWUc=": {
    "id": "AAABcID5GBcAAABcIueWUc=",
    "seed": "c:\\testdata\\2500250000",
    "connector": "connector_1",
    "description": "250,000 files",
    "typecredential": "filesystem"
  }cred_1",
  "AAABcIueWUc=": {
    "idpolicy": "AAABcIueWUc=policy_1",
    "seedworkflow": ["workflow_1","workflow_99"]
  }
}


Response

Code Block
languagejs
{
  "seed": [{"c:\\testdata\\250000",
    "connector": "connector_1",
    "descriptionid": "250,000 filesAAABcID5GBc=",
    "credentialseed": "cred_1c:\\testdata\\2500",
    "policytype": "policy_1filesystem",
    "workflowstatus": ["workflow_1","workflow_99"]N"
   }
}

Response

Code Block
languagejs
,
   {
   "seed": [{ "id": "AAABcIueWUc=",
    "idtype": "AAABcID5GBc=filesystem",
    "seed": "c:\\testdata\\2500250000",
    "typeconnector": "filesystemconnector_1",
    "statusdescription": "N"
   }250,000 files",
   {
    "idcredential": "AAABcIueWUc=cred_1",
    "typepolicy": "filesystempolicy_1",
    "seedworkflow": "c:\\testdata\\250000",["workflow_1","workflow_99"]
    "connectorstatus": "connector_1N",
  },
  "descriptionproperties": "250,000 files",
    "credential": "cred_1",
    "policy": "policy_1",
    "workflow": ["workflow_1","workflow_99"]
    "status": "N"
  },
  "properties": { This will be a dynamic JSON object }]
}{ This will be a dynamic JSON object }]
}


Status

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




Section

Delete multiple seeds, filtered

Delete multiple seeds from Aspire, filtered by a specified criteria

Panel
borderColorblack
bgColor#fafafb

POST /aspire/_api/seeds/deleteAll


Body Parameters

NameTypeRequiredDescription
filterJSONRequiredFilters retrieved seeds. Check the filter definition here


Response

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

See Response Body for details regrading the response body returned where multiple items are affected with some (or all) returning errors

Status

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




Section

Delete

seeds

single seed

Delete one or more seeds from Aspire.

Panel
borderColorblack
bgColor#fafafb

DELETE /aspire/_api/seeds/:id

DELETE /aspire/_api/seeds


Path and Query String Parameters

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


ExamplesExample

Delete a single seed

Code Block
languagejs
DELETE /aspire/_api/seeds/AAABcID5GBc%3D
Delete multiple seeds
Code Block
languagejs
DELETE /aspire/_api/seeds?id=AAABcID5GBc=&id=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

POST /aspire/_api/seeds/:id/control

POST /aspire/_api/seeds/control

Path, Query String 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

Examples

Starts an incremental crawl for a single seed

Code Block
languagejs
POST /aspire/_api/seeds/191283d9-183e-4820-8932-32b1fa07d2d5/control

Starts an full crawl for a single seed

Code Block
languagejs
POST /aspire/_api/seeds/191283d9-183e-4820-8932-32b1fa07d2d5/control?action=start&type=full

Pauses a crawl for a single seed

Code Block
languagejs
POST /aspire/_api/seeds/191283d9-183e-4820-8932-32b1fa07d2d5/control?action=pause-8932-32b1fa07d2d5/control?action=pause

Starts a crawl for multiple seeds

Code Block
languagejs
POST /aspire/_api/seeds/control
[{
  "id": "AAABcID5GBc="
},
{
  "id": "AAABcIueWUc="
}]

Starts a crawl for multiple seeds (alternative)

Code Block
languagejs
POSTPUT /aspire/_api/seeds/control
[{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
},


Response

Code Block
languagejs
{
  "idmessage": "AAABcIueWUc="
}]

Starts a crawl for multiple seeds (alternative)

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

Re-balance seed allocation

Allows an administrator to manually re-balance the seed to manager allocation for active crawls

Panel
borderColorblack
bgColor#fafafb

POST

Code Block
languagejs
PUT

/aspire/_api/seeds/control

{ "id": ["AAABcID5GBc=", "AAABcIueWUc="] }

/rebalance


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
The given batch id was not found
Section

Get seed type dxf

Returns the dxf for a specific seed type

Re-balance seed allocation

Allows an administrator to manually re-balance the seed to manager allocation for active crawls

Panel
borderColorblack
bgColor#fafafb
POST GET /aspire/_api/seeds/control/rebalancetype/:typeId/dxf

Query String Parameters

NameTypeRequiredDescription




Response

Code Block
languagejsjs
{
  "dxf": {...}{
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404The given batch id Not found - a given service identifier was not found




Response

Section

Filters
Anchor
FiltersAnchor
FiltersAnchor

 Some endpoint queries require a filter. A filter is basically a JSON object with the following format:

Credentials filter:

Code Block
languagejs
  "filter" : {
    "ids" : ["id1", "id2", "id3"],
    "type" : "TYPE",
    "description" : "DESCRIPTION",
	"running": "true|false"
  }
Note
When using delete endpoints, ids in the filter are mandatory.

Get seed type dxf

Returns the dxf for a specific seed type

Panel
borderColorblack
bgColor#fafafb
GET /aspire/_api/seeds/type/:typeId/dxf

Query String Parameters

NameTypeRequiredDescription
Code Block
languagejs
{
  "dxf": {...}
  "message": "optional response message"
}

Status

Response codeDescription200Success404Not found - a given service identifier was not found