Create New SShEntry with private key from Vault

Create New SShEntry with private key from Vault

avatar

Hi,

is it possible to create , with api , a new sshentry with a private key that is stored in vault , and not only from file ?

Within parameters of NewDSSSHShellEntry api i found only PrivateKeyPath , but this must point to a file containing the private key .

If yes how can i do it ?


Thanks

Claudio

All Comments (2)

avatar

Hello Claudio,


As you noticed, the New-DSSSHShellEntry cmdlet only allows for a path containing a key, or a passphrase. I will ask the engineer in charge of the module if it would be possible to add one stored in a vault as well.


Best regards,

Richard Boisvert

avatar

Hello Richard,

thanks for your reply .

Perhaps i've found a workaround for this problem , but i need to know if and how is possible to insert/update a ssh entry, via api powershell, setting fields credentials to inherited and not to custom as default ( see following picture ) .



I tried with templates but it seems that they are not used by api calls


Thanks

Claudio