GetIamPolicyRequest
Stay organized with collections
Save and categorize content based on your preferences.
Request message for locations.getIamPolicy
method.
JSON representation |
{
"resource": string,
"options": {
object (GetPolicyOptions )
}
} |
Fields |
resource |
string
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
|
options |
object (GetPolicyOptions )
OPTIONAL: A GetPolicyOptions object for specifying options to locations.getIamPolicy . This field is only used by Cloud IAM.
|
GetPolicyOptions
Encapsulates settings provided to locations.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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-12-17 UTC.
[[["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 2019-12-17 UTC."],[[["The `locations.getIamPolicy` method requires a JSON request message with `resource` (a string specifying the target resource) and an optional `options` object."],["The `options` field, which uses the `GetPolicyOptions` type, allows for specifying options for `locations.getIamPolicy` and is only relevant for Cloud IAM."],["`GetPolicyOptions` has one field, `requestedPolicyVersion`, which is an integer representing the desired policy version (0, 1, or 3) and is mandatory for policies with conditional bindings."],["The `resource` field is a required string in the `locations.getIamPolicy` request message, defining the specific resource for which the policy is requested."]]],[]]