These should be showing up in the API Endpoint automatically. For example, if you have a secret with the name MyPassword, it should just be
$MyPassword in the API.
If that’s not happening then we either have a bug or your environment isn’t configured to use all variables. This is the default setting so if you haven’t configured any environments then that is not the problem.
Get-UAVariable does not return the value of secrets through the management API. If you want to retrieve a secret directly, you can use the
Get-Secret cmdlet directly in the API. We use the 0.2.1 version of the Microsoft.PowerShell.SecretManagement to store secrets in Universal. Internally, we are just calling this cmdlet to populate the variable within the API script blocks.