Microsoft.Authorization (stable:7.5)

2025/01/15 • 8 updated methods

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

⚶ Changes

{
  "#id": "RoleAssignments_ListForScope",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Get the specified role assignment.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleAssignments_Get",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Creates a role assignment.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleAssignments_Create",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Deletes a role assignment.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleAssignments_Delete",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Get all role definitions that are applicable at scope and above.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleDefinitions_List",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": [
            {
              "#name": "type",
              "Enum": {
                "new": [
                  [
                    "Microsoft.Authorization/roleDefinitions",
                    "Microsoft-defined role definitions."
                  ]
                ],
                "old": [
                  [
                    "Microsoft.Authorization/roleDefinitions",
                    ""
                  ]
                ]
              }
            }
          ]
        }
      }
    },
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Get the specified role definition.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleDefinitions_Get",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "type",
          "Enum": {
            "new": [
              [
                "Microsoft.Authorization/roleDefinitions",
                "Microsoft-defined role definitions."
              ]
            ],
            "old": [
              [
                "Microsoft.Authorization/roleDefinitions",
                ""
              ]
            ]
          }
        }
      ]
    },
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Creates or updates a custom role definition.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleDefinitions_CreateOrUpdate",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "201": {
      "$properties": [
        {
          "#name": "type",
          "Enum": {
            "new": [
              [
                "Microsoft.Authorization/roleDefinitions",
                "Microsoft-defined role definitions."
              ]
            ],
            "old": [
              [
                "Microsoft.Authorization/roleDefinitions",
                ""
              ]
            ]
          }
        }
      ]
    },
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 (updated)
Description Deletes a custom role definition.
Reference Link ¶

⚶ Changes

{
  "#id": "RoleDefinitions_Delete",
  "$parameters": [
    {
      "#name": "api-version",
      "Description": {
        "new": "The API version to use for this operation.",
        "old": "Client API version."
      }
    }
  ],
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "type",
          "Enum": {
            "new": [
              [
                "Microsoft.Authorization/roleDefinitions",
                "Microsoft-defined role definitions."
              ]
            ],
            "old": [
              [
                "Microsoft.Authorization/roleDefinitions",
                ""
              ]
            ]
          }
        }
      ]
    },
    "default": {
      "$properties": {
        "error": [
          {
            "#name": "innererror",
            "Type": {
              "new": "string",
              "old": "object"
            }
          }
        ]
      }
    }
  }
}

⚼ 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 ,
}
,
}