GetRule

Use this data source to get information about a Google IAM Role.

Using GetRule

function getRule(args: GetRuleArgs, opts?: InvokeOptions): Promise<GetRuleResult>
function  get_rule(name=None, opts=None)
func GetRule(ctx *Context, args *GetRuleArgs, opts ...InvokeOption) (*GetRuleResult, error)
public static class GetRule {
    public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Role to lookup in the form roles/{ROLE_NAME}, organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} or projects/{PROJECT_ID}/roles/{ROLE_NAME}

Name string

The name of the Role to lookup in the form roles/{ROLE_NAME}, organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} or projects/{PROJECT_ID}/roles/{ROLE_NAME}

name string

The name of the Role to lookup in the form roles/{ROLE_NAME}, organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} or projects/{PROJECT_ID}/roles/{ROLE_NAME}

name str

The name of the Role to lookup in the form roles/{ROLE_NAME}, organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} or projects/{PROJECT_ID}/roles/{ROLE_NAME}

GetRule Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

IncludedPermissions List<string>

specifies the list of one or more permissions to include in the custom role, such as - iam.roles.get

Name string
Stage string

indicates the stage of a role in the launch lifecycle, such as GA, BETA or ALPHA.

Title string

is a friendly title for the role, such as “Role Viewer”

Id string

The provider-assigned unique ID for this managed resource.

IncludedPermissions []string

specifies the list of one or more permissions to include in the custom role, such as - iam.roles.get

Name string
Stage string

indicates the stage of a role in the launch lifecycle, such as GA, BETA or ALPHA.

Title string

is a friendly title for the role, such as “Role Viewer”

id string

The provider-assigned unique ID for this managed resource.

includedPermissions string[]

specifies the list of one or more permissions to include in the custom role, such as - iam.roles.get

name string
stage string

indicates the stage of a role in the launch lifecycle, such as GA, BETA or ALPHA.

title string

is a friendly title for the role, such as “Role Viewer”

id str

The provider-assigned unique ID for this managed resource.

included_permissions List[str]

specifies the list of one or more permissions to include in the custom role, such as - iam.roles.get

name str
stage str

indicates the stage of a role in the launch lifecycle, such as GA, BETA or ALPHA.

title str

is a friendly title for the role, such as “Role Viewer”

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.