Getting Device Credentials Dynamically from a YAML Task

Through the YAML (JSON) task, device credentials can be dynamically retrieved as part of the workflow execution process. The following syntax must be in the task in order to get device credentials:
  • Get device detail:
    $$devicename.username$$ 
  • Get device credential:
    $$devicename.password$$
Note: Device(s) must be added in the Appviewx inventory.

To get the device credentials dynamically:

  1. Design a new workflow.
  2. From the User Interface section, drag and drop the YAML task.
  3. Enter the syntax to get device credentials dynamically.
  4. In the YAML task window, under Resource, define the permissions in the chart as follows:
    • V (View) - Users can only view the interface. There is no Submit or Cancel buttons provided.
    • R (Review) - Users can only view/read, Submit and Cancel without editing the task.
    • RW (Read Write) - Users can read/write, Edit, Submit, and Cancel the task.
  5. Connect the workflow tasks and enable the workflow.
  6. Trigger the workflow.
    Device credentials are dynamically pulled from the Inventory.