GET /internal/metering API call via Aria Ops Swagger UI displays a stale VMware Aria Automation price card. Refer to Using the API with VMware Aria OperationThis issue occurs when VMware Aria Automation pricing policies are altered, removed, or incompletely configured. These actions can leave orphaned or 'stale' price card definitions in the VMware Aria Operations database. Since the Operations engine prioritizes these outdated vRA-managed definitions, the native pricing engine is unable to accurately calculate costs for unmanaged virtual machine's, resulting in pricing discrepancies across the environment.
To resolve this issue, perform a manual cleanup of the orphaned VMware Aria Automation price cards.
Note: System snapshots are mandatory before executing API commands that alter database configurations. Execute offline snapshots of all VMware Aria Operations cluster nodes.
Refer to: How to take a snapshot of VMware Aria Operations nodes.
Confirm the presence of stale entries using the internal Suite-API Swagger UI.
Navigate to the Suite-API Swagger UI endpoint (/suite-api/doc/swagger-ui.html).
Click Authorize.
Set Auth Source to Local.
Input the administrator credentials.
Locate the Select a definition dropdown in the top-right header and select Internal APIs.
Expand the metering section, then expand Internal metering.
Expand the GET /internal/metering endpoint.
Click Try it out, then click Execute.
Review the JSON output under Responses. Locate metering policies referenced from VMware Aria Automation that are no longer active.
Record the ID of the stale entry.
Remove the identified stale definition.
Navigate to the DELETE /api/metering/cards/{id} endpoint within the Swagger UI.
Click Try it out.
Input the ID recorded during Step 1 into the id field.
Click Execute.
Verify the server returns a Response Code of 204 (No Content) or 200 (OK).
Initiate a cost recalculation to initialize the native Pricing Engine.
Navigate to Administration > Global Settings > Cost Settings > Recalculate within the VMware Aria Operations UI.
Allow 24 to 48 hours for the subsequent collection cycle to complete.
Navigate to the VM > Metering tab to verify that CPU, Memory, and Storage metrics are actively populating.