getOrganizationRoleScopes function
Future<GetOrganizationRoleScopesResult>
getOrganizationRoleScopes(
- GetOrganizationRoleScopesArgs args, {
- InvokeOptions? options,
Lists the permission scopes available for custom roles in an organization. Use this to discover valid scope names before setting OrganizationRole.permissions. The catalogue is flattened into a single list with resource type and group context, sorted deterministically.
args Arguments passed to this invoke. Arguments for getOrganizationRoleScopes.
options Invoke options controlling this call.
Implementation
Future<GetOrganizationRoleScopesResult> getOrganizationRoleScopes(
GetOrganizationRoleScopesArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'pulumiservice:index:getOrganizationRoleScopes',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetOrganizationRoleScopesResult.fromMap(result);
}