Method: projects.locations.services.getIamPolicy

Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.

HTTP request

GET https://run.googleapis.com/v2/{resource}:getIamPolicy

Path parameters

Parameters
resource

string

REQUIRED: The resource for which the policy is being requested. SeeResource names for the appropriate value for this field.

Query parameters

Parameters
options

object (GetPolicyOptions)

OPTIONAL: AGetPolicyOptions object for specifying options toservices.getIamPolicy.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance ofPolicy.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see theAuthentication Overview.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-09 UTC.