Reading Time: 2 mins
Overview
VMware Tanzu Mission Control is a centralised management platform for consistently operating and securing your Kubernetes infrastructure and modern applications across multiple teams and clouds. In this post, I will cover few API commands that can be used to manage TMC services. FYI, you can find complete list of API’s here
Generate API token from TMC Console
Follow the below steps to get API Token from TMC console
- Access the url: https://console.cloud.vmware.com/
- Navigate to TMC console > My Account > API Tokens > Generate Token
- Token Name: Provide your name followed by demo
- Define Scopes: All Roles
Note: Copy the token and save it for later use
API Commands
- fetch API Token:
- Generate Access token from above Refresh Token
- Read the Access Token
- Verify the access(Optional) using access token. Access the URL and copy the access token collected above
- Get the organisation ID and account details
- Get the cluster groups
- Get the clusters
- Get the management clusters
- Delete the cluster group: capv-workload-cg
This might be useful!
https://veducate.co.uk/postman-tmc-api/
Thanks Dean