Export Estimation Cost Report
You can export the estimation cost report to a CSV or an XML file and download the file. To specify the required type of the file, use the Accept request header.
Request
To export the report, send the HTTP POST request to the /costEstimation/export endpoint.
HTTP Request
POST https://<hostname>:<port>/api/v1/costEstimation/export |
Request Headers
The request contains the following headers.
Header | Required/Optional | Value | Description |
---|---|---|---|
Authorization | Required | Bearer <Access-Token> | Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format. |
Content-Type | Required | application/json | Identifies a media type that is used in the body of the request. |
x-api-version | Required | 1.0-rev0 | Specifies the current revision of the Veeam Backup for AWS REST API. |
Required |
| Specifies a media type of representation of the exported data. The default value is text/csv media type. |
Request Body
To calculate the estimated monthly cost for the backup policy, send the policy settings in the request body. Use the PolicySpec schema.
Set the parameter value in the following format:
{ "snapshotSettings": { "additionalTags": [ { "key": "string", "value": "string" } ], "copyTagsFromVolumeEnabled": true, "tryCreateVSSSnapshot": true }, "replicaSettings": { "mapping": [ { "sourceRegionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "targetRegionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "targetAmazonAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "encryptionKey": "string" } ], "additionalTags": [ { "key": "string", "value": "string" } ], "copyTagsFromVolumeEnabled": true }, "backupSettings": { "targetRepositoryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }, "regionIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ], "selectedItems": { "virtualMachineIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ], "tagIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ] }, "excludedItems": { "virtualMachineIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ], "tagIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6" ] }, "scheduleSettings": { "dailyScheduleEnabled": true, "dailySchedule": { "kind": "Everyday", "runsPerHour": 0, "days": [ "Sunday" ], "snapshotOptions": { "retention": { "count": 0 }, "schedule": { "hours": [ true ] } }, "backupOptions": { "retention": { "type": "Days", "count": 0 }, "schedule": { "hours": [ true ] } }, "replicaOptions": { "retention": { "count": 0 }, "schedule": { "hours": [ true ] } } }, "weeklyScheduleEnabled": true, "weeklySchedule": { "timeLocal": "2020-05-29T10:12:06.530Z", "snapshotOptions": { "retention": { "count": 0 }, "schedule": { "days": [ "Sunday" ] } }, "backupOptions": { "retention": { "type": "Days", "count": 0 }, "schedule": { "days": [ "Sunday" ] } }, "replicaOptions": { "retention": { "count": 0 }, "schedule": { "days": [ "Sunday" ] } } }, "monthlyScheduleEnabled": true, "monthlySchedule": { "timeLocal": "2020-05-29T10:12:06.530Z", "dayNumberInMonth": "First", "dayOfWeek": "Sunday", "dayOfMonth": 0, "snapshotOptions": { "retention": { "count": 0 }, "schedule": { "months": [ "January" ] } }, "backupOptions": { "retention": { "type": "Days", "count": 0 }, "schedule": { "months": [ "January" ] } }, "replicaOptions": { "retention": { "count": 0 }, "schedule": { "months": [ "January" ] } } }, "yearlyScheduleEnabled": true, "yearlySchedule": { "timeLocal": "2020-05-29T10:12:06.530Z", "dayNumberInMonth": "First", "dayOfWeek": "Sunday", "dayOfMonth": 0, "month": "January", "retention": { "count": 0, "type": "Years" } } }, "name": "string", "description": "string", "amazonAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "retrySettings": { "retryTimes": 0 }, "policyNotificationSettings": { "recipient": "string", "notifyOnSuccess": true, "notifyOnWarning": true, "notifyOnFailure": true }, "backupType": "AllItems" } |
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Value | Description |
---|---|---|
Content-Length | integer | Identifies the length of the response body message, in bytes. |
Content-Type |
| Identifies the media type of the response body message. |
Response body
In the response body, Veeam Backup for AWS returns a link to download the file with the exported estimation cost report.
Example
The following request exports the estimation cost report for a backup policy with the following settings.
|