Optional. Filter string, adhering to the rules in
List-operation
filtering. List
only secrets matching the filter. If filter is empty, all secrets 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.
Optional. Pagination token, returned earlier via
[ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1beta2.ListSecretsResponse.next_page_token].
Required. The resource name of the project associated with the
[Secrets][google.cloud.secretmanager.v1beta2.Secret], in the format
projects/* or projects/*/locations/*
[[["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\u003eThis documentation is for the \u003ccode\u003eListSecretsRequest\u003c/code\u003e class within the Secret Manager v1beta2 API, used to request a list of secrets.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListSecretsRequest\u003c/code\u003e implements several interfaces including \u003ccode\u003eIPageRequest\u003c/code\u003e, \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for paged requests, message handling, equality comparisons, deep cloning, and buffer message support.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, \u003ccode\u003ePageToken\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e to allow filtering, pagination, and specifying the project or location to list secrets from, with the \u003ccode\u003eParent\u003c/code\u003e property being required.\u003c/p\u003e\n"],["\u003cp\u003eThere are different ways to represent \u003ccode\u003eParent\u003c/code\u003e such as \u003ccode\u003eParentAsLocationName\u003c/code\u003e, \u003ccode\u003eParentAsProjectName\u003c/code\u003e and \u003ccode\u003eParentAsResourceName\u003c/code\u003e, which are typed views over the same resource name property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListSecretsRequest\u003c/code\u003e class includes two constructors: a default constructor and one that takes another \u003ccode\u003eListSecretsRequest\u003c/code\u003e object for initialization.\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1beta2 API - Class ListSecretsRequest (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.ListSecretsRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/1.0.0-beta02/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest) \n\n public sealed class ListSecretsRequest : IPageRequest, IMessage\u003cListSecretsRequest\u003e, IEquatable\u003cListSecretsRequest\u003e, IDeepCloneable\u003cListSecretsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1beta2 API class ListSecretsRequest.\n\nRequest message for\n\\[SecretManagerService.ListSecrets\\]\\[google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListSecretsRequest \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)[ListSecretsRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSecretsRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSecretsRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest), [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### ListSecretsRequest()\n\n public ListSecretsRequest()\n\n### ListSecretsRequest(ListSecretsRequest)\n\n public ListSecretsRequest(ListSecretsRequest 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 secrets matching the filter. If filter is empty, all secrets are\nlisted.\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\n\\[ListSecretsResponse.next_page_token\\]\\[google.cloud.secretmanager.v1beta2.ListSecretsResponse.next_page_token\\].\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The resource name of the project associated with the\n\\[Secrets\\]\\[google.cloud.secretmanager.v1beta2.Secret\\], in the format\n`projects/*` or `projects/*/locations/*`\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest#Google_Cloud_SecretManager_V1Beta2_ListSecretsRequest_Parent) resource name property.\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/ProjectName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest#Google_Cloud_SecretManager_V1Beta2_ListSecretsRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/IResourceName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest#Google_Cloud_SecretManager_V1Beta2_ListSecretsRequest_Parent) resource name property."]]