Usage specific APIs

As a cluster administrator, you can run the usage specific APIs.

You must be a cluster administrator to run these APIs. Otherwise, an unauthorized error message is displayed.

Retrieve the current number of deployed virtual machines

curl -k -X GET \
-H "Authorization: Bearer ${TSA_BEARER_TOKEN}" \
"https://${TSA_HOSTNAME}/cam/api/v1/managedvirtualmachines/countActive?tenantId=${TSA_TENANT_ID}&ace_orgGuid=${MCM_TEAM}"

Retrieve the maximum number of virtual machines for each month

curl -k -X GET \
-H "Authorization: Bearer ${TSA_BEARER_TOKEN}" \
"https://${TSA_HOSTNAME}/cam/api/v1/managedvirtualmachines/highwatermark?tenantId=${TSA_TENANT_ID}&ace_orgGuid=${MCM_TEAM}"

Download the managed virtual machines report

curl -k -X GET \
-H "Authorization: Bearer ${TSA_BEARER_TOKEN}" \
"https://${TSA_HOSTNAME}/cam/api/v1/managedvirtualmachines/download?tenantId=${TSA_TENANT_ID}&ace_orgGuid=${MCM_TEAM}"