Getting Device Credentials Dynamically

Device credentials can be dynamically retrieved as part of the workflow execution process through a YAML (JSON) task. The following syntax must be used 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.

To get the device credentials dynamically during the workflow execution process:

  1. Go to the Integration Hub.
  2. Design a new workflow.
  3. Drag and drop relevant tasks.
  4. From the User Interface section in the left menu, drag and drop the YAML task.
  5. Add input data in the YAML format.
  6. Enter the following syntax to get the device credentials dynamically.
    Syntax Usage Sample
    ---
    -
     name: Creating a virtual server in a F5 device
     hosts: local
     tasks:
            - name: Add virtual server
              bigip_virtual_server:
                device: <Devicename or IP address>
                username: $$devicename.username$$
                password: $$devicename.password$$
                state: present
    
    ---
    -
     name: Creating a virtual server in a F5 device
     hosts: local
     tasks:
            - name: Add virtual server
              bigip_virtual_server:
                device: bigip.ltm.12.1
                username: $$ bigip.ltm.12.1.username$$
                password: $$ bigip.ltm.12.1.password$$
                state: present
    
  7. Connect the workflow tasks and enable the workflow.
  8. Trigger the workflow.
    Device details are fetched.