...
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.
...
Request Method | ID | Action | Resulting Function | Permission Required | URL Example | Notes | Example Response | ||
---|---|---|---|---|---|---|---|---|---|
GETPOST | n | collectioncreate | credentials::create | /credentials | Returns Insert a list of credentialsnew credentials entry. | credentials_collectioncreate.json | |||
GET | y | read | credentials::read | /credentials/{id} | Returns a credentials details. | credentials_read.json | |||
PATCH | y | update | credentials::update | /credentials/{id} | Update an attribute of a credentials entry. | credentials_patch.json | |||
DELETE | ny | create | delete | credentials::delete | /credentials/{id} | InsertDelete a | new credentials entrycredentials entry. | credentials_createdelete.json | |
DELETEGET | yn | deletecollection | credentials::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 |
---|---|---|---|---|---|---|
GET | n | create | create_form | credentials::create | /credentials/create | Displays a standard web form for submission to POST /credentials. |
GET | y | update | update_form | credentials::update | /credentials/{id}/update | Show the script details with the option to update attributes using PATCH to /credentials/{id} |
GET | n | import | import_form | credentials::create | /credentials/import | Displays a standard web form for submission to POST /credentials/import. |
POST | n | import | import | credentials::create | /credentials/import | Import multiple credentials using a CSV. |