Method | Description | |
---|---|---|
AuthorizationClient ( |
Creates PoliciesClient using AzureContext instance.
|
|
CreateRoleAssignment ( Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions parameters ) : |
Creates new role assignment.
|
|
CreateRoleDefinition ( Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
Creates a new role definition.
|
|
FilterRoleAssignments ( Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions options, string currentSubscription ) : List |
Filters role assignments based on the passed options.
|
|
FilterRoleDefinitions ( |
||
FilterRoleDefinitions ( string name, string scope, bool scopeAndBelow = false ) : List |
Filters the existing role Definitions. If name is not provided, all role definitions are fetched.
|
|
FilterRoleDefinitionsByCustom ( string scope, bool scopeAndBelow ) : List |
Filters the existing role Definitions by CustomRole.
|
|
GetAllRoleDefinitionsAtScopeAndBelow ( string scope ) : List |
Fetches all existing role Definitions.
|
|
GetRoleDefinition ( System.Guid roleId, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
Gets a single role definition by the role Id guid.
|
|
GetRoleDefinition ( string roleId ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
Gets a single role definition by a fully qualified role Id
|
|
GetSingleRoleDefinitionByName ( string name, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
RemoveRoleAssignment ( Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions options, string subscriptionId ) : IEnumerable |
Deletes a role assignments based on the used options.
|
|
RemoveRoleDefinition ( |
||
RemoveRoleDefinition ( System.Guid roleDefinitionId, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
Deletes a role definition based on the id.
|
|
RemoveRoleDefinition ( string roleDefinitionName, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
Deletes a role definition based on the name.
|
|
UpdateRoleDefinition ( Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
Updates a role definiton.
|
Method | Description | |
---|---|---|
AuthorizationClient ( ) : Hyak.Common | ||
CreateOrUpdateRoleDefinition ( System.Guid roleDefinitionId, Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
ValidateRoleDefinition ( Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition ) : void |
public AuthorizationClient ( |
||
context | The AzureContext instance | |
return | Hyak.Common |
public CreateRoleAssignment ( Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions parameters ) : |
||
parameters | Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions | The create parameters |
return |
public CreateRoleDefinition ( Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
roleDefinition | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | The role definition to create. |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public FilterRoleAssignments ( Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions options, string currentSubscription ) : List |
||
options | Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions | The filtering options |
currentSubscription | string | The current subscription |
return | List |
public FilterRoleDefinitions ( |
||
options | ||
return | List |
public FilterRoleDefinitions ( string name, string scope, bool scopeAndBelow = false ) : List |
||
name | string | The role name |
scope | string | |
scopeAndBelow | bool | |
return | List |
public FilterRoleDefinitionsByCustom ( string scope, bool scopeAndBelow ) : List |
||
scope | string | |
scopeAndBelow | bool | |
return | List |
public GetAllRoleDefinitionsAtScopeAndBelow ( string scope ) : List |
||
scope | string | |
return | List |
public GetRoleDefinition ( System.Guid roleId, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
roleId | System.Guid | RoleId guid |
scope | string | |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public GetRoleDefinition ( string roleId ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
roleId | string | Fully qualified roleId |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public GetSingleRoleDefinitionByName ( string name, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
name | string | |
scope | string | |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public RemoveRoleAssignment ( Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions options, string subscriptionId ) : IEnumerable |
||
options | Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleAssignmentsOptions | The role assignment filtering options |
subscriptionId | string | Current subscription id |
return | IEnumerable |
public RemoveRoleDefinition ( |
||
options | ||
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public RemoveRoleDefinition ( System.Guid roleDefinitionId, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
roleDefinitionId | System.Guid | The role definition id to delete |
scope | string | |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public RemoveRoleDefinition ( string roleDefinitionName, string scope ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
roleDefinitionName | string | The role definition name. |
scope | string | |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |
public UpdateRoleDefinition ( Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition roleDefinition ) : Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | ||
roleDefinition | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition | The role definition to update. |
return | Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition |