Share via


Role Assignments - Delete By Id

Een roltoewijzing verwijderen op id.

DELETE https://management.azure.com/{roleAssignmentId}?api-version=2022-04-01
DELETE https://management.azure.com/{roleAssignmentId}?api-version=2022-04-01&tenantId={tenantId}

URI-parameters

Name In Vereist Type Description
roleAssignmentId
path True

string

De volledig gekwalificeerde id van de roltoewijzing, inclusief bereik, resourcenaam en resourcetype. Indeling: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Voorbeeld: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>

api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

tenantId
query

string

Tenant-id voor aanvraag voor meerdere tenants

Antwoorden

Name Type Description
200 OK

RoleAssignment

Retourneert de verwijderde roltoewijzing.

204 No Content

Roltoewijzing is al verwijderd of bestaat niet.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Delete role assignment by ID

Sample Request

DELETE https://management.azure.com/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747?api-version=2022-04-01

Sample Response

{
  "properties": {
    "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d",
    "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987",
    "principalType": "User",
    "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2"
  },
  "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747",
  "type": "Microsoft.Authorization/roleAssignments",
  "name": "b0f43c54-e787-4862-89b1-a653fa9cf747"
}

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

PrincipalType

Het principal-type van de toegewezen principal-id.

RoleAssignment

Roltoewijzingen

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

PrincipalType

Het principal-type van de toegewezen principal-id.

Name Type Description
Device

string

ForeignGroup

string

Group

string

ServicePrincipal

string

User

string

RoleAssignment

Roltoewijzingen

Name Type Standaardwaarde Description
id

string

De id van de roltoewijzing.

name

string

De naam van de roltoewijzing.

properties.condition

string

De voorwaarden voor de roltoewijzing. Dit beperkt de resources waaraan het kan worden toegewezen. bijvoorbeeld: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'

properties.conditionVersion

string

Versie van de voorwaarde. Momenteel is de enige geaccepteerde waarde '2.0'

properties.createdBy

string

Id van de gebruiker die de toewijzing heeft gemaakt

properties.createdOn

string

Tijdstip waarop deze is gemaakt

properties.delegatedManagedIdentityResourceId

string

Id van de gedelegeerde beheerde identiteitsresource

properties.description

string

Beschrijving van roltoewijzing

properties.principalId

string

De principal-id.

properties.principalType

PrincipalType

User

Het principal-type van de toegewezen principal-id.

properties.roleDefinitionId

string

De roldefinitie-id.

properties.scope

string

Het bereik van de roltoewijzing.

properties.updatedBy

string

Id van de gebruiker die de toewijzing heeft bijgewerkt

properties.updatedOn

string

Tijdstip waarop deze is bijgewerkt

type

string

Het type roltoewijzing.