Role Definitions - Delete

Odstraní definici role.

DELETE https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}?api-version=2022-04-01

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
roleDefinitionId
path True

string

ID definice role, která se má odstranit.

scope
path True

string

Obor definice role.

api-version
query True

string

Verze rozhraní API, která se má použít pro tuto operaci.

Odpovědi

Name Typ Description
200 OK

RoleDefinition

OK – vrátí informace o definici role.

204 No Content

Definice role je již odstraněna nebo neexistuje.

Other Status Codes

ErrorResponse

Chybová odpověď popisující, proč operace selhala.

Oprávnění

Pokud chcete volat toto rozhraní API, musíte mít přiřazenou roli s následujícími oprávněními. Další informace najdete v tématu Předdefinované role v Azure.

Microsoft.Authorization/roleDefinitions/delete

Zabezpečení

azure_auth

Tok Azure Active Directory OAuth2

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

Scopes

Name Description
user_impersonation zosobnění uživatelského účtu

Příklady

Delete role definition

Sample Request

DELETE https://management.azure.com/scope/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId?api-version=2022-04-01

Sample Response

{
  "properties": {
    "roleName": "Role name",
    "type": "roletype",
    "description": "Role description",
    "assignableScopes": [
      "/subscriptions/subId"
    ],
    "permissions": [
      {
        "actions": [
          "action"
        ],
        "notActions": [],
        "dataActions": [
          "dataAction"
        ],
        "notDataActions": []
      }
    ]
  },
  "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId",
  "type": "Microsoft.Authorization/roleDefinitions",
  "name": "roleDefinitionId"
}

Definice

Name Description
ErrorAdditionalInfo

Další informace o chybě správy prostředků

ErrorDetail

Podrobnosti o chybě.

ErrorResponse

Odpověď na chybu

Permission

Oprávnění k definici role.

RoleDefinition

Definice role.

ErrorAdditionalInfo

Další informace o chybě správy prostředků

Name Typ Description
info

object

Další informace.

type

string

Další typ informací.

ErrorDetail

Podrobnosti o chybě.

Name Typ Description
additionalInfo

ErrorAdditionalInfo[]

Další informace o chybě

code

string

Kód chyby

details

ErrorDetail[]

Podrobnosti o chybě

message

string

Chybová zpráva

target

string

Cíl chyby.

ErrorResponse

Odpověď na chybu

Name Typ Description
error

ErrorDetail

Objekt chyby.

Permission

Oprávnění k definici role.

Name Typ Description
actions

string[]

Povolené akce.

dataActions

string[]

Povolené akce dat.

notActions

string[]

Zamítnuté akce.

notDataActions

string[]

Akce odepření dat.

RoleDefinition

Definice role.

Name Typ Description
id

string

ID definice role.

name

string

Název definice role.

properties.assignableScopes

string[]

Přiřaditelné obory definice role.

properties.createdBy

string

ID uživatele, který vytvořil přiřazení

properties.createdOn

string

Čas vytvoření

properties.description

string

Popis definice role

properties.permissions

Permission[]

Oprávnění k definici role.

properties.roleName

string

Název role.

properties.type

string

Typ role.

properties.updatedBy

string

ID uživatele, který aktualizoval přiřazení

properties.updatedOn

string

Čas aktualizace

type

string

Typ definice role.