Closed rashmisinghgaurav closed 6 years ago
A VaultSession
is an object that has connected-state information already in it, such as the network endpoint and an authentication token. It is primarily for advanced usage scenarios where you need to establish a connection to a Vault server endpoint in some unique or special way outside of what is supported by this module, and most users will not need to worry about it.
Can you tell me what issues you are having using this client?
Do you have a Vault server instance up and running? Have you been able to successfully access it using the native vault CLI client?
Hi Eugene,
Thanks for your response. I am trying to use this client to set app-role on the avult server and authenticate using app-role. However I am unable to use the cmdlets. I am getting these errors with most of the cmdlets:
PS C:\Users****> Write-VltData
cmdlet Write-VltData at command pipeline position 1 Supply values for the following parameters: Path: secret/hello Key[0]: value Key[1]: vaule1 Key[2]: Value[0]: hello Value[1]: hello1 Value[2]: Write-VltData : Method not found: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object, System.Object, System.Object)'.At line:1 char:1
+ CategoryInfo : NotSpecified: (:) [Write-VltData], MissingMethodException
+ FullyQualifiedErrorId : System.MissingMethodException,Zyborg.Vault.POSH.WriteData
Please note that I was able to successfully connect to the normal API
Can you give me some details about your environment?
The error seems to indicate that a very basic method is missing from your environment context, which is strange.
It is .NET Framework 4.5.2 OS: Windows7 64bit
I am able to run the command now. You were right. There was some issue with the package installation on my system. I tried on AWS instance and it worked like a charm :) Thanks for your help!
Glad it worked out.
I am having trouble using this client. Can someone please let me know what is the vault session parameter and how the value would be constructed.