Requires authorization
Lists all backup runs associated with a Cloud SQL instance. Try it now .
Backup runs are returned in reverse chronological order by enqueued time ( enqueuedTime ). Use the Instances resource get method to find the backupConfiguration ID for the instance.
Request
HTTP request
GET https://www.googleapis.com/sql/v1beta3/projects/project/instances/instance/backupRuns
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
instance
|
string
|
Cloud SQL instance ID. This does not include the project ID. |
project
|
string
|
Project ID of the project that contains the instance. |
Required query parameters | ||
backupConfiguration
|
string
|
Identifier for the backup configuration. This gets generated automatically when a backup configuration is created. |
Optional query parameters | ||
maxResults
|
integer
|
Maximum number of backup runs per response. |
pageToken
|
string
|
A previously-returned page token representing part of the larger set of results to view. |
Authorization
This request requires authorization with the following scope ( read more about authentication and authorization ).
Scope |
---|
https://www.googleapis.com/auth/sqlservice.admin
|
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "sql#backupRunsList", "nextPageToken": string, "items": [ backupRuns Resource ] }
Property name | Value | Description | Notes |
---|---|---|---|
kind
|
string
|
This is always
sql#backupRunsList
.
|
|
nextPageToken
|
string
|
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. | |
items[]
|
list
|
A list of backup runs in reverse chronological order of the enqueued time. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.