---
title: "GET /v1/{+resource}:getIamPolicy"
method: GET
path: "/v1/{+resource}:getIamPolicy"
tags: ["projects"]
---

# GET /v1/{+resource}:getIamPolicy

`GET /v1/{+resource}:getIamPolicy`

Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.

## Path parameters

- `resource` string, required

## Query parameters

- `options.requestedPolicyVersion` integer

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/secretmanager.md) · [All operations](https://skmtc.dev/google/apis/secretmanager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/secretmanager/revisions/7d97d4a1afab/schema)
