An expression that filters the list of returned backups.
A filter expression consists of a field name, a comparison operator, and a
value for filtering.
The value must be a string, a number, or a boolean. The comparison operator
must be one of: <, >, <=, >=, !=, =, or :.
Colon : is the contains operator. Filter rules are not case sensitive.
The following fields in the
[Backup][google.spanner.admin.database.v1.Backup] are eligible for
filtering:
name
database
state
create_time (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
expire_time (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
version_time (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
size_bytes
backup_schedules
You can combine multiple expressions by enclosing each expression in
parentheses. By default, expressions are combined with AND logic, but
you can specify AND, OR, and NOT logic explicitly.
Here are a few examples:
name:Howl - The backup's name contains the string "howl".
database:prod
The database's name contains the string "prod".
state:CREATING - The backup is pending creation.
state:READY - The backup is fully created and ready for use.
(name:howl) AND (create_time < \"2018-03-28T14:50:00Z\")
The backup name contains the string "howl" and create_time
of the backup is before 2018-03-28T14:50:00Z.
expire_time < \"2018-03-28T14:50:00Z\"
The backup expire_time is before 2018-03-28T14:50:00Z.
size_bytes > 10000000000 - The backup's size is greater than 10GB
backup_schedules:daily
The backup is created from a schedule with "daily" in its name.
If non-empty, page_token should contain a
[next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
from a previous
[ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
to the same parent and with the same filter.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eListBackupsRequest\u003c/code\u003e is 5.0.0-beta05, with multiple previous versions ranging from 5.0.0-beta04 down to 3.5.0 also documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListBackupsRequest\u003c/code\u003e is a class used to request a list of backups from the Google Cloud Spanner Database Administration v1 API, and it implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eListBackupsRequest\u003c/code\u003e offers several properties for filtering, such as \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, and \u003ccode\u003ePageToken\u003c/code\u003e, enabling users to specify the criteria for the backups they want to retrieve.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property within \u003ccode\u003eListBackupsRequest\u003c/code\u003e is required and specifies the instance from which to list backups, using the format \u003ccode\u003eprojects/<project>/instances/<instance>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner Database Administration v1 API - Class ListBackupsRequest (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/5.0.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.6.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.5.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.4.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.3.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.2.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.1.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/4.0.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.15.1/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.14.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.13.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.12.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.11.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.10.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.9.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.8.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.7.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.6.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/3.5.0/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest) \n\n public sealed class ListBackupsRequest : IMessage\u003cListBackupsRequest\u003e, IEquatable\u003cListBackupsRequest\u003e, IDeepCloneable\u003cListBackupsRequest\u003e, IBufferMessage, IMessage, IPageRequest\n\nReference documentation and code samples for the Google Cloud Spanner Database Administration v1 API class ListBackupsRequest.\n\nThe request for\n\\[ListBackups\\]\\[google.spanner.admin.database.v1.DatabaseAdmin.ListBackups\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListBackupsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListBackupsRequest](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListBackupsRequest](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListBackupsRequest](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html), [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.Admin.Database.V1](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.Admin.Database.V1.dll\n\nConstructors\n------------\n\n### ListBackupsRequest()\n\n public ListBackupsRequest()\n\n### ListBackupsRequest(ListBackupsRequest)\n\n public ListBackupsRequest(ListBackupsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nAn expression that filters the list of returned backups.\n\nA filter expression consists of a field name, a comparison operator, and a\nvalue for filtering.\nThe value must be a string, a number, or a boolean. The comparison operator\nmust be one of: `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, or `:`.\nColon `:` is the contains operator. Filter rules are not case sensitive.\n\nThe following fields in the\n\\[Backup\\]\\[google.spanner.admin.database.v1.Backup\\] are eligible for\nfiltering:\n\n- `name`\n- `database`\n- `state`\n- `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)\n- `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)\n- `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)\n- `size_bytes`\n- `backup_schedules`\n\nYou can combine multiple expressions by enclosing each expression in\nparentheses. By default, expressions are combined with AND logic, but\nyou can specify AND, OR, and NOT logic explicitly.\n\nHere are a few examples:\n\n- `name:Howl` - The backup's name contains the string \"howl\".\n- `database:prod`\n - The database's name contains the string \"prod\".\n- `state:CREATING` - The backup is pending creation.\n- `state:READY` - The backup is fully created and ready for use.\n- `(name:howl) AND (create_time \u003c \\\"2018-03-28T14:50:00Z\\\")`\n - The backup name contains the string \"howl\" and `create_time` of the backup is before 2018-03-28T14:50:00Z.\n- `expire_time \u003c \\\"2018-03-28T14:50:00Z\\\"`\n - The backup `expire_time` is before 2018-03-28T14:50:00Z.\n- `size_bytes \u003e 10000000000` - The backup's size is greater than 10GB\n- `backup_schedules:daily`\n - The backup is created from a schedule with \"daily\" in its name.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nNumber of backups to be returned in the response. If 0 or\nless, defaults to the server's maximum allowed page size.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nIf non-empty, `page_token` should contain a\n\\[next_page_token\\]\\[google.spanner.admin.database.v1.ListBackupsResponse.next_page_token\\]\nfrom a previous\n\\[ListBackupsResponse\\]\\[google.spanner.admin.database.v1.ListBackupsResponse\\]\nto the same `parent` and with the same `filter`.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The instance to list backups from. Values are of the\nform `projects/\u003cproject\u003e/instances/\u003cinstance\u003e`.\n\n### ParentAsInstanceName\n\n public InstanceName ParentAsInstanceName { get; set; }\n\nGoogle.Cloud.Spanner.Common.V1.InstanceName-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest#Google_Cloud_Spanner_Admin_Database_V1_ListBackupsRequest_Parent) resource name property."]]