- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Examples
- Try it!
Gets the IAM policy for a given resource.
HTTP request
GET https://artifactregistry.googleapis.com/v1beta2/{resource=projects/*/locations/*/repositories/*}:getIamPolicy
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
resource |
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Query parameters
Parameters | |
---|---|
options |
OPTIONAL: A |
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/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
For more information, see the Authentication Overview.