Python example - authenticating and calling the VMware Enterprise PKS API

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

Sign in to be able to add comments.

Comments 0