Calculate Estimated Cost of Backup Policy
You can calculate the estimated monthly cost for protecting Azure resources.
Request
To calculate the estimated cost of protected Azure resources, send the HTTP POST request to the /costEstimation endpoint.
HTTP Request
POST https://<hostname>/api/v2/costEstimation |
Query Parameters
To control the amount and order of data in the response, you can use Offset, Limit and the following query parameters:
Query Parameter | Value | Description |
---|---|---|
VirtualMachineNameFilter | string | Returns only estimated cost of protecting an Azure VM with the specified name. For more information, see Filter Parameters. |
Request Headers
The request contains the following headers.
Header | Required | 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. |
Request Body
To calculate the estimated monthly cost for the protected Azure resources, send the parameters of the CostEstimationPolicyFromClientV2 schema in the request body.
Set the parameter value in the following format:
{ "priority": 0, "tenantId": "string", "regions": [ { "regionId": "string" } ], "selectedItems": { "subscriptions": [ { "subscriptionId": "string" } ], "tags": [ { "name": "string", "value": "string" } ], "resourceGroups": [ { "id": "string" } ], "virtualMachines": [ { "id": "string" } ] }, "excludedItems": { "virtualMachines": [ { "id": "string" } ] }, "name": "string", "description": "string", "retrySettings": { "retryCount": 0 }, "policyNotificationSettings": { "recipient": "admin@tech.local", "notifyOnSuccess": true, "notifyOnWarning": true, "notifyOnFailure": true }, "isEnabled": true, "backupType": "AllSubscriptions", "snapshotSettings": { "additionalTags": [ { "name": "string", "value": "string" } ], "copyOriginalTags": true, "applicationAwareSnapshot": true, "userScripts": { "windows": { "scriptsEnabled": true, "preScriptPath": "string", "preScriptArguments": "string", "postScriptPath": "string", "postScriptArguments": "string", "repositorySnapshotsOnly": true, "ignoreExitCodes": true, "ignoreMissingScripts": true }, "linux": { "scriptsEnabled": true, "preScriptPath": "string", "preScriptArguments": "string", "postScriptPath": "string", "postScriptArguments": "string", "repositorySnapshotsOnly": true, "ignoreExitCodes": true, "ignoreMissingScripts": true } } }, "dailySchedule": { "dailyType": "Everyday", "selectedDays": [ "Sunday" ], "runsPerHour": 0, "snapshotSchedule": { "hours": [ 0 ], "snapshotsToKeep": 0 }, "backupSchedule": { "hours": [ 0 ], "retention": { "timeRetentionDuration": 0, "retentionDurationType": "Days" }, "targetRepositoryId": "string" } }, "weeklySchedule": { "startTime": 0, "snapshotSchedule": { "selectedDays": [ "Sunday" ], "snapshotsToKeep": 0 }, "backupSchedule": { "selectedDays": [ "Sunday" ], "retention": { "timeRetentionDuration": 0, "retentionDurationType": "Days" }, "targetRepositoryId": "string" } }, "monthlySchedule": { "startTime": 0, "type": "First", "dayOfWeek": "Sunday", "dayOfMonth": 0, "monthlyLastDay": true, "snapshotSchedule": { "selectedMonths": [ "January" ], "snapshotsToKeep": 0 }, "backupSchedule": { "selectedMonths": [ "January" ], "retention": { "timeRetentionDuration": 0, "retentionDurationType": "Days" }, "targetRepositoryId": "string" } }, "yearlySchedule": { "startTime": 0, "month": "January", "type": "First", "dayOfWeek": "Sunday", "dayOfMonth": 0, "yearlyLastDay": true, "retentionYearsCount": 0, "targetRepositoryId": "string" } } |
Response
The server returns the following response to the client.
Response Codes
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 Microsoft Azure returns estimated monthly cost of the backup policy with the specified settings. The CostEstimationsPage schema is used for the resource representation.
Example
The following request calculates estimated monthly cost for a backup policy with the following settings.
|