OPTIONAL: A GetPolicyOptions object for specifying options to gateways.getIamPolicy.
GetPolicyOptions
Encapsulates settings provided to gateways.getIamPolicy.
JSON representation
{"requestedPolicyVersion": integer}
Fields
requestedPolicyVersion
integer
Optional. The policy format version to be returned.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.
Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.
To learn which resources support conditions in their IAM policies, see the IAM documentation.
[[["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-07-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egateways.getIamPolicy\u003c/code\u003e method requires a JSON request with a \u003ccode\u003eresource\u003c/code\u003e string field to identify the target resource and an optional \u003ccode\u003eoptions\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eoptions\u003c/code\u003e field, represented by \u003ccode\u003eGetPolicyOptions\u003c/code\u003e, allows for specifying settings for \u003ccode\u003egateways.getIamPolicy\u003c/code\u003e, such as the desired policy format version.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetPolicyOptions\u003c/code\u003e has one field: \u003ccode\u003erequestedPolicyVersion\u003c/code\u003e, which is an integer to choose between valid version values 0, 1, and 3.\u003c/p\u003e\n"],["\u003cp\u003eSpecifying version 3 for the \u003ccode\u003erequestedPolicyVersion\u003c/code\u003e is mandatory when conditional bindings are present, while any valid version can be used or the field left unset for policies without them.\u003c/p\u003e\n"]]],[],null,[]]