Warning | ||
---|---|---|
| ||
This page is in development and as such, its contents may be incorrect |
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
Easy Heading Free | ||||
---|---|---|---|---|
| ||||
Section | |||||||
---|---|---|---|---|---|---|---|
Get all seedsLists all the seeds configured in the Aspire, this endpoint need the at least the OPERATOR role to be executed.
Query String Parameters | |||||||
Name | Type | Required | Description | ||||
state | string | Optional | Filter returned seeds to only those with the given status(es) | ||||
type | string | Optional | Filter returned seeds to only those with the given type | ||||
description | string | Optional | Filter returned seeds to only those whose description matches the given expression |
Section | |||||||
---|---|---|---|---|---|---|---|
Get all seeds, filteredLists seeds configured in the Aspire, filtered by a specified criteria, this endpoint need the at least the OPERATOR role to be executed.
Pagination query string parameters Sorting query string parameters Expand query string parameters: connector, workflows, connection, policies |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "seedcount": [{ "idtotalItems": "AAABcID5GBc=" 1 }, "seed": "c:\\testdata\\2500", [ "type": "filesystem", { "description": "2,500 files", "statusid": "Sb4adeb8c-3deb-4379-ad52-e2a8d219a84a", "start "type": 1584550193011"filesystem", "stop": 1584550267047 }, { "iddescription": "AAABcIueWUc=pepoSeed", "seed "connector": "c:\\testdata\\25000016e901a5-75c7-4969-90d2-70ad299916f3", "type "seed": "filesystemDirectory1", "description": "250,000 files", "statuspriority": "Smedium", "stop "checksum": 1583240224684"11dde01482437ccce0fc570b3041f05ede06d2be6ad8ff18e3a3119f58593a40", "start "crawl": 1583239823374{ }], "messagemanager": "optional response message" } |
Status
Get information about a single seed configured in Aspire
Panel | ||||
---|---|---|---|---|
| ||||
|
Path Parameters
Response
Code Block | ||
---|---|---|
| ||
{ "seed": { "id": "AAABcID5GBc="manager_192.168.0.16:40505//AAABeOQLewo=", "mode": "full", "phase": "idle", "seed": "c:\\testdata\\2500", "type": "filesystem", "descriptionstate": "2,500 filescompleted", "status": "S", "start": 15845501930111618736207176, "stop "end": 15845502670471618736273635 }, "message "connection": "optional response message" } |
Status
"98960f72-aab0-4ba1-a90e-b29d4e3c2c92",
"workflows": "72022651-c2f4-45a9-9e18-2b0ace529cda"
}
]
} |
Status: 200
Section | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Get a single seedGet information about a single seed configured in Aspire, this endpoint need the at least the OPERATOR role to be executed. Add seedsAdd one or more seeds to Aspire
Expand query string parameters: connector, workflows, connection, policies Path Request Body Parameters
Examples Add a single seed
Add multiple seeds
Response
Response
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response code | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
201 | Created | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
406 | Not acceptable - there was an issue validating the input |
Section | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Add seed(s)Add seeds to Aspire, this endpoint need the at least the ADMINISTRATOR role to be executed.
Body Parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Section | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Update seedsUpdate 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
Request Body Parameters
Examples Update a single seed
Example
Update multiple seeds
Response
Status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response code | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
201 | Created | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 | Not found - a given seed identifier was not found | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
406 | Not acceptable - there was an issue validating the input |
5647E40827A6C09CBA868294BB437CE5",
"crawl": {
"phase": "idle",
"state": "never"
}
},
"properties": { This will be a dynamic JSON object }]
} |
See Response Body for details regarding the response body returned where multiple items are affected with some (or all) returning errors
Status: 201, 406
Section | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Update seed(s)Update seeds in Aspire, this endpoint need the at least the ADMINISTRATOR role to be executed | ||||||||||||||||||||||||||||||
Section | ||||||||||||||||||||||||||||||
Delete seedsDelete one or more seeds from Aspire.
Examples Delete a single seed
Delete multiple seeds
Response
Status | ||||||||||||||||||||||||||||||
Response code | Description | |||||||||||||||||||||||||||||
200 | Success | |||||||||||||||||||||||||||||
404 | Not found - a given seed identifier was not found | |||||||||||||||||||||||||||||
406 | Not acceptable - there was an issue validating the input |
Name | Type | Required | Description |
---|---|---|---|
id | string | Required | The identifier of the seed to update |
description | string | x | A description |
connector | string | x | The identifier of the connector configuration to use for this seed (may be omitted if type is specified) - see Connectors API |
connection | string | x | a connection id - see Connections API |
workflows | string | x | An optional list of the workflow identifiers to use for this seed - see Workflow API |
tags | string | x | An optional list of the tags to use for this seed |
throttlePolicy | string | x | a throttle policy id - see Policies API |
routingPolicies | string | x | An optional list of the routing policy identifiers to use for this seed - see Policies API |
deleteIncrementalPolicy | string | x | (from 5.0.2) a delete policy id - see Policies API |
properties | object | x | Seed properties |
x - at least one field must be present
Example for more seeds
Code Block | ||||
---|---|---|---|---|
| ||||
PUT /aspire/_api/seeds
{
"AAABcID5GBc=": {
"id": "AAABcID5GBc=",
"connector": "connector_2",
},
"AAABcIueWUc=": {
"id": "AAABcIueWUc=",
"connector": "connector_1",
"description": "250,000 files",
"routingPolicies": ["policy_1"],
"workflows": ["workflow_1","workflow_99"]
}
} |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{"seed":[{"updated":true,"id":"AAABcID5GBc="},{"updated":true,"id":"AAABcID5GBd="}]} |
See Response Body for details regarding the response body returned where multiple items are affected with some (or all) returning errors
Status: 200, 404, 406
Section | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Update seeds, filteredUpdate connectors configured in the Aspire, filtered by a specified criteria, this endpoint need the at least the ADMINISTRATOR role to be executed.
Filters: The seed filter definition here
Status: 200, 406 |
Section | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Delete seed(s)Delete one or more seeds from Aspire, this endpoint need the at least the ADMINISTRATOR role to be executed.
Path Parameters and query parameters
Body parameters
Example
Response
Status: 200, 404, 406
|
Section | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Crawl controlStart, stop, pause and resume crawls of one or more seeds, this endpoint need the at least the OPERATOR role to be executed.
Path Parameters
Query String Parameters
Body Optionally, a filter can be added to specify which seeds to start Examples Starts an incremental crawl for a single seed
Starts an full crawl for a single seed
Reprocess only errored documents from the previous crawl
Pauses a crawl for a single seed
Starts a crawl for multiple seeds
Starts a crawl for multiple seeds (alternative)
Response
Status: 200, 404, 406 |
Section | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Export seed(s)Export one or more seed from Aspire, this endpoint needs at least the OPERATOR role to be executed.
Path Parameters and Query parameters
Body Parameter
Examples
Response
Status: 200, 404, 406
|
Section |
---|
ImportThe import usage can be found here |
Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Filters
Some endpoint queries require a filter. A filter is basically a JSON object with the following format: Seed filter:
| |||||||||||||
Section | |||||||||||||
Crawl controlStart, stop, pause and resume crawls of one or more seeds.
Path, Query String and Request Body Objects | |||||||||||||
Name | Type | Required | Description | ||||||||||
id | string | Required | The identifier(s) of the seed(s) to control | ||||||||||
action | string | Optional | The action to perform:
Defaults to start if not specified | ||||||||||
type | string | Optional | The type of crawl to start:
Defaults to incremental if not specified |
Code Block | ||
---|---|---|
| ||
POST /aspire_api/seeds/AAABcID5GBc%3D |
Starts an full crawl for a single seed
Code Block | ||
---|---|---|
| ||
POST /aspire_api/seeds/AAABcID5GBc%3D/start/full |
Pauses a crawl for a single seed
Code Block | ||
---|---|---|
| ||
POST /aspire_api/seeds/AAABcID5GBc%3D/pause |
Starts a crawl for multiple seeds
Code Block | ||
---|---|---|
| ||
PUT /aspire_api/seeds/crawl
[{
"id": "AAABcID5GBc="
},
{
"id": "AAABcIueWUc="
}] |
Starts a crawl for multiple seeds (alternative)
Code Block | ||
---|---|---|
| ||
PUT /aspire_api/seeds
{
"id": ["AAABcID5GBc=", "AAABcIueWUc="]
} |
Response
Code Block | ||
---|---|---|
| ||
{
"message": "optional response message"
} |
Status