Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-VenafiRestMethod Requires -VenafiSession Parameter #47

Closed
astro2000j opened this issue Dec 1, 2021 · 0 comments · Fixed by #49
Closed

Invoke-VenafiRestMethod Requires -VenafiSession Parameter #47

astro2000j opened this issue Dec 1, 2021 · 0 comments · Fixed by #49

Comments

@astro2000j
Copy link
Collaborator

astro2000j commented Dec 1, 2021

Environment

Operating System: Mac OS
VenafiTppPS version: 3.4.0
PowerShell version: 7.0.3

Steps to reproduce

Invoke-VenafiRestMethod -VenafiSession $VenafiSession -Method "Post" -UriLeaf "Metadata/UpdateItem" -Body $metadataJson

Unlike other methods where the module variable $VenafiSession is passed and detected automatically, the Invoke-VenafiRestMethod method requires the VenafiSession parameter to be passed as shown above.

Error Message

     Invoke-VenafiRestMethod -Method "Post" -UriLeaf "Metadata/UpdateItem" ...
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Value cannot be null. (Parameter 'type')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants