Class GetTestablePermissions
Inheritance
System.Object
GetTestablePermissions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Iam
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetTestablePermissions
Methods
View SourceInvokeAsync(GetTestablePermissionsArgs, InvokeOptions)
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 - searching for projects about to be deleted in an org
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var perms = Output.Create(Gcp.Iam.GetTestablePermissions.InvokeAsync(new Gcp.Iam.GetTestablePermissionsArgs
{
FullResourceName = "//cloudresourcemanager.googleapis.com/projects/my-project",
Stages =
{
"GA",
"BETA",
},
}));
}
}
Declaration
public static Task<GetTestablePermissionsResult> InvokeAsync(GetTestablePermissionsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTestablePermissionsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetTestablePermissionsResult> |