Method: projects.instances.databases.backupSchedules.create

Creates a new backup schedule.

HTTP request

POST https://spanner.googleapis.com/v1/{parent=projects/*/instances/*/databases/*}/backupSchedules

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the database that this backup schedule applies to.

Authorization requires one or more of the following IAM permissions on the specified resource parent:

  • spanner.backupSchedules.create
  • spanner.databases.createBackup

Query parameters

Parameters
backupScheduleId

string

Required. The Id to use for the backup schedule. The backupScheduleId appended to parent forms the full backup schedule name of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backupScheduleId>.

Request body

The request body contains an instance of BackupSchedule.

Response body

If successful, the response body contains a newly created instance of BackupSchedule.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/spanner.admin
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.