Venafi / VenafiPS

Powershell module to fully automate your Venafi TLS Protect Datacenter and Cloud platforms!
https://venafips.readthedocs.io/
Apache License 2.0
17 stars 8 forks source link

Invoke-VcWorkflow fails with Discovery Workflow (should be pointed to /v1/machines vs. /v1/machineIdentities) #275

Closed R3LentL355 closed 2 months ago

R3LentL355 commented 2 months ago

Environment

Full Operating System: Tested on Windows 10
VenafiPS version: 6.3.1
PowerShell version: 7.4.2
TLSPDC version (if applicable): N/A

Steps to reproduce

Execute: Invoke-VcWorkflow -Workflow Discover

Actual behavior

Error Message: "Unable to find machineIdentity XXXXX"

The API call being made is pointed at the "machineIdentities" endpoint. For Discover, it should be "machines". I have validated that I get the same results outside of PowerShell:

Screenshot 2024-04-29 at 3 13 12 PM

There appears to be a documentation/OpenAPI bug on https://developer.venafi.com for this specific workflow as well. I have submitted documentation feedback to have this addressed.

Screenshots

Screenshot 2024-04-29 at 3 10 49 PM

gdbarron commented 2 months ago

Closed by #276