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 servers The connections API provides functionality that allows a an administrator to perform actions such as adding and configuring a server to connection to crawl, or beginning or stopping a crawl

toc
Easy Heading Free
navigationTitleOn this Page
navigationExpandOptionexpand-all-by-default

Section

Get all

servers

connections

Lists all the servers connections configured in the Aspire. This endpoint needs at least the OPERATOR role to be executed.

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

Query String Parameters

NameTypeRequiredDescription
fromintegerOptionalIndicates 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
expandstringOptional
connections

Pagination query string parameters

Sorting query string parameter

Section

Get all connections, filtered

Lists connections configured in the Aspire, filtered by a specified criteria. This endpoint needs at least the OPERATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

POST /aspire/_api/connections/getAll

Pagination query string parameters

Sorting query string parameters

Filters: The connection filter definition here

List of fields to expand, * will expand everything

Response

Code Block
languagejs
themeRDark
{
    "servercount": [{
    {
      "idtotalItems": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
  2
    },
    "typeconnection": [
  "filesystem",      {
    
        "descriptionid": "Local Storagef0e88016-1a27-42b6-a5ae-31ab2226dbdc",
         "created": 1596707252548,
	  "updatedtype": 1596707252548"ldap",
      "properties": { This is a dynamic JSON object}
 "description": "LDAp-ik",
   },
    {
      "idproperties": "5d0b35d5-c946-44e7-9be5-97c9ad9036a4",
{
         "type": "smb",
      "descriptionuseScript": "Remote Storagefalse",
      "created": 1596707252548,
	  "updated": 1596707252548,
	          "credentialuseSearchBase": "cred_1true",
      "properties": { This is a dynamic JSON object}
    }
  ],
  "from": 100,
  "size": 10,
  "sortBy"server": "ldap://localhost:20389",
                "authentication": "idsimple",
  "sortMode              "user": "asc"cn=admin,dc=accenture,dc=com",
  "totalItems": 10000,
  "message": "optional response message"
} 

Status

Response codeDescription200Success Section

Get all servers, filtered

Lists servers configured in the Aspire, filtered by a specified criteria

Panel
borderColorblack
bgColor#fafafb

POST /aspire/_api/servers/getAll

Query String Parameters

NameTypeRequiredDescriptionfromintegerOptionalIndicates the initial page to be retrievedsizeintegerOptionalSpecifies the size of results pagesortBystringOptionalField by which results are sortedsortModestringOptional

Sort mode

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

Body Parameters

NameTypeRequiredDescriptionfilterJSONRequiredFilters retrieved servers. Check the filter definition here

Response

Code Block
languagejs
{
  "server": [
    {
      "id": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
      "type":   "filesystem",        "password": "Adm1n!",
                "searchBase": "dc=accenture,dc=com",
                "userQuery": "(objectClass=person)",
                "groupQuery": "(objectClass=groupOfUniqueNames)",
                "userAttributes": "<users><attribute>uid</attribute><attribute>givenName</attribute></users>",
                "userKeyAttr": "dn",
                "userNameAttr": "uid",
          
      "descriptiongroupKeyAttr": "Local Storagedn",
      "created": 1596707252548,
	  "updated": 1596707252548,
      "propertiesgroupNameAttr": {"ou",
 This is a dynamic JSON object}
    },
    {
      "idgroupMappingAttr": "5d0b35d5-c946-44e7-9be5-97c9ad9036a4uniqueMember",
                "typegroupsHoldMembers": "smbtrue",
      "description": "Remote Storage",
          "createduserGUID": 1596707252548"true",
	      "updated": 1596707252548,
	  "credential": "cred_1",
      "propertiesuserGUIDName": "objectGUID",
  { This is a dynamic JSON object}
    }
  ],
  "fromisBinaryGUID": 100,
  "sizetrue": 10,
  "sortBy              "lowerCase": "idfalse",
      "sortMode": "asc"
  "totalItems": 10000      }
        },
  "message": "optional response message"
} 

Status

Response codeDescription200Success Section

Get a single server

Get information about a single server configured in Aspire

Panel
borderColorblack
bgColor#fafafb

GET /aspire/_api/servers/:id

Path Parameters

NameTypeRequiredDescriptionidstringRequiredThe id of the server to return

Query String Parameters

NameTypeRequiredDescriptionexpandstringOptionalList of fields to expand, * will expand everything

Response

Code Block
languagejs
{
  "server": {
      {
            "id": "98960f72-aab0-4ba1-a90e-b29d4e3c2c92",
            "idtype": "5d0b35d5-c946-44e7-9be5-97c9ad9036a4filesystem",
      "type": "smb",
      "description": "Remote StorageFs-ik",
            "createdproperties": 1596707252548,
	  "updated": 1596707252548,
	{
                "credentialmultipleStartPoints": "cred_1false",
      "properties": { This is a dynamic JSON object}
    }"url": "C:\\tmp\\ach1",
  "message": "optional response message"
}

Status

Response codeDescription200Success404The given server id was not found Section

Add servers

Add servers to Aspire

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

Body Parameters

NameTypeRequiredDescriptiontypestringRequired

The type of server to add

descriptionstringRequiredAn optional description of the servercredentialsstringOptionalCredentials can be specified for the serverpropertiesJSONRequiredDynamic JSON object with server properties (from dxf)

Example

Code Block
languagejs
POST /aspire/_api/servers
[{
   "type": "filesystem",
   "description": "Local storage",
   "properties": { This will be a dynamic JSON object }
 },
 {
   "type": "filesystem",
   "description": "Remote Storage",
   "credential": "cred_1",
   "properties": { This will be a dynamic JSON object }
}]

Response

Code Block
languagejs
{
  "server": [
    {
      "id": "5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
      "type":   "filesystem",            "partialScan": "false",
                "subDirUrl": null,
                "indexContainers": "false",
                "scanRecursively": "true",
                "scanExcludedItems": "false",
                "ignoreScanErrors": "false",
                "ignoreSymLinks": "false",
                "useACLs": "false",
                "acls": null,
          
      "descriptionincludes": "Local Storage.*test1.*",
      "created": 1596707252548,
	  "updated": 1596707252548,
      "propertiesexcludes": null
  { This is a dynamic JSON object}
    },
     {
   }
   "id":  ]
} 

Status: 200




: 200, 404

Section

Get a single connection

Get information about a single connection configured in Aspire. This endpoint needs at least the OPERATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

GET /aspire/_api/connections/:id


Path Parameters

NameTypeRequiredDescription
idstringRequiredThe id of the connection to return


Response

Code Block
languagejs
themeRDark
{
  "connection": {
      "id": "5d0b35d5-c946-44e7-9be5-97c9ad9036a4"5d0b35d5-c946-44e7-9be5-97c9ad9036a4",
      "type": "smb",
      "description": "Remote Storage",
      "created": 1596707252548,
	  "updated": 1596707252548,
	  "credential": "cred_1",
      "propertiestype": { "smb",
      "description": "Remote Storage",
	  "credential": "cred_1",
      "properties": { This is a dynamic JSON object}
    }
  ]
} 

Status

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




Section

Add connection(s)

Add connections to Aspire. This endpoint needs at least the ADMINISTRATOR role to be executed

Section

Update servers

Update servers in Aspire.

Panel
borderColorblack
bgColor#fafafb
PUT POST /aspire/_api/serversconnections


Body Parameters

credentialsCredentials Optional (from dxf)
NameTypeRequiredDescription
idtypestringRequired

The

identifier

type of

the

server to

update

add

type
descriptionstringOptional

The type of server to add

RequireddescriptionstringOptionalAn optional description of the server
credentialstringOptionalCredential id can be specified for the server
deleteIncrementalPolicystringOptionalDelete policy id
throttlePolicystringOptionalThrottle policy id
routingPoliciesstring arrayOptionalRouting policies ids
propertiesJSONRequiredDynamic JSON object with server properties


Example

Code Block
languagejs
themeRDark
POSTPUT /aspire/_api/servers
{
  "AAABcID5GBc=": connections
[{
    "idtype": "AAABcID5GBc=filesystem",
    "description": "Local Storagestorage",
    "typedeleteIncrementalPolicy": "filesystemdeletePolicyId"
  },
  "AAABcIueWUc=": {
    "idthrottlePolicy": "AAABcIueWUc=throttlePolicyId",
    "descriptionroutingPolicies": ["routingPolicyId1"Remote, Storage"routingPolicyId2"],
    "credentialproperties": "cred_2"
  }
}

Response

Code Block
languagejs
{
  "server": [
    {
   { This will be a dynamic JSON object }
 },
 {
   "idtype": "AAABcID5GBcfilesystem",
      "typedescription": "Remote  Storage"filesystem",
        
   "credential": "cred_1",
   "descriptionproperties": { This will be a dynamic JSON object }
}]


Response

Code Block
languagejs
themeRDark
{
  "connection": ["Local Storage",
      "created": 1596707252548,
	  "updated": 1596707252548,
    {
      "propertiesid": { This is a dynamic JSON object}
    },
    {"5d0b35d5-c946-44e7-9be5-97c9ad9036a3",
      "idtype": "  "AAABcIueWUc=filesystem",
       "type": "smb",
      "description": "RemoteLocal Storage",
      "createdproperties": 1596707252548{ This is a dynamic JSON object}
    },
	   "updated": 1596707252548,
	 {
      "credentialid": "cred_15d0b35d5-c946-44e7-9be5-97c9ad9036a4",
      "propertiestype": {"smb",
 This is a dynamic JSON  "description": "Remote Storage",
	  "credential": "cred_1",
      "properties": { This is a dynamic JSON object}
    }
  ]
} 

Status

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

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

Status: 201, 406




Example

Section

Update connection(s)

Update connections in Aspire. This endpoint needs at least the ADMINISTRATOR role to be executed.

Delete multiple servers, filtered

Delete multiple servers from Aspire, filtered by a specified criteria

Panel
borderColorblack
bgColor#fafafb

POST PUT /aspire/_api/servers/deleteAll/connections/:id

PUT /aspire/_api/connections


Path Body Parameters

NameTypeRequiredDescription
filteridJSONstringRequiredFilters retrieved servers. Check the filter definition hereThe identifier of the connection to update


Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier of the connection to update
(see add connection)
x

x - at least one field must be present


ExampleResponse

Code Block
languagejs
themeRDark
PUT /aspire/_api/connections
{
  "messageAAABcID5GBc=": "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 credential identifier was not found
406Not acceptable - there was an issue validating the input
Section
{
    "id": "AAABcID5GBc=",
    "description": "Local Storage",
    "properties": { This is a dynamic JSON object}
  },
  "AAABcIueWUc=": {
    "id": "AAABcIueWUc=",
    "description": "Remote Storage",
    "credential": "cred_2"
  }
}

Response

Code Block
languagejs
themeRDark
{"server":[{"updated":true,"id":"AAABcID5GBc="},{"updated":true,"id":"AAABcID5GBd="}]} 


Status
: 200, 404, 406


Section

Update connections, filtered

Update connections configured in the Aspire, filtered by a specified criteria. This endpoint needs at least the ADMINISTRATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

PUT

Delete single server

Delete a single server from Aspire.

Panel
borderColorblack
bgColor#fafafb
DELETE

/aspire/_api/

servers

connections/

:id

Path Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier of the server to delete
Code Block
languagejs
DELETE /aspire/_api/servers/AAABcID5GBc%3D

Response

js

updateAll

Filters: The connection filter definition here

Update body parameter

Code Block
themeRDark
Code Block
language
{
  "
message
update" : {
    "
optional
description" 
response
: 
message" }

Status

Response codeDescription200Success404Not found - a given server identifier was not found406Not acceptable - there was an issue validating the input
"DESCRIPTION"
	"credential" : "credentialId",
	"throttlePolicy" : "throttlePolicyId",
	"properties" : {},
    "deleteIncrementalPolicy": "deletePolicyId",
	"routingPolicies" : ["RP_ID1", "RP_ID2", "RP_ID3", ...]
	"routingPolicies.add" : ["RP_ID1", "RP_ID2", "RP_ID3", ...]
	"routingPolicies.remove" : ["RP_ID1", "RP_ID2", "RP_ID3", ...]
  }
}

Response

Code Block
languagejs
themeRDark
{
  "message": "update result response message"
}

Status: 200, 406




Section

Delete connection(s)

Delete one or more connections from Aspire. This endpoint needs at least the ADMINISTRATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

DELETE /aspire/_api/connections/:id

DELETE /aspire/_api/connections

POST /aspire/_api/connections/delete


Path Parameters and Query parameters

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


Body Parameter

NameTypeRequiredDescription
idsstringRequiredThe identifier(s) of the connection(s) to delete


Examples

Code Block
languagejs
themeRDark
DELETE /aspire/_api/connections/AAABcID5GBc

DELETE /aspire/_api/connections?id=AAABcID5GBc&id=AAABcID5GBd

POST /aspire/_api/connections/delete
{
  "ids":["AAABcID5GBc","AAABcID5GBd"]
}


Response

Code Block
languagejs
themeRDark
{
  "message": "delete result response message"
}

Status: 200, 404, 406


Section

Delete multiple connections, filtered

Delete multiple connections from Aspire, filtered by a specified criteria. This endpoint needs at least the ADMINISTRATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

POST /aspire/_api/connections/deleteAll

Filters: The connection filter definition here

Response

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

Status: 200




Section

Export connection(s)

Export one or more connections from Aspire. This endpoint needs at least the OPERATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

GET /aspire/_api/connections/export

GET /aspire/_api/connections/export/:id

POST /aspire/_api/connections/exportAll

Info

Every configuration item has the option to export from the UI, using the single menu or by the bulk actions:

Image AddedImage Added

Note

Something important that you need to know is that when you export a config item that depends on another, the export will contain also all the dependencies.

Note

Take into consideration that components with resources loaded into elastic, will be exported, but the resource itself will not, so you will need to reupload the resource and go and select your resource in the component again.


Path Parameters and Query parameters

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the connection(s) to export


Body Parameter

NameTypeRequiredDescription
idsstringRequiredThe identifier(s) of the connection(s) to export


Examples

Code Block
languagejs
themeRDark
GET /aspire/_api/connections/export/AAABcID5GBc

DELETE /aspire/_api/connections/export?id=AAABcID5GBc&id=AAABcID5GBd

POST /aspire/_api/connections/export
{
  "ids":["AAABcID5GBc","AAABcID5GBd"]
}


Response

Code Block
languagejs
themeRDark
{
  "export": {
    "connections": {
      "connection": [
        {
          "id": "<connection_id>",
          "type": "rest-api",
          "description": "RESTConnection",
          "credential": "<credential_id>",
          "properties": {
            ...
          }
        },
		...
      ]
    },
    "credentials": {
      "credential": [
        {
          "id": "<credential_id>",
          "type": "rest-api",
          "description": "RESTCredentials",
          "properties": {
            "type": "bearer",
            "query": {
              ...
            }
          }
        },
		...
      ]
    }
  }
}

Status: 200, 404, 406


Section

Export multiple connections, filtered

Export multiple connections from Aspire, filtered by a specified criteria. This endpoint needs at least the OPERATOR role to be executed.

Panel
borderColorblack
bgColor#fafafb

POST /aspire/_api/connections/exportAll

Filters: The connection filter definition here

Response

Code Block
languagejs
themeRDark
{
  "export": {
    "connections": {
      "connection": [
        {
          "id": "<connection_id>",
          "type": "rest-api",
          "description": "RESTConnection",
          "credential": "<credential_id>",
          "properties": {
            ...
          }
        },
		...
      ]
    },
    "credentials": {
      "credential": [
        {
          "id": "<credential_id>",
          "type": "rest-api",
          "description": "RESTCredentials",
          "properties": {
            "type": "bearer",
            "query": {
              ...
            }
          }
        },
		...
      ]
    }
  }
}

Status: 200




Response

Section

Import

The import usage can be found here

Section

Get server type dxf

Returns the dxf for a specific server type

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

Path Parameters

NameTypeRequiredDescription
typeIdstringRequiredThe id of the type for which dxf is going to be retrieved
Code Block
languagejs
{
  "dxf": {...}
  "message": "optional response message"
}

Status

Response codeDescription200Success404Not found - a given service identifier was not found





Section

Filters
Anchor
FiltersAnchor
FiltersAnchor

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

Credentials Seed filter:

Code Block
languagelanguagejs
themejsRDark
{ 
  "filter" : {
    "ids" : ["ID1", "ID2", "ID3", ...],
    "type,
    "type" : "TYPE",
    "description" : "DESCRIPTION",
    "deleteIncrementalPolicy": "deletePolicyId",
	"credentials" : "credentialId",
	"throttlePolicy" : "TYPEthrottlePolicyId",
	"routingPolicies" :  ["RP1", "descriptionRP2", : "DESCRIPTION"RP3", ...]
  }
Note
When using endpoints that use this filter, the filter cannot be empty: at least one field of the filter must be specified.
}