Versions Compared

Key

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

...

Credentials are stored in the "credentials" database table. The actual credential information is encrypted in storage. When a Discovery is run, a device has it's credentials retrieved and tested for connection first. If these fail the list of credentials is also tested against the device. Working credentials are stored at an individual device level in the "credential" table (note - no 's' in the table name). SSH keys are tested before SSH username / password. When testing SSH, credentials will also mbe be marked as working with sudo or being root.

...

POSTncreateInsert new credentials entry
Request Method
ID
Action
Resulting Function
Permission Required
URL Example
Notes
Example Response
GETPOSTn collectioncreatecredentials::create/credentialsReturns Insert a list of credentialsnew credentials entry.credentials_collectioncreate.json
GETy readcredentials::read/credentials/{id}Returns a credentials details.credentials_read.json
PATCHy updatecredentials::update/credentials/{id}Update an attribute of a credentials entry.credentials_patch.json
DELETEy deletecredentials::delete/credentials/{id}Delete a credentials entry.credentials_createdelete.json
DELETEGETyn deletecollectioncredentials::read/credentials/{id}Delete Returns a credentials entrylist of credentials.credentials_deletecollection.json

Web Application Routes

Request Method
ID
Action
Resulting Function
Permission Required
URL Example
Notes
GETncreatecreate_formcredentials::create/credentials/createDisplays a standard web form for submission to POST /credentials.
GETyupdateupdate_formcredentials::update/credentials/{id}/updateShow the script details with the option to update attributes using PATCH to /credentials/{id}
GETnimportimport_formcredentials::create/credentials/importDisplays a standard web form for submission to POST /credentials/import.
POSTnimportimportcredentials::create/credentials/importImport multiple credentials using a CSV.