RoleDefinitions interface
Rozhraní představující RoleDefinitions.
Metody
create |
Vytvoří nebo aktualizuje definici role. |
delete(string, string, Role |
Odstraní definici role. |
get(string, string, Role |
Získejte definici role podle názvu (GUID). |
get |
Získá definici role podle ID. |
list(string, Role |
Získejte všechny definice rolí, které jsou použitelné v oboru a výše. |
Podrobnosti metody
createOrUpdate(string, string, RoleDefinition, RoleDefinitionsCreateOrUpdateOptionalParams)
Vytvoří nebo aktualizuje definici role.
function createOrUpdate(scope: string, roleDefinitionId: string, roleDefinition: RoleDefinition, options?: RoleDefinitionsCreateOrUpdateOptionalParams): Promise<RoleDefinition>
Parametry
- scope
-
string
Obor definice role.
- roleDefinitionId
-
string
ID definice role.
- roleDefinition
- RoleDefinition
Hodnoty pro definici role.
Parametry možností
Návraty
Promise<RoleDefinition>
delete(string, string, RoleDefinitionsDeleteOptionalParams)
Odstraní definici role.
function delete(scope: string, roleDefinitionId: string, options?: RoleDefinitionsDeleteOptionalParams): Promise<RoleDefinition>
Parametry
- scope
-
string
Obor definice role.
- roleDefinitionId
-
string
ID definice role, která se má odstranit.
Parametry možností
Návraty
Promise<RoleDefinition>
get(string, string, RoleDefinitionsGetOptionalParams)
Získejte definici role podle názvu (GUID).
function get(scope: string, roleDefinitionId: string, options?: RoleDefinitionsGetOptionalParams): Promise<RoleDefinition>
Parametry
- scope
-
string
Obor definice role.
- roleDefinitionId
-
string
ID definice role.
- options
- RoleDefinitionsGetOptionalParams
Parametry možností
Návraty
Promise<RoleDefinition>
getById(string, RoleDefinitionsGetByIdOptionalParams)
Získá definici role podle ID.
function getById(roleDefinitionId: string, options?: RoleDefinitionsGetByIdOptionalParams): Promise<RoleDefinition>
Parametry
- roleDefinitionId
-
string
Plně kvalifikované ID definice role. Pro definice rolí na úrovni předplatného použijte formát /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} pro definice rolí na úrovni předplatného nebo /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} pro definice rolí na úrovni tenanta.
Parametry možností
Návraty
Promise<RoleDefinition>
list(string, RoleDefinitionsListOptionalParams)
Získejte všechny definice rolí, které jsou použitelné v oboru a výše.
function list(scope: string, options?: RoleDefinitionsListOptionalParams): PagedAsyncIterableIterator<RoleDefinition, RoleDefinition[], PageSettings>
Parametry
- scope
-
string
Obor definice role.
Parametry možností