Method: projects.locations.reservations.assignments.getIamPolicy
Gets the access control policy for a resource. May return:
- A
NOT_FOUND
error if the resource doesn't exist or you don't have the permission to view it.
- An empty policy if the resource exists but doesn't have a set policy.
Supported resources are: - Reservations - ReservationAssignments
To call this method, you must have the following Google IAM permissions:
bigqueryreservation.reservations.getIamPolicy
to get policies on reservations.
HTTP request
GET https://bigqueryreservation.googleapis.com/v1/{resource=projects/*/locations/*/reservations/*/assignments/*}:getIamPolicy
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
resource |
string
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
|
Query parameters
Parameters |
options |
object (GetPolicyOptions )
OPTIONAL: A GetPolicyOptions object for specifying options to assignments.getIamPolicy .
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Policy
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
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 2025-07-02 UTC.
[[["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-07-02 UTC."],[],[],null,["# Method: projects.locations.reservations.assignments.getIamPolicy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets the access control policy for a resource. May return:\n\n- A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view it.\n- An empty policy if the resource exists but doesn't have a set policy.\n\nSupported resources are: - Reservations - ReservationAssignments\n\nTo call this method, you must have the following Google IAM permissions:\n\n- `bigqueryreservation.reservations.getIamPolicy` to get policies on reservations.\n\n### HTTP request\n\n`GET https://bigqueryreservation.googleapis.com/v1/{resource=projects/*/locations/*/reservations/*/assignments/*}:getIamPolicy`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Policy](/bigquery/docs/reference/reservations/rest/v1/Policy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/bigquery`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]