Is it possible to add a test script to postman to loop the call then automatically download the reportAccessSecureLink once it is populated in Postman? This link does not appear instantly in the return body and returns null for about 5-25 min until populated with the link. I have a created a postman flow and would like to automate this to a daily download to a network drive.
This is how the response is initially returned…
When the report is ready…
{
"value": [
{
"executionId": "fefc3037-7a70-4210-9732-223a9b1e4429",
"reportId": "89d5ac38-41bb-44a9-b11e-93c575b7fad1",
"recurrenceInterval": -1,
"recurrenceCount": 1,
"callbackUrl": null,
"callbackMethod": null,
"format": "csv",
"executionStatus": "Completed",
"reportLocation": "https://pxanltx.blob.core.windows.net/programmatic-export-pi/Azure Usage_xxxxxxx.csv",
"reportAccessSecureLink": "https://pxanltx.blob.core.windows.net/programmatic-export-pi/xxxxxxxx",
"reportExpiryTime": null,
"reportGeneratedTime": "2022-07-26T15:04:39Z"
}
],
"nextLink": null,
"totalCount": 1,
"message": null,
"statusCode": 200,
"dataRedacted": false
}