Sample Exchange

 View Only

Python example - authenticating and calling the VMware Enterprise PKS API 

Feb 13, 2020 01:44 PM

This is an example python script that authenticates with the PKS API, then iterates through the deployed clusters to delete any not in the "do_not_delete" array.

You need to create a UAA client for the API calls using the UAA CLI:

uaac client add api-user -s 'Super$ecretP@ssword!' –authorized_grant_types client_credentials –authorities pks.clusters.admin,pks.clusters.manage


#PivotalContainerService(PKS)
#TanzuKubernetesGridIntegrated(TKGI)
#Python
#API
#Apache2.0
#pks

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

Tags and Keywords

Related Entries and Links

No Related Resource entered.