Versions Compared

Key

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

The credential API provides functionality that allows a administrator to add, delete or update credentials

Table of Contents

Section

List credentials

Lists all the credentials configured in the Aspire

Panel
borderColorblack
bgColor#fafafb
GET /aspire_api/credential

Query String Parameters

NameTypeRequiredDescription
typestringOptionalFilter returned seeds credentials to only those with the given type
descriptionstringOptionalFilter returned seeds credentials to only those whose description matches the given expression

Response

Code Block
languagejs
{
  "credential": [{
    "id": "AAABcID5GBc=",
    "type": "filesystem",
    ...
  },
  {
    "id": "AAABcIueWUc=",
    "type": "filesystem",
    ...
  }],
  "message": "optional response message"
}

Status

Response codeDescription
200Success




Section

Get a single credential

Get information about a single credential configured in Aspire

Panel
borderColorblack
bgColor#fafafb

GET /aspire_api/credential?id=:id

GET /aspire_api/credential/:id

Query String and Path Parameters

NameTypeRequiredDescription
idstringRequiredThe id of the credential to return

Response

Code Block
languagejs
{
  "credential": {
    "id": "AAABcID5GBc=",
    "type": "filesystem",
    ...
 },

  "message": "optional response message"
}

Status

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




Section

Add credential(s)

Add one or more credentials to Aspire

Panel
borderColorblack
bgColor#fafafb
POST /aspire_api/credential

Request Body Parameters

NameTypeRequiredDescription
typestringRequiredThe type of connector to use for this seed (may be omitted if connector is specified) credential to add
descriptionstringOptionalAn optional description of the seed credential

Other parameters passed in the request body will depend on the type of credential being created - those required by Documentum will be different from those required by SharePoint. Some candidates are shown below

NameDescription
domainAn Active Directory/LDAP domain
usernameA username
passwordA password
emailA user email address
APIkeyAn API key
tokenan access token

Examples

Add a single credential

Code Block
languagejs
{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Add multiple credentials

Code Block
languagejs
[{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
},
{
  "type": "sharepoint"
  "description": "SP Online"
  ...
}]

Response

Code Block
languagejs
{
  "credential": [{
    "id": "AAABcID5GBc=",
    "type": "filesystem"
    "description": "Europe Net Appliance"
    ...
   },
   {
    "id": "AAABcIueWUc=",
    "type": "sharepoint"
    "description": "SP Online"
    ...
  }],
  "message": "optional response message"
}

Status

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




Section

Update credential(s)

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

Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier of the seed credential to update
typestringRequiredThe type of connector to use for this seed (may be omitted if connector is specified) credential
descriptionstringOptionalAn optional description of the seed credential

Other parameters passed in the request body will depend on the type of credential being created - see Credential API above

Examples

Update a single credential

Code Block
languagejs
{
  "id": "AAABcID5GBc=",
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Update multiple credentials

Code Block
languagejs
[{
  "id": "AAABcID5GBc=",
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
},
{
  "id": "AAABcIueWUc=",
  "type": "sharepoint"
  "description": "SP Online"
  ...
}]

Response

Code Block
languagejs
{
  "credential": [{
    "id": "AAABcID5GBc=",
    "type": "filesystem"
    "description": "Europe Net Appliance"
    ...
   },
   {
    "id": "AAABcIueWUc=",
    "type": "sharepoint"
    "description": "SP Online"
    ...
  }],
  "message": "optional response message"
}

Status

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




Section

Delete credential(s)

Delete one or more credentials from Aspire.

Panel
borderColorblack
bgColor#fafafb

DELETE /aspire_api/credential?id=:id

DELETE /aspire_api/credential/:id

DELETE /aspire_api/credential

Query String, Path and Request Body Parameters

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

Examples

Delete a single credential

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

Delete multiple seeds credentials

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

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