Hello,
I have a powershell script that will read an Excel workbook and then outputs a JSON with all the appropriate connections i need (SSH, Web, Credentials, Folders, etc) for importing into RDM. It works great. In my use case each JSON document is a SQLlite database 1:1. Each database is a customer's worth of servers/credentials/etc.
I would like to add importing of document variables. This could change between JSON imports/customers. So it has to be document based, not application based. I have it working manually--I have $<VARIABLENAME>$ in the connection string and it imports fine. I then manually create the variable and it works.
But I cant figure out how to import a variable. I've tried to reverse engineer it and export the document with the variable to JSON, but it doesnt seem to export either.
Am i missing something or is this not possible?
FYI: I'm importing on both Mac and Windows, but the variable is mostly for use on Mac. I am using IPv6LL addresses and on Mac it requires appending the "%enX" number for for your ethernet adapter. (Windows seems to manage with just the IPv6LL address). The enX changes depending on which USB adapter i use. Sometimes it's en8, en10, en14, etc. So a variable with this would be great. (i'm not sure if MacOS permanently assigns the same enX to USB adapter everytime you use it)
The connection string i create in the JSON is like this:
fe80::1234:56ff:fe78:9ABC%en10
I would like to create
fe80::1234:56ff:fe78:9ABC$INTERFACENAME$
And then import a variable $INTERFACENAME$ as "%enX" as part of the JSON. Then i can change it in one place across the whole document.
Thank you!