public sealed class GetPolicyRequest : IMessage<GetPolicyRequest>, IEquatable<GetPolicyRequest>, IDeepCloneable<GetPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class GetPolicyRequest.
Required. The resource name of the policy to retrieve. Format:
policies/{attachment_point}/denypolicies/{policy_id}
Use the URL-encoded full resource name, which means that the forward-slash
character, /, must be written as %2F. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy.
For organizations and folders, use the numeric ID in the full resource
name. For projects, you can use the alphanumeric or the numeric ID.
[[["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\u003eGetPolicyRequest\u003c/code\u003e class is part of the Google Cloud Identity and Access Management (IAM) v2 API, and it is the request message for retrieving a policy.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, providing functionalities such as deep cloning and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetPolicyRequest\u003c/code\u003e has two constructors: a default one and one that accepts another \u003ccode\u003eGetPolicyRequest\u003c/code\u003e object for cloning purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property of \u003ccode\u003eGetPolicyRequest\u003c/code\u003e is a required string that holds the resource name of the policy to be retrieved, following a specific format including URL-encoding for forward slashes.\u003c/p\u003e\n"],["\u003cp\u003eVersion 1.3.0 is the latest available version, with versions 1.2.0, 1.1.0, and 1.0.0 also being documented for reference.\u003c/p\u003e\n"]]],[],null,[]]