- 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 /sqlInstance/restorePoints resource collection represents all restore points created for Cloud SQL instances with Veeam Backup for Google Cloud.
Get SQL Instance Restore Points
The HTTP GET request to the sqlInstance/restorePoints endpoint retrieves a list of all restore points created for Cloud SQL instances by Veeam Backup for Google Cloud.
query Parameters
| filter | string Returns only specific items of a resource collection in the response. To learn how to use the |
| orderby | string Specifies the order of items in the response. For more information, see the Veeam Backup for Google Cloud REST API Reference Overview, section Orderby Parameter. |
| offset | integer <int32> Specifies the first N items of a resource collection that will be excluded from the response. |
| limit | integer <int32> Specifies the maximum number of items of a resource collection that will be returned in the response. |
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.
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
- 500
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "creationTimeUtc": "2019-08-24T14:15:22Z",
- "type": "Backup",
- "sqlInstanceProjectId": "string",
- "sqlInstanceName": "string"
}
], - "pagination": {
- "total": 0,
- "count": 0,
- "offset": 0
}
}Get SQL Instance Restore Point Data
The HTTP GET request to the sqlInstance/restorePoints/{restorePointId} endpoint retrieves information on a specific restore point created for a Cloud SQL instance.
path Parameters
| restorePointId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a restore point of a Cloud SQL instance. |
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
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "creationTimeUtc": "2019-08-24T14:15:22Z",
- "type": "Backup",
- "sqlInstanceProjectId": "string",
- "sqlInstanceName": "string"
}Get Protected Cloud SQL Instance Configuration
The HTTP GET request to the sqlInstance/restorePoints/{restorePointId}/sqlInstanceConfig endpoint retrieves information on configuration of a Cloud SQL instance for which a restore point with the specified ID was created.
path Parameters
| restorePointId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a restore point of a Cloud SQL instance. |
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.
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
- 500
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "backupId": "eb7cea43-10b2-42dd-8819-ab9aed37565f",
- "creationTimeUtc": "2019-08-24T14:15:22Z",
- "allowSslOnly": true,
- "machineType": "string",
- "diskType": "SSD",
- "edition": "EditionUnspecified",
- "diskSize": 0,
- "diskAutoResize": true,
- "collation": "string",
- "privateIpEnabled": true,
- "privateNetwork": "string",
- "publicIpEnabled": true,
- "publicNetworks": [
- {
- "name": "string",
- "ipAddress": "string",
- "mask": "string"
}
], - "haveConfigSaved": true
}Perform Cloud SQL Instance Restore
The HTTP POST request to the sqlInstance/restorePoints/{restorePointId}/restoreInstance endpoint performs restore of a Cloud SQL instance from a restore point with the specified ID.
path Parameters
| restorePointId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a restore point of a Cloud SQL instance. |
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
| restoreToOriginal required | boolean Defines whether to restore a Cloud SQL instance to the original location. |
| projectId required | string Specifies the Google Cloud ID assigned to a project that will be used to manage the restored Cloud SQL instance. |
| serviceAccountId required | string <uuid> System ID assigned to a service account in the Veeam Backup for Google Cloud REST API. |
| restoreConfig | boolean Defines whether to restore configuration settings of the Cloud SQL instance that are not specified in the request body. If the False value is specified for the parameter, the instance will be restored with the default configuration settings. |
| locationId | string <uuid> Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a Google Cloud region in which the restored Cloud SQL instance will reside. |
| primaryZoneId | string <uuid> [Applies if you want to specify the target availability zone for the restored Cloud SQL instance, or if you want the instance to operate in multiple zones] Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to the target or primary availability zone. |
| multipleZones | boolean Defines whether the restore Cloud SQL instance will operate in multiple availability zones. |
| secondaryZoneId | string <uuid> [Applies if the True value is set for the |
| instanceName | string Specifies the name for the restored Cloud SQL instance. |
| machineType | string Specifies a machine type for the restored Cloud SQL instance. |
| encryptionKeyId | string <uuid> Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to an encryption key (CMEK) that will be used to encrypt the restored Cloud SQL instance. |
| allowSslOnly | boolean Defines whether only SSL connections will be allowed to the restored Cloud SQL instance. |
| diskType | string (ESqlDiskType) Specifies the type of the persistent disk attached to the backed-up Cloud SQL instance. |
| diskSize | integer <int64> Specifies the storage size for the restored Cloud SQL instance. |
| diskAutoResize | boolean Specifies whether the storage capacity will be increased automatically when it falls below a specified threshold size. |
| privateIpEnabled | boolean Defines whether to enable private IP connectivity for the restored Cloud SQL instance. |
| privateVpcId | string [Applies if you specified the true value for the |
| publicIpEnabled | boolean Defines whether to configure public IP connectivity for the restored Cloud SQL instance. |
Array of objects (SqlAuthorizedNetworkModel) [Applies if you specified the true value for the | |
Array of objects (Label) Specifies Google Cloud flags that must be assigned to the restored databases. | |
Array of objects (Label) Specifies labels that will be assigned to the restored Cloud SQL instance. | |
| reason | string Reason for restoring the Cloud SQL instance. |
| restoreOriginalLabels | boolean Defines whether to restore original labels to the restored Cloud SQL instance. |
| sqlCredentialsId | string <uuid> [Applies only to MySQL instances] Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a Cloud SQL account used by Veeam Backup for Google Cloud to access the Cloud SQL instance that will become the owner of the restored databases. |
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
{- "projectId": "string",
- "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
- "restoreToOriginal": true,
- "restoreConfig": true,
- "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54",
- "primaryZoneId": "c9719722-c4e3-4c76-8d06-f1900615912b",
- "multipleZones": true,
- "secondaryZoneId": "f1e1e55a-d9ba-4d8d-8d85-5e0c6b003fd1",
- "instanceName": "string",
- "machineType": "string",
- "encryptionKeyId": "86aed764-c344-495f-9bff-19e15d04a950",
- "allowSslOnly": true,
- "diskType": "SSD",
- "diskSize": 0,
- "diskAutoResize": true,
- "privateIpEnabled": true,
- "privateVpcId": "string",
- "publicIpEnabled": true,
- "publicNetworks": [
- {
- "name": "string",
- "ipAddress": "string",
- "mask": "string"
}
], - "databaseFlags": [
- {
- "key": "string",
- "value": "string"
}
], - "labels": [
- {
- "key": "string",
- "value": "string"
}
], - "reason": "string",
- "restoreOriginalLabels": true,
- "sqlCredentialsId": "189b87f4-bd48-4a85-bbc1-1e481c8bda47"
}- 200
- 400
- 401
- 403
- 404
- 500
{- "sessionIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "issues": [
- {
- "description": "string",
- "severity": "Error"
}
]
}Perform Cloud SQL Database Recovery
The HTTP POST request to the sqlInstance/restorePoints/restoreDatabases endpoint performs restore of Cloud SQL databases from a restore point with the specified ID.
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
| projectId required | string Specifies the Google Cloud ID assigned to a project that will be used to manage the restored Cloud SQL databases. |
| serviceAccountId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a service account whose permissions will be used to perform the restore operation. |
| instanceName | string [Applies if Cloud SQL databases are restored to a new location, or with different settings] Specifies a name of the Cloud SQL instance that will become the owner of the restored databases. |
| sqlCredentialsId | string <uuid> [Applies only to PostgreSQL databases] Specifies the system ID assigned in the Veeam Backup for Google Cloud REST API to a Cloud SQL account used by Veeam Backup for Google Cloud to access the Cloud SQL instance that will become the owner of the restored databases. |
Array of objects (SqlDatabaseRestoreSpec) Information on each Cloud SQL database that must be restored. | |
| reason | string Reason for restoring Cloud SQL databases. |
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
{- "projectId": "string",
- "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
- "instanceName": "string",
- "sqlCredentialsId": "189b87f4-bd48-4a85-bbc1-1e481c8bda47",
- "databases": [
- {
- "databaseName": "string",
- "restorePointId": "8c843d10-6d0f-4abe-b898-e1ba18b94f68"
}
], - "reason": "string"
}- 200
- 400
- 401
- 403
- 404
- 500
{- "sessionIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "issues": [
- {
- "description": "string",
- "severity": "Error"
}
]
}