To successfully fetch these metric details, you must first generate an API authorization bearer token and then query the targeted deployment endpoint.
Log into your VCF Automation UI via Google Chrome, Mozilla Firefox, or Microsoft Edge.
Press F12 (or right-click anywhere on the page and select Inspect) to open the Developer Tools pane.
Navigate to the Network tab.
Perform an action within the UI (such as clicking on a project, viewing a deployment, or refreshing the catalog) to trigger background network traffic.
In the Network tab's filter/search box, type api or forms to isolate API communication.
Click on any captured API row item (for example, an execution or configuration fetch request).
Go to the Headers tab inside the request details sub-pane.
Scroll down to the Request Headers section.
Locate the Authorization header.
Once you have copied the token, configure Postman to query the deployment record.
Open a second request tab in Postman.
Set the HTTP method dropdown to GET.
Enter the target deployment resource URL, replacing <deploymentId> with your specific deployment tracking ID:
https://<VCFA_FQDN>/deployment/api/deployments/<deploymentId>
Navigate to the Authorization tab directly below the URL bar:
Set the Type dropdown to Bearer Token.
Paste the copied access token string into the Token field on the right side.
Click Send.
Review the JSON payload returned in the Postman response body pane to locate the following tracking timestamps:
createdAt: The exact date and time the resource provisioning task was initialized (Start Time).
lastUpdatedAt: The exact date and time the resource provisioning task achieved its final resolved state (End Time).
Subtract the createdAt timestamp value from the lastUpdatedAt timestamp value within your environment metric scripts to determine the total duration taken to finish the deployment workflow.