GetTestablePermissions
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.
Using GetTestablePermissions
function getTestablePermissions(args: GetTestablePermissionsArgs, opts?: InvokeOptions): Promise<GetTestablePermissionsResult>function get_testable_permissions(custom_support_level=None, full_resource_name=None, stages=None, opts=None)func GetTestablePermissions(ctx *Context, args *GetTestablePermissionsArgs, opts ...InvokeOption) (*GetTestablePermissionsResult, error)public static class GetTestablePermissions {
public static Task<GetTestablePermissionsResult> InvokeAsync(GetTestablePermissionsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Full
Resource stringName See full resource name documentation for more detail.
- Custom
Support stringLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- Stages List<string>
The acceptable release stages of the permission in the output. Note that
BETAdoes not include permissions inGA, but you can specify both with["GA", "BETA"]for example. Can be a list of"ALPHA","BETA","GA","DEPRECATED". Default is["GA"].
- Full
Resource stringName See full resource name documentation for more detail.
- Custom
Support stringLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- Stages []string
The acceptable release stages of the permission in the output. Note that
BETAdoes not include permissions inGA, but you can specify both with["GA", "BETA"]for example. Can be a list of"ALPHA","BETA","GA","DEPRECATED". Default is["GA"].
- full
Resource stringName See full resource name documentation for more detail.
- custom
Support stringLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- stages string[]
The acceptable release stages of the permission in the output. Note that
BETAdoes not include permissions inGA, but you can specify both with["GA", "BETA"]for example. Can be a list of"ALPHA","BETA","GA","DEPRECATED". Default is["GA"].
- full_
resource_ strname See full resource name documentation for more detail.
- custom_
support_ strlevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- stages List[str]
The acceptable release stages of the permission in the output. Note that
BETAdoes not include permissions inGA, but you can specify both with["GA", "BETA"]for example. Can be a list of"ALPHA","BETA","GA","DEPRECATED". Default is["GA"].
GetTestablePermissions Result
The following output properties are available:
- Full
Resource stringName - Id string
The provider-assigned unique ID for this managed resource.
- Permissions
List<Get
Testable Permissions Permission> A list of permissions matching the provided input. Structure is defined below.
- Custom
Support stringLevel The the support level of this permission for custom roles.
- Stages List<string>
- Full
Resource stringName - Id string
The provider-assigned unique ID for this managed resource.
- Permissions
[]Get
Testable Permissions Permission A list of permissions matching the provided input. Structure is defined below.
- Custom
Support stringLevel The the support level of this permission for custom roles.
- Stages []string
- full
Resource stringName - id string
The provider-assigned unique ID for this managed resource.
- permissions
Get
Testable Permissions Permission[] A list of permissions matching the provided input. Structure is defined below.
- custom
Support stringLevel The the support level of this permission for custom roles.
- stages string[]
- full_
resource_ strname - id str
The provider-assigned unique ID for this managed resource.
- permissions
List[Get
Testable Permissions Permission] A list of permissions matching the provided input. Structure is defined below.
- custom_
support_ strlevel The the support level of this permission for custom roles.
- stages List[str]
Supporting Types
GetTestablePermissionsPermission
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Api
Disabled bool Whether the corresponding API has been enabled for the resource.
- Custom
Support stringLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- Name string
Name of the permission.
- Stage string
Release stage of the permission.
- Title string
Human readable title of the permission.
- Api
Disabled bool Whether the corresponding API has been enabled for the resource.
- Custom
Support stringLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- Name string
Name of the permission.
- Stage string
Release stage of the permission.
- Title string
Human readable title of the permission.
- api
Disabled boolean Whether the corresponding API has been enabled for the resource.
- custom
Support stringLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- name string
Name of the permission.
- stage string
Release stage of the permission.
- title string
Human readable title of the permission.
- api
Disabled bool Whether the corresponding API has been enabled for the resource.
- custom
Support strLevel The level of support for custom roles. Can be one of
"NOT_SUPPORTED","SUPPORTED","TESTING". Default is"SUPPORTED"- name str
Name of the permission.
- stage str
Release stage of the permission.
- title str
Human readable title of the permission.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.