This applies to TKGI and Tanzu Application Service deployments that use NSX-T.
NSX-T Manager API specification can be found here: NSX-T Data Center API Guide. If you want to obtain all IP blocks, the API is `GET /api/v1/pools/ip-blocks`.
When using Client Certificate Authentication, please execute curl with the client certificate and key.
For example:
curl -X <METHOD> --cert <CLIETN_CERT_PATH> --key <CLIENT_KEY_PATH> https://<NSX-T Manager URL>/<API_PATH>
If you don't know the key (as key is hidden on Ops Manager UI), you can `bosh ssh` into TAS for VMs or TKGI to find the cert and key file.
If you are using username and password in TAS for VMs instead of client certificate, please base64 encode the credentials:
Note: For security reasons, consider using `curl -u 'username:password'` directly.