Partilhar via


RoleAssignments Interface

Implements

public interface RoleAssignments
extends SupportsGettingById<RoleAssignment>, SupportsCreating<Blank>, SupportsBatchCreation<RoleAssignment>, SupportsDeletingById, HasManager<AuthorizationManager>

Entry point to role assignment management API.

Method Summary

Modifier and Type Method and Description
abstract RoleAssignment getByScope(String scope, String name)

Gets the information about a role assignment based on scope and name.

abstract Mono<RoleAssignment> getByScopeAsync(String scope, String name)

Gets the information about a role assignment based on scope and name.

abstract PagedIterable<RoleAssignment> listByScope(String scope)

List role assignments in a scope.

abstract PagedFlux<RoleAssignment> listByScopeAsync(String scope)

List role assignments in a scope.

abstract PagedIterable<RoleAssignment> listByServicePrincipal(ServicePrincipal servicePrincipal)

List role assignments for a service principal.

abstract PagedIterable<RoleAssignment> listByServicePrincipal(String principalId)

List role assignments for a service principal.

abstract PagedFlux<RoleAssignment> listByServicePrincipalAsync(ServicePrincipal servicePrincipal)

List role assignments for a service principal.

abstract PagedFlux<RoleAssignment> listByServicePrincipalAsync(String principalId)

List role assignments for a service principal.

Method Details

getByScope

public abstract RoleAssignment getByScope(String scope, String name)

Gets the information about a role assignment based on scope and name.

Parameters:

scope - the scope of the role assignment
name - the name of the role assignment

Returns:

an immutable representation of the role assignment

getByScopeAsync

public abstract Mono getByScopeAsync(String scope, String name)

Gets the information about a role assignment based on scope and name.

Parameters:

scope - the scope of the role assignment
name - the name of the role assignment

Returns:

an immutable representation of the role assignment

listByScope

public abstract PagedIterable listByScope(String scope)

List role assignments in a scope.

Parameters:

scope - the scope of the role assignments

Returns:

a list of role assignments

listByScopeAsync

public abstract PagedFlux listByScopeAsync(String scope)

List role assignments in a scope.

Parameters:

scope - the scope of the role assignments

Returns:

a list of role assignments

listByServicePrincipal

public abstract PagedIterable listByServicePrincipal(ServicePrincipal servicePrincipal)

List role assignments for a service principal.

Parameters:

servicePrincipal - the service principal

Returns:

a list of role assignments

listByServicePrincipal

public abstract PagedIterable listByServicePrincipal(String principalId)

List role assignments for a service principal.

Parameters:

principalId - the ID of the service principal

Returns:

a list of role assignments

listByServicePrincipalAsync

public abstract PagedFlux listByServicePrincipalAsync(ServicePrincipal servicePrincipal)

List role assignments for a service principal.

Parameters:

servicePrincipal - the service principal

Returns:

a list of role assignments

listByServicePrincipalAsync

public abstract PagedFlux listByServicePrincipalAsync(String principalId)

List role assignments for a service principal.

Parameters:

principalId - the ID of the service principal

Returns:

a list of role assignments

Applies to