Documentation
¶
Index ¶
- func AssignRole(ctx context.Context, principalID, roleDefID string) (role authorization.RoleAssignment, err error)
- func AssignRoleWithSubscriptionScope(ctx context.Context, principalID, roleDefID string) (role authorization.RoleAssignment, err error)
- func DeleteRoleAssignment(ctx context.Context, id string) (authorization.RoleAssignment, error)
- func ListRoleDefinitions(ctx context.Context, filter string) (list authorization.RoleDefinitionListResultPage, err error)
- func RoleAssignmentsListByScope(ctx context.Context, scope string) (roleAssignments authorization.RoleAssignmentListResultPage, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignRole ¶
func AssignRole(ctx context.Context, principalID, roleDefID string) (role authorization.RoleAssignment, err error)
AssignRole assigns a role to the named principal at the scope of the current group.
func AssignRoleWithSubscriptionScope ¶
func AssignRoleWithSubscriptionScope(ctx context.Context, principalID, roleDefID string) (role authorization.RoleAssignment, err error)
AssignRoleWithSubscriptionScope assigns a role to the named principal at the subscription scope.
func DeleteRoleAssignment ¶
func DeleteRoleAssignment(ctx context.Context, id string) (authorization.RoleAssignment, error)
DeleteRoleAssignment deletes a roleassignment
func ListRoleDefinitions ¶
func ListRoleDefinitions(ctx context.Context, filter string) (list authorization.RoleDefinitionListResultPage, err error)
ListRoleDefinitions gets the role definitions in the used resource group
func RoleAssignmentsListByScope ¶
func RoleAssignmentsListByScope(ctx context.Context, scope string) (roleAssignments authorization.RoleAssignmentListResultPage, err error)
RoleAssignmentsListByScope - Get list of role assignments for scope
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.