@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get role definition by ID (GUID).
*
* Uses Azure REST API version 2022-05-01-preview.
*
* Other available API versions: 2022-04-01. 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getRoleDefinition(args: GetRoleDefinitionArgs, opts?: pulumi.InvokeOptions): Promise<GetRoleDefinitionResult>;
export interface GetRoleDefinitionArgs {
/**
* The ID of the role definition.
*/
roleDefinitionId: string;
/**
* 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}'
*/
scope: string;
}
/**
* Role definition.
*/
export interface GetRoleDefinitionResult {
/**
* Role definition assignable scopes.
*/
readonly assignableScopes?: string[];
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Id of the user who created the assignment
*/
readonly createdBy: string;
/**
* Time it was created
*/
readonly createdOn: string;
/**
* The role definition description.
*/
readonly description?: string;
/**
* The role definition ID.
*/
readonly id: string;
/**
* The role definition name.
*/
readonly name: string;
/**
* Role definition permissions.
*/
readonly permissions?: outputs.authorization.PermissionResponse[];
/**
* The role name.
*/
readonly roleName?: string;
/**
* The role type.
*/
readonly roleType?: string;
/**
* The role definition type.
*/
readonly type: string;
/**
* Id of the user who updated the assignment
*/
readonly updatedBy: string;
/**
* Time it was updated
*/
readonly updatedOn: string;
}
/**
* Get role definition by ID (GUID).
*
* Uses Azure REST API version 2022-05-01-preview.
*
* Other available API versions: 2022-04-01. 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getRoleDefinitionOutput(args: GetRoleDefinitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRoleDefinitionResult>;
export interface GetRoleDefinitionOutputArgs {
/**
* The ID of the role definition.
*/
roleDefinitionId: pulumi.Input<string>;
/**
* 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}'
*/
scope: pulumi.Input<string>;
}