You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Page in development

This page is in development and as such, its contents may be incorrect

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

Get all credentials

Lists all the credentials configured in the Aspire

GET /aspire_api/credentials

Query String Parameters

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

Response

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

Status

Response codeDescription
200Success




Get a single credential

Get information about a single credential configured in Aspire

GET /aspire_api/credentials/:id

Path Parameters

NameTypeRequiredDescription
idstringRequiredThe id of the credential to return

Response

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

  "message": "optional response message"
}

Status

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




Add credentials

Add one or more credentials to Aspire

POST /aspire_api/credentials

Request Body Parameters

NameTypeRequiredDescription
typestringRequiredThe type of credential to add
descriptionstringOptionalAn optional description of the 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

POST /aspire_api/credentials
{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Add multiple credentials

POST /aspire_api/credentials
[{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
},
{
  "type": "sharepoint"
  "description": "SP Online"
  ...
}]

Response

{
  "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




Update credentials

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

PUT /aspire_api/credentials/:id

PUT /aspire_api/credentials

Path and Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier of the credential to update
typestringOptionalThe type of credential
descriptionstringOptionalAn optional description of the credential

Other parameters passed in the request body will depend on the type of credential being created - see Add credential(s) above

Examples

Update a single credential

PUT /aspire_api/credentials/AAABcID5GBc%3D
{
  "id": "AAABcID5GBc=",
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Update multiple credentials

PUT /aspire_api/credentials
{
  "AAABcID5GBc=": {
    "id": "AAABcID5GBc=",
    "type": "filesystem"
    "description": "Europe Net Appliance"
    ...
  },
  "AAABcIueWUc=": {
    "id": "AAABcIueWUc=",
    "type": "sharepoint"
    "description": "SP Online"
    ...
  }
}

Response

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




Delete credentials

Delete one or more credentials from Aspire.

DELETE /aspire_api/credentials/:id

DELETE /aspire_api/credentials

Path and Request Body Parameters

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

Examples

Delete a single credential

DELETE /aspire_api/credentials/AAABcID5GBc=

Delete multiple credentials

DELETE /aspire_api/credential?id=AAABcID5GBc%3D&id=AAABcIueWUc%3D

Response

{
  "message": "optional response message"
}

Status

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