Sample Exchange

 View Only

Configure edge certificate disabled 

Aug 02, 2022 10:01 PM

This script configures all the edges certificates to disabled in a customer that matches a build number. Please note that you need privileges to configure edges.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nYou need to install requests in your environment. \\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nThis script uses token authentication so you need to get a token from the vco before run int.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nYou can save the vco hostname and the vco token in env var, and that is recommended.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n vco_hostname for the FQDN ex vco58-usvi1.velocloud.net\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n vco_token for the token,\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nIf there aren\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t env vars the script will ask for them as input.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nRemeber: the script will ask Refor buildnumber, only edges that matches the build number will change the certificate.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nThe script will not change disconnected Edges.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\nplease feel free to leave a comment.\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n
#Python
#VeloCloud
#VeloCloudOrchestrator
#SD-WAN
#Apache2.0
#VeloCloudOrchestratorAPI
#VMwareSD-WAN

Statistics
0 Favorited
2 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
py file
Cert_Disabled2022072601.py   2 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.