Freigeben über


Alerts - List For Scope

Ruft Warnungen für einen Ressourcenbereich ab.

GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleManagementAlerts?api-version=2022-08-01-preview

URI-Parameter

Name In Erforderlich Typ Beschreibung
scope
path True

string

Der Bereich der Warnung.

api-version
query True

string

Hierbei handelt es sich um die für diesen Vorgang zu verwendende API-Version.

Antworten

Name Typ Beschreibung
200 OK

AlertListResult

OK: Gibt ein Array von Warnungen zurück.

Other Status Codes

CloudError

Fehlerantwort mit Beschreibung des Grunds für den Fehler.

Sicherheit

azure_auth

Azure Active Directory-OAuth2-Flow

Typ: oauth2
Ablauf: implicit
Autorisierungs-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiche

Name Beschreibung
user_impersonation Identitätswechsel Ihres Benutzerkontos

Beispiele

GetAlerts

Beispielanforderung

GET https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts?api-version=2022-08-01-preview

Beispiel für eine Antwort

{
  "value": [
    {
      "properties": {
        "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f",
        "incidentCount": 1,
        "lastModifiedDateTime": "2022-04-05T03:04:06.467+00:00",
        "lastScannedDateTime": "2022-04-06T18:25:00.38+00:00",
        "isActive": true,
        "alertDefinition": {
          "properties": {
            "displayName": "Too many permanent owners assigned to a resource",
            "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f",
            "description": "The number of users set to never expire is too high. To enhance the security of your resources, we recommend requiring activation for role use. Take a moment to review the list of users, and suggested changes here.",
            "severityLevel": "Medium",
            "securityImpact": "Providing users permanent access in a role may leave resources vulnerable to accidental or malicious activity.",
            "mitigationSteps": "To mitigate this issue, require the user to activate the role before use.",
            "howToPrevent": "Enable “Activation Required” in the role settings menu. This will ensure newly added users must activate their role.",
            "isRemediatable": true,
            "isConfigurable": true
          },
          "name": "TooManyPermanentOwnersAssignedToResource",
          "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource",
          "type": "Microsoft.Authorization/roleManagementAlertDefinitions"
        },
        "alertIncidents": [
          {
            "properties": {
              "alertIncidentType": "TooManyPermanentOwnersAssignedToResourceAlertIncident",
              "assigneeName": "testUser",
              "assigneeType": "User"
            },
            "name": "a9f38501-74ec-43ea-8663-6c538602150d",
            "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents",
            "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d"
          }
        ],
        "alertConfiguration": {
          "properties": {
            "alertConfigurationType": "TooManyPermanentOwnersAssignedToResourceAlertConfiguration",
            "alertDefinitionId": "TooManyPermanentOwnersAssignedToResource",
            "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f",
            "isEnabled": true,
            "thresholdNumberOfPermanentOwners": 10,
            "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10
          },
          "name": "TooManyPermanentOwnersAssignedToResource",
          "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource",
          "type": "Microsoft.Authorization/roleManagementAlertConfigurations"
        }
      },
      "name": "TooManyPermanentOwnersAssignedToResource",
      "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource",
      "type": "Microsoft.Authorization/roleManagementAlerts"
    },
    {
      "properties": {
        "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f",
        "incidentCount": 1,
        "lastModifiedDateTime": "2022-04-05T03:04:06.467+00:00",
        "lastScannedDateTime": "2022-04-06T18:25:00.38+00:00",
        "isActive": true,
        "alertDefinition": {
          "properties": {
            "displayName": "Too many owners assigned to a resource",
            "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f",
            "description": "The number of users with the Owner role is too high. We recommend assigning these individuals to less privileged roles or roles more suitable to their daily needs. Take a moment to review the current assignments, and suggested changes here.",
            "severityLevel": "Medium",
            "securityImpact": "As the number of users with the owner role increases, so does the potential for malicious or mistaken actions affecting your resource.",
            "mitigationSteps": "To mitigate this issue, reduce the number of users in the Owner role. Review the list of users in the list, and reassign them to a less privileged role such as Contributor.",
            "howToPrevent": "Choose a role that provides the fewest privileges necessary for a user or group to complete their tasks.",
            "isRemediatable": true,
            "isConfigurable": true
          },
          "name": "TooManyOwnersAssignedToResource",
          "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource",
          "type": "Microsoft.Authorization/roleManagementAlertDefinitions"
        },
        "alertIncidents": [
          {
            "properties": {
              "alertIncidentType": "TooManyOwnersAssignedToResourceAlertIncident",
              "assigneeName": "testUser",
              "assigneeType": "User"
            },
            "name": "a9f38501-74ec-43ea-8663-6c538602150d",
            "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents",
            "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d"
          }
        ],
        "alertConfiguration": {
          "properties": {
            "alertConfigurationType": "TooManyOwnersAssignedToResourceAlertConfiguration",
            "alertDefinitionId": "TooManyOwnersAssignedToResource",
            "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f",
            "isEnabled": true,
            "thresholdNumberOfOwners": 2,
            "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3
          },
          "name": "TooManyOwnersAssignedToResource",
          "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource",
          "type": "Microsoft.Authorization/roleManagementAlertConfigurations"
        }
      },
      "name": "TooManyOwnersAssignedToResource",
      "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource",
      "type": "Microsoft.Authorization/roleManagementAlerts"
    }
  ]
}

Definitionen

Name Beschreibung
Alert

Die Warnung.

AlertConfiguration

Warnungskonfiguration.

AlertDefinition

Warnungsdefinition

AlertIncident

Warnungsvorfall

AlertListResult

Ergebnis des Vorgangs "Warnungsliste".

CloudError

Eine Fehlerantwort vom Dienst.

CloudErrorBody

Eine Fehlerantwort vom Dienst.

SeverityLevel

Schweregrad der Warnung.

Alert

Die Warnung.

Name Typ Beschreibung
id

string

Die Warnungs-ID

name

string

Der Name der Warnung.

properties.alertConfiguration

AlertConfiguration

Die Warnungskonfiguration.

properties.alertDefinition

AlertDefinition

Die Warnungsdefinition.

properties.alertIncidents

AlertIncident[]

Die Warnungsvorfälle.

properties.incidentCount

integer

Die Anzahl der generierten Vorfälle der Warnung.

properties.isActive

boolean

Standardmäßig false; TRUE, wenn die Warnung aktiv ist.

properties.lastModifiedDateTime

string

Das Datum, zu dem die Warnungskonfiguration aktualisiert wurde oder neue Vorfälle generiert wurden.

properties.lastScannedDateTime

string

Das Datum, zu dem die Warnung zuletzt gescannt wurde.

properties.scope

string

Der Warnungsbereich.

type

string

Der Warnungstyp.

AlertConfiguration

Warnungskonfiguration.

Name Typ Beschreibung
id

string

Die Warnungskonfigurations-ID.

name

string

Der Name der Warnungskonfiguration.

properties.alertConfigurationType

string

Der Warnungskonfigurationstyp.

properties.alertDefinition

AlertDefinition

Die Warnungsdefinition.

properties.alertDefinitionId

string

Die Warnungsdefinitions-ID.

properties.isEnabled

boolean

True, wenn die Warnung aktiviert ist, deaktiviert false die Überprüfung für die jeweilige Warnung.

properties.scope

string

Der Warnungsbereich.

type

string

Der Warnungskonfigurationstyp.

AlertDefinition

Warnungsdefinition

Name Typ Beschreibung
id

string

Die Warnungsdefinitions-ID.

name

string

Der Name der Warnungsdefinition.

properties.description

string

Die Beschreibung der Warnung

properties.displayName

string

Der Name der Warnungsanzeige.

properties.howToPrevent

string

Die Möglichkeiten, die Warnung zu verhindern.

properties.isConfigurable

boolean

True, wenn die Warnungskonfiguration konfiguriert werden kann; false, andernfalls.

properties.isRemediatable

boolean

True, wenn die Warnung wiederhergestellt werden kann; false, andernfalls.

properties.mitigationSteps

string

Die Methoden zum Entschärfen der Warnung.

properties.scope

string

Der Warnungsbereich.

properties.securityImpact

string

Auswirkungen der Warnung auf die Sicherheit.

properties.severityLevel

SeverityLevel

Schweregrad der Warnung.

type

string

Der Warnungsdefinitionstyp.

AlertIncident

Warnungsvorfall

Name Typ Beschreibung
id

string

Die Warnungs-Incident-ID.

name

string

Der Name des Warnungsvorfalls.

properties.alertIncidentType

string

Der Warnungsvorfalltyp.

type

string

Der Warnungsvorfalltyp.

AlertListResult

Ergebnis des Vorgangs "Warnungsliste".

Name Typ Beschreibung
nextLink

string

Die URL, die zum Abrufen des nächsten Resultsets verwendet werden soll.

value

Alert[]

Warnungsliste

CloudError

Eine Fehlerantwort vom Dienst.

Name Typ Beschreibung
error

CloudErrorBody

Eine Fehlerantwort vom Dienst.

CloudErrorBody

Eine Fehlerantwort vom Dienst.

Name Typ Beschreibung
code

string

Ein Bezeichner für den Fehler. Codes sind unveränderlich und sollten programmgesteuert verwendet werden.

message

string

Eine Meldung, die den Fehler beschreibt, die für die Anzeige in einer Benutzeroberfläche geeignet sein soll.

SeverityLevel

Schweregrad der Warnung.

Name Typ Beschreibung
High

string

Low

string

Medium

string