To successfully automate the configuration of integrations on a new vCloud Usage Meter instance, utilize the correct API syntax to generate a session token and subsequently add the products.
/api/v2/auth with Basic Authorization:curl --request POST \
url 'https://<UM_URL>/api/v2/auth' \
header 'accept: application/json' \
header 'authorization: Basic <BASE64 UM_USER:UM_PASS>'Using the access token generated in step 1, add the product integration (e.g., NSX-T) using a POST request to /api/v1/product with Bearer Token Authorization:
curl --request POST \
url 'https://<UM_URL>/api/v1/product' \
header 'accept: application/json' \
header 'authorization: Bearer <UM_ACCESS_TOKEN>' \
header 'content-type: application/json' \
data '{
"productType": "NSX-T",
"user": "<NSXT_USERNAME>",
"password": "<NSXT_PASSWORD>",
"host": "<NSXT_URL>",
"port": <NSXT_PORT>,
"forceCreation": true
}'