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

Compare with Current View Page History

« Previous Version 2 Next »

Page in development

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

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

List credentials

Lists all the credentials configured in the Aspire

GET /aspire_api/credential

Query String Parameters

NameTypeRequiredDescription
typestringOptionalFilter returned seeds to only those with the given type
descriptionstringOptionalFilter returned seeds 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/credential?id=:id

GET /aspire_api/credential/:id

Query String and 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 seed id was not found




Add credential(s)

Add one or more credentials to Aspire

POST /aspire_api/credential

Request Body Parameters

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

Examples

Add a single credential

{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Add multiple 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 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

PUT /aspire_api/credential

Request Body Parameters

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

Examples

Update a single credential

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

Update multiple credentials

[{
  "id": "AAABcID5GBc=",
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
},
{
  "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 seed identifier was not found
406Not acceptable - there was an issue validating the input




Delete credential(s)

Delete one or more credentials from Aspire.

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

{
  "id": "AAABcID5GBc="
}

Delete multiple seeds

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

Delete multiple seeds (alternative form)

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

Response

{
  "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
  • No labels