Optional. Filter string, adhering to the rules in
List-operation
filtering. List
only secret versions matching the filter. If filter is empty, all secret
versions are listed.
Optional. The maximum number of results to be returned in a single page. If
set to 0, the server decides the number of results to return. If the
number is greater than 25000, it is capped at 25000.
Required. The resource name of the
[Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the
[SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list,
in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eListSecretVersionsRequest\u003c/code\u003e class is a request message for the \u003ccode\u003eSecretManagerService.ListSecretVersions\u003c/code\u003e method within the Secret Manager v1beta2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows filtering of secret versions via the \u003ccode\u003eFilter\u003c/code\u003e property, which follows specific filtering rules.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePageSize\u003c/code\u003e property determines the number of results returned per page, with a maximum limit of 25000.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eParent\u003c/code\u003e property indicates the resource name of the associated secret to list secret versions for, and can be viewed with the type \u003ccode\u003eSecretName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePageToken\u003c/code\u003e property enables pagination, allowing users to retrieve subsequent pages of results using a token obtained from the previous response.\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1beta2 API - Class ListSecretVersionsRequest (1.0.0-beta03)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta03 (latest)](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/1.0.0-beta02/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest) \n\n public sealed class ListSecretVersionsRequest : IPageRequest, IMessage\u003cListSecretVersionsRequest\u003e, IEquatable\u003cListSecretVersionsRequest\u003e, IDeepCloneable\u003cListSecretVersionsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1beta2 API class ListSecretVersionsRequest.\n\nRequest message for\n\\[SecretManagerService.ListSecretVersions\\]\\[google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListSecretVersionsRequest \n\nImplements\n----------\n\n[IPageRequest](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/PagedEnumerableCommon.cs), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListSecretVersionsRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSecretVersionsRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSecretVersionsRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest), [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) \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.SecretManager.V1Beta2](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecretManager.V1Beta2.dll\n\nConstructors\n------------\n\n### ListSecretVersionsRequest()\n\n public ListSecretVersionsRequest()\n\n### ListSecretVersionsRequest(ListSecretVersionsRequest)\n\n public ListSecretVersionsRequest(ListSecretVersionsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nOptional. Filter string, adhering to the rules in\n[List-operation\nfiltering](https://cloud.google.com/secret-manager/docs/filtering). List\nonly secret versions matching the filter. If filter is empty, all secret\nversions are listed.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nOptional. The maximum number of results to be returned in a single page. If\nset to 0, the server decides the number of results to return. If the\nnumber is greater than 25000, it is capped at 25000.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nOptional. Pagination token, returned earlier via\nListSecretVersionsResponse.next_page_token\\]\\[\\].\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The resource name of the\n\\[Secret\\]\\[google.cloud.secretmanager.v1beta2.Secret\\] associated with the\n\\[SecretVersions\\]\\[google.cloud.secretmanager.v1beta2.SecretVersion\\] to list,\nin the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.\n\n### ParentAsSecretName\n\n public SecretName ParentAsSecretName { get; set; }\n\n[SecretName](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.SecretName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest#Google_Cloud_SecretManager_V1Beta2_ListSecretVersionsRequest_Parent) resource name property."]]