Microsoft.Authorization (preview:7.6.2)

2025/02/04 • 8 new methods

RoleAssignments_ListForScope (new)
Description Gets role assignments for a scope.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/roleAssignments
{
api-version: string ,
scope: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
scope: enum ,
roleDefinitionId: string ,
principalId: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleAssignments_Get (new)
Description Get the specified role assignment.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}
{
api-version: string ,
scope: string ,
roleAssignmentName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
scope: enum ,
roleDefinitionId: string ,
principalId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleAssignments_Create (new)
Description Creates a role assignment.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}
{
api-version: string ,
scope: string ,
roleAssignmentName: string ,
parameters:
{
properties:
{
roleDefinitionId: string ,
principalId: string ,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: string ,
properties:
{
scope: enum ,
roleDefinitionId: string ,
principalId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleAssignments_Delete (new)
Description Deletes a role assignment.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}
{
api-version: string ,
scope: string ,
roleAssignmentName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
scope: enum ,
roleDefinitionId: string ,
principalId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleDefinitions_List (new)
Description Get all role definitions that are applicable at scope and above.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/roleDefinitions
{
api-version: string ,
scope: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: enum ,
properties:
{
roleName: string ,
description: string ,
type: enum ,
permissions:
[
{
actions:
[
string ,
]
,
notActions:
[
string ,
]
,
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
assignableScopes:
[
string ,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleDefinitions_Get (new)
Description Get the specified role definition.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}
{
api-version: string ,
scope: string ,
roleDefinitionName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: enum ,
properties:
{
roleName: string ,
description: string ,
type: enum ,
permissions:
[
{
actions:
[
string ,
]
,
notActions:
[
string ,
]
,
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
assignableScopes:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleDefinitions_CreateOrUpdate (new)
Description Creates or updates a custom role definition.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}
{
api-version: string ,
scope: string ,
roleDefinitionName: string ,
parameters:
{
properties:
{
roleName: string ,
description: string ,
type: enum ,
permissions:
[
{
actions:
[
string ,
]
,
notActions:
[
string ,
]
,
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
assignableScopes:
[
string ,
]
,
}
,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: enum ,
properties:
{
roleName: string ,
description: string ,
type: enum ,
permissions:
[
{
actions:
[
string ,
]
,
notActions:
[
string ,
]
,
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
assignableScopes:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}
RoleDefinitions_Delete (new)
Description Deletes a custom role definition.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}
{
api-version: string ,
scope: string ,
roleDefinitionName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: enum ,
properties:
{
roleName: string ,
description: string ,
type: enum ,
permissions:
[
{
actions:
[
string ,
]
,
notActions:
[
string ,
]
,
dataActions:
[
string ,
]
,
notDataActions:
[
string ,
]
,
}
,
]
,
assignableScopes:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
innererror: string ,
}
,
}