POST /v1/projects/{project}/instances/{instance}/backupRuns
Changed onCreates a new backup run on demand.
Request
- Base URLhttps://sqladmin.googleapis.com
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/sqlservice.adminAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/sqlservice.admin
Path parameters
Project ID of the project that contains the instance.
Cloud SQL instance ID. This does not include the project ID.
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Request body
A BackupRun resource.
Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
Output only. The instance database version at the time this backup was made.
The description of this run, only applicable to on-demand backups.
Disk encryption configuration for an instance.
Disk encryption status for an instance.
The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Database instance operation error.
The identifier for this backup run. Unique only for a specific Cloud SQL instance.
Name of the database instance.
This is always sql#backupRun.
Location of the backups.
Output only. The maximum chargeable bytes for the backup.
The URI of this resource.
The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
The status of this run.
Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Response
Successful response
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Acquire SSRS lease context.
An Admin API warning message.
Backup context.
The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Database instance operation errors list wrapper.
Database instance export context.
Database instance import context.
The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
This is always sql#operation.
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
The type of the operation. Valid values are: * CREATE * DELETE * UPDATE * RESTART * IMPORT * EXPORT * BACKUP_VOLUME * RESTORE_VOLUME * CREATE_USER * DELETE_USER * CREATE_DATABASE * DELETE_DATABASE
Pre-check major version upgrade context.
The URI of this resource.
The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
The context for the StartWorkloadCapture operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
The context for the StartWorkloadReplay operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
The status of an operation.
The context for the StopWorkloadCapture operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
The context for the StopWorkloadReplay operation, which represents an operation that stops an active workload replay on a target Cloud SQL replay instance.
The sub operation type based on the operation type.
Name of the resource on which this operation runs.
The project ID of the target instance related to this operation.
The email address of the user who initiated this operation.
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/sqlservice.adminwas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info