RoleManagementPolicyAssignments interface
Interface representing a RoleManagementPolicyAssignments.
Methods
create(string, string, Role |
Create a role management policy assignment |
delete(string, string, Role |
Delete a role management policy assignment |
get(string, string, Role |
Get the specified role management policy assignment for a resource scope |
list |
Gets role management assignment policies for a resource scope. |
Method Details
create(string, string, RoleManagementPolicyAssignment, RoleManagementPolicyAssignmentsCreateOptionalParams)
Create a role management policy assignment
function create(scope: string, roleManagementPolicyAssignmentName: string, parameters: RoleManagementPolicyAssignment, options?: RoleManagementPolicyAssignmentsCreateOptionalParams): Promise<RoleManagementPolicyAssignment>
Parameters
- scope
-
string
The scope of the role management policy assignment to upsert.
- roleManagementPolicyAssignmentName
-
string
The name of format {guid_guid} the role management policy assignment to upsert.
- parameters
- RoleManagementPolicyAssignment
Parameters for the role management policy assignment.
The options parameters.
Returns
Promise<RoleManagementPolicyAssignment>
delete(string, string, RoleManagementPolicyAssignmentsDeleteOptionalParams)
Delete a role management policy assignment
function delete(scope: string, roleManagementPolicyAssignmentName: string, options?: RoleManagementPolicyAssignmentsDeleteOptionalParams): Promise<void>
Parameters
- scope
-
string
The scope of the role management policy assignment to delete.
- roleManagementPolicyAssignmentName
-
string
The name of format {guid_guid} the role management policy assignment to delete.
The options parameters.
Returns
Promise<void>
get(string, string, RoleManagementPolicyAssignmentsGetOptionalParams)
Get the specified role management policy assignment for a resource scope
function get(scope: string, roleManagementPolicyAssignmentName: string, options?: RoleManagementPolicyAssignmentsGetOptionalParams): Promise<RoleManagementPolicyAssignment>
Parameters
- scope
-
string
The scope of the role management policy.
- roleManagementPolicyAssignmentName
-
string
The name of format {guid_guid} the role management policy assignment to get.
The options parameters.
Returns
Promise<RoleManagementPolicyAssignment>
listForScope(string, RoleManagementPolicyAssignmentsListForScopeOptionalParams)
Gets role management assignment policies for a resource scope.
function listForScope(scope: string, options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams): PagedAsyncIterableIterator<RoleManagementPolicyAssignment, RoleManagementPolicyAssignment[], PageSettings>
Parameters
- scope
-
string
The scope of the role management policy.
The options parameters.