getRoleAssignment

Get a role assignment by scope and name. Uses Azure REST API version 2022-04-01. Other available API versions: 2020-08-01-preview, 2020-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native authorization [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Return

Role Assignments

Parameters

argument

null


suspend fun getRoleAssignment(roleAssignmentName: String, scope: String, tenantId: String? = null): GetRoleAssignmentResult

Return

Role Assignments

Parameters

roleAssignmentName

The name of the role assignment. It can be any valid GUID.

scope

The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'

tenantId

Tenant ID for cross-tenant request

See also


Return

Role Assignments

Parameters

argument

Builder for com.pulumi.azurenative.authorization.kotlin.inputs.GetRoleAssignmentPlainArgs.

See also