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

Support tenant level connectors on TLSPC #263

Closed gdbarron closed 4 months ago

gdbarron commented 4 months ago
BeardedPrincess commented 4 months ago

The help for Set-VcConnector seems to not capture the -ID parameter, but it's there for sure, and there's examples for it. I'm a bit confused between -Connector <String> and the help text on it saying If not provided, the ID will be looked up by the name in the manifest.

I was testing Set-VcConnector -ID <MyID> -Disable and Set-VcConnector -ID <MyID> -Disable:false

gdbarron commented 4 months ago

If only ManifestPath is provided, and not ID/Connector, we need to know which connector to update. To do that, we use the connector name from ManifestPath and perform a lookup of existing connectors to get the ID. I've cleaned up and simplified the code a bit.

BeardedPrincess commented 4 months ago

Tested both code-path's in final merge: updating via -ID and -ManifestPath. Works like I would expect.