public sealed class GetIamPolicyRequest : IMessage<GetIamPolicyRequest>, IEquatable<GetIamPolicyRequest>, IDeepCloneable<GetIamPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class GetIamPolicyRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetIamPolicyRequest\u003c/code\u003e class is part of the Google Cloud Identity and Access Management (IAM) v1 API, serving as the request message for the \u003ccode\u003eGetIamPolicy\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class has multiple available versions, with 3.4.0 being the latest and versions available back to 2.2.0, all of which are documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetIamPolicyRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties for \u003ccode\u003eOptions\u003c/code\u003e (of type \u003ccode\u003eGetPolicyOptions\u003c/code\u003e) to specify retrieval options, and \u003ccode\u003eResource\u003c/code\u003e (of type string) which is required and indicates which resource to retrieve a policy for.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors that allow creating a new \u003ccode\u003eGetIamPolicyRequest\u003c/code\u003e object, or one based off of another, existing \u003ccode\u003eGetIamPolicyRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Identity and Access Management (IAM) v1 API - Class GetIamPolicyRequest (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.3.0/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.2.0/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.1.0/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/3.0.0/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/2.4.0/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/2.3.0/Google.Cloud.Iam.V1.GetIamPolicyRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Iam.V1/2.2.0/Google.Cloud.Iam.V1.GetIamPolicyRequest) \n\n public sealed class GetIamPolicyRequest : IMessage\u003cGetIamPolicyRequest\u003e, IEquatable\u003cGetIamPolicyRequest\u003e, IDeepCloneable\u003cGetIamPolicyRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class GetIamPolicyRequest.\n\nRequest message for `GetIamPolicy` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetIamPolicyRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetIamPolicyRequest](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetIamPolicyRequest](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetIamPolicyRequest](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest), [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.Iam.V1](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iam.V1.dll\n\nConstructors\n------------\n\n### GetIamPolicyRequest()\n\n public GetIamPolicyRequest()\n\n### GetIamPolicyRequest(GetIamPolicyRequest)\n\n public GetIamPolicyRequest(GetIamPolicyRequest other)\n\nProperties\n----------\n\n### Options\n\n public GetPolicyOptions Options { get; set; }\n\nOPTIONAL: A `GetPolicyOptions` object for specifying options to\n`GetIamPolicy`.\n\n### Resource\n\n public string Resource { get; set; }\n\nREQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.\n\n### ResourceAsResourceName\n\n public IResourceName ResourceAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Resource](/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest#Google_Cloud_Iam_V1_GetIamPolicyRequest_Resource) resource name property."]]