- About Veeam Backup for Google Cloud REST API
- Overview
- Authorization
- Cloud Infrastructure
- getGet Infrastructure Objects
- postAdd Folder
- getGet Service Account Permissions To Folder
- putModify Service Account Permissions To Folder
- delRemove Folder
- postAdd Project
- getGet Service Account Permissions To Project
- putModify Service Account Permissions To Project
- delRemove Project
- postGenerate Permissions Script
- getGet Subfolders
- Cloud Spanner Instances
- Cloud Spanner Instance Backup Policies
- getGet Collection of Backup Policies
- postCreate Backup Policy
- postGenerate Permissions Script
- getGet Backup Policy Data
- putModify Backup Policy
- delDelete Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postEnable Backup Policy
- postDisable Backup Policy
- postSet Backup Policy Priority
- postCalculate Estimated Cost for Backup Policy
- postCalculate Estimated Cost for Modified Backup Policy
- getGet Backup Policy Status
- getGet Backup Policy Schedule
- getGet Backup Policy Sessions Data
- getGet Google Cloud Resources Protected by Backup Policy
- Cloud Spanner Instance Restore Points
- Cloud SQL Accounts
- Configuration Backup
- postCreate Configuration Backup
- postEnable Configuration Backup Schedule
- postDisable Configuration Backup Schedule
- getGet Configuration Backup Settings
- putModify Configuration Backup Settings
- getGet Configuration Backup Restore Points
- getGet Configuration Backup Restore Point Data
- delRemove Configuration Backup Restore Point
- postImport Configuration Backup File
- postStart Configuration Backup Export
- postCheck Status of Configuration Backup Export
- postDownload Configuration Backup File
- postCheck Imported Backup File
- General Settings
- Google Cloud Regions
- Licensing
- Networks
- Overview
- Product Version
- Projects
- getGet Collection of Projects
- postAdd Project
- getGet Project Data
- putModify Project
- delRemove Project
- getGet Collection of CMEKs for Project
- getGet Collection of CMEKs for Region
- getGet Collection of Regions
- getGet Instance Types Available in Regions
- getGet Region Availability Zones
- getGet Instance Types Available in Availability Zone
- getGet Cloud SQL Instance Types Available in Availability Zone
- getGet Cloud Spanner Instance Configurations
- getGet Collection of Service Accounts for Project
- postCreate HMAC Key
- getGet Collection of HMAC Keys
- postAdd Existing HMAC Key
- postGenerate Permissions Script
- Repositories
- Security Certificates
- Service
- Service Accounts
- Sessions
- SMTP Accounts
- SQL Backup Policies
- getGet Collection of Backup Policies
- postCreate Backup Policy
- postGenerate Permissions Script
- getGet Backup Policy Data
- putModify Backup Policy
- delDelete Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postEnable Backup Policy
- postDisable Backup Policy
- postSet Backup Policy Priority
- postCalculate Estimated Cost for Backup Policy
- postCalculate Estimated Cost for Modified Backup Policy
- getGet Backup Policy Status
- getGet Backup Policy Schedule
- getGet Backup Policy Sessions Data
- getGet Google Cloud Resources Protected by Backup Policy
- SQL Instances
- getGet Collection of Cloud SQL Instances
- getGet Cloud SQL Instance Data
- getGet Cloud SQL Instance Restore Points
- delRemove Cloud SQL Instance Restore Points
- getGet Collection of Cloud SQL Instance Sessions
- postCreate Snapshot of Cloud SQL Instance
- getGet Collection of Cloud SQL Databases
- postInfrastructure Rescan for Cloud SQL Instances
- SQL Restore Points
- Storage Buckets
- System Logs
- System Notifications
- User Accounts
- VM Instances
- VM Instance Backup Policies
- getGet Collection of Backup Policies
- postCreate Backup Policy
- postGenerate Permissions Script
- getGet Backup Policy Data
- putModify Backup Policy
- delDelete Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postEnable Backup Policy
- postDisable Backup Policy
- postSet Backup Policy Priority
- postCalculate Estimated Cost of Backup Policy
- postCalculate Estimated Cost for Modified Backup Policy
- getGet Backup Policy Status
- getGet Backup Policy Schedule
- getGet Backup Policy Sessions Data
- getGet Google Cloud Resources Protected by Backup Policy
- VM Instance Restore Points
- Workers
- getGet Worker Custom Labels
- putModify Worker Custom Labels
- getGet Project Selected for Worker Instances
- putChange Project for Worker Instances
- getGet Worker Configurations
- postAdd Worker Configuration
- getGet Worker Configuration Data
- putModify Worker Configuration
- delRemove Worker Configuration
- getGet Worker Profiles
- postAdd Worker Profiles
- getGet Default Worker Profiles
- getGet Worker Profiles for Region
- putModify Worker Profiles
- delRemove Worker Profiles
The /configuration resource collection represents global retention and notification settings configured in Veeam Backup for Google Cloud.
Get Global Retention Settings
The HTTP GET request to the /configuration/retention endpoint retrieves global retention settings configured in Veeam Backup for Google Cloud.
header Parameters
| x-api-version required | string Default: 1.4-rev0 Specifies the current revision of the Veeam Backup for Google Cloud REST API. |
OK
Bad Request. The request body is malformed, incomplete or otherwise invalid
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending a request does not have adequate privileges to access one or more objects specified in the request.
Not Found. One or more resources specified in the request could not be found in the specified resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 400
- 401
- 403
- 404
- 500
{- "lingeringSnapshotRetentionDisabled": true,
- "lingeringSnapshotRetention": {
- "type": "Days",
- "count": 0
}, - "defaultSnapshotRetention": 0,
- "sessionsRetention": {
- "type": "Days",
- "count": 0
}, - "keepAllSessions": true
}Configure Global Retention Settings
The HTTP POST request to the /configuration/retention endpoint specifies global retention settings for Veeam Backup for Google Cloud.
header Parameters
| x-api-version required | string Default: 1.4-rev0 Specifies the current revision of the Veeam Backup for Google Cloud REST API. |
Request Body schema: application/jsonrequired
| lingeringSnapshotRetentionDisabled required | boolean Defines whether to keep snapshots of VM instances that are no longer protected. By default, Veeam Backup for Google Cloud does not remove snapshots for instances that are no longer processed by a backup policy. |
| keepAllSessions required | boolean Defines whether to keep all session records in the configuration database. Veeam Backup for Google Cloud removes session records from the database after 90 days. |
| defaultSnapshotRetention required | integer <int32> >= 0 Default number of snapshots to keep. |
required | object (PeriodicRetentionOptionsModel) Number of days or months to keep session records or snapshots of unprotected instances. The minimum possible value for snapshots — 90 days or 3 months, for session records — 1 day. |
object (PeriodicRetentionOptionsModel) Number of days or months to keep session records or snapshots of unprotected instances. The minimum possible value for snapshots — 90 days or 3 months, for session records — 1 day. |
OK
Bad Request. The request body is malformed, incomplete or otherwise invalid
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending a request does not have adequate privileges to access one or more objects specified in the request.
Not Found. One or more resources specified in the request could not be found in the specified resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "lingeringSnapshotRetentionDisabled": true,
- "lingeringSnapshotRetention": {
- "type": "Days",
- "count": 0
}, - "defaultSnapshotRetention": 0,
- "sessionsRetention": {
- "type": "Days",
- "count": 0
}, - "keepAllSessions": true
}- 200
- 400
- 401
- 403
- 404
- 500
{- "retentionSettings": {
- "lingeringSnapshotRetentionDisabled": true,
- "lingeringSnapshotRetention": {
- "type": "Days",
- "count": 0
}, - "defaultSnapshotRetention": 0,
- "sessionsRetention": {
- "type": "Days",
- "count": 0
}, - "keepAllSessions": true
}, - "issues": [
- {
- "description": "string",
- "severity": "Error"
}
]
}Reset Global Retention Settings
The HTTP POST request to the /configuration/retention/resetToDefault endpoint resets global retention settings configured in Veeam Backup for Google Cloud to default values.
header Parameters
| x-api-version required | string Default: 1.4-rev0 Specifies the current revision of the Veeam Backup for Google Cloud REST API. |
OK
Bad Request. The request body is malformed, incomplete or otherwise invalid
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending a request does not have adequate privileges to access one or more objects specified in the request.
Not Found. One or more resources specified in the request could not be found in the specified resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 400
- 401
- 403
- 404
- 500
{- "retentionSettings": {
- "lingeringSnapshotRetentionDisabled": true,
- "lingeringSnapshotRetention": {
- "type": "Days",
- "count": 0
}, - "defaultSnapshotRetention": 0,
- "sessionsRetention": {
- "type": "Days",
- "count": 0
}, - "keepAllSessions": true
}, - "issues": [
- {
- "description": "string",
- "severity": "Error"
}
]
}