list_roles
Retrieve IAM roles (predefined or custom) for Google Cloud Platform. Specify a project ID to list custom roles; skip it to view predefined roles. Streamlines role management and access control.
Instructions
List IAM roles (predefined or custom).
Args:
project_id: Optional project ID for listing custom roles. If not provided, lists predefined roles.
Returns:
List of IAM roles
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | No |
Input Schema (JSON Schema)
{
"properties": {
"project_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Project Id"
}
},
"title": "list_rolesArguments",
"type": "object"
}