google_iam_testable_permissions

Retrieve a list of testable permissions for a resource. Testable permissions mean the permissions that user can add or remove in a role at a given resource. The resource can be referenced either via the full resource name or via a URI.

Example Usage

Retrieve all the supported permissions able to be set on my-project that are in either GA or BETA. This is useful for dynamically constructing custom roles.

data "google_iam_testable_permissions" "perms" {
    full_resource_name = "//cloudresourcemanager.googleapis.com/projects/my-project"
    stages             = ["GA", "BETA"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

The permissions block supports: