gcp-iam-get-project-policy
Retrieve the IAM policy for a Google Cloud project to manage access controls and permissions, specifying the project ID and policy format version as needed.
Instructions
Retrieve the IAM policy for a Google Cloud project
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project | No | Project ID (defaults to current project) | |
requestedPolicyVersion | No | The policy format version (1, 2, or 3) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"project": {
"description": "Project ID (defaults to current project)",
"type": "string"
},
"requestedPolicyVersion": {
"default": 3,
"description": "The policy format version (1, 2, or 3)",
"maximum": 3,
"minimum": 1,
"type": "number"
}
},
"type": "object"
}