Aracılığıyla paylaş


Alerts - List For Scope

Bir kaynak kapsamı için uyarılar alır.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
scope
path True

string

Uyarının kapsamı.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

Yanıtlar

Name Tür Description
200 OK

AlertListResult

Tamam - Bir uyarı dizisi döndürür.

Other Status Codes

CloudError

İşlemin neden başarısız olduğunu açıklayan hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

GetAlerts

Sample Request

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

Sample Response

{
  "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"
    }
  ]
}

Tanımlar

Name Description
Alert

Uyarı.

AlertConfiguration

Uyarı yapılandırması.

AlertDefinition

Uyarı tanımı

AlertIncident

Uyarı olayı

AlertListResult

Uyarı listesi işlem sonucu.

CloudError

Hizmetten bir hata yanıtı.

CloudErrorBody

Hizmetten bir hata yanıtı.

SeverityLevel

Uyarının önem düzeyi.

Alert

Uyarı.

Name Tür Description
id

string

Uyarı kimliği.

name

string

Uyarı adı.

properties.alertConfiguration

AlertConfiguration

Uyarı yapılandırması.

properties.alertDefinition

AlertDefinition

Uyarı tanımı.

properties.alertIncidents

AlertIncident[]

Uyarı olayları.

properties.incidentCount

integer

Uyarının oluşturulan olay sayısı.

properties.isActive

boolean

Varsayılan olarak false; uyarı etkinse true olur.

properties.lastModifiedDateTime

string

Uyarı yapılandırmasının güncelleştirildiği veya yeni olayların oluşturulduğu tarih saati.

properties.lastScannedDateTime

string

Uyarının en son tarandığı tarih saati.

properties.scope

string

Uyarı kapsamı.

type

string

Uyarı türü.

AlertConfiguration

Uyarı yapılandırması.

Name Tür Description
id

string

Uyarı yapılandırma kimliği.

name

string

Uyarı yapılandırma adı.

properties.alertConfigurationType

string

Uyarı yapılandırma türü.

properties.alertDefinition

AlertDefinition

Uyarı tanımı.

properties.alertDefinitionId

string

Uyarı tanımı kimliği.

properties.isEnabled

boolean

Uyarı etkinleştirilirse True, false ayarı belirli bir uyarı için taramayı devre dışı bırakır.

properties.scope

string

Uyarı kapsamı.

type

string

Uyarı yapılandırma türü.

AlertDefinition

Uyarı tanımı

Name Tür Description
id

string

Uyarı tanımı kimliği.

name

string

Uyarı tanımı adı.

properties.description

string

Uyarı açıklaması.

properties.displayName

string

Uyarı görünen adı.

properties.howToPrevent

string

Uyarıyı önlemenin yolları.

properties.isConfigurable

boolean

Uyarı yapılandırması yapılandırılabilirse True; false, aksi takdirde.

properties.isRemediatable

boolean

Uyarı düzeltilebiliyorsa true; false, aksi takdirde.

properties.mitigationSteps

string

Uyarıyı azaltma yöntemleri.

properties.scope

string

Uyarı kapsamı.

properties.securityImpact

string

Uyarının güvenlik etkisi.

properties.severityLevel

SeverityLevel

Uyarının önem düzeyi.

type

string

Uyarı tanımı türü.

AlertIncident

Uyarı olayı

Name Tür Description
id

string

Uyarı olay kimliği.

name

string

Uyarı olayı adı.

properties.alertIncidentType

string

Uyarı olay türü.

type

string

Uyarı olay türü.

AlertListResult

Uyarı listesi işlem sonucu.

Name Tür Description
nextLink

string

Sonraki sonuç kümesini almak için kullanılacak URL.

value

Alert[]

Uyarı listesi

CloudError

Hizmetten bir hata yanıtı.

Name Tür Description
error

CloudErrorBody

Hizmetten bir hata yanıtı.

CloudErrorBody

Hizmetten bir hata yanıtı.

Name Tür Description
code

string

Hatanın tanımlayıcısı. Kodlar sabittir ve program aracılığıyla kullanılması amaçlanmıştır.

message

string

Hatayı açıklayan ve kullanıcı arabiriminde görüntülenmeye uygun olması amaçlanan bir ileti.

SeverityLevel

Uyarının önem düzeyi.

Name Tür Description
High

string

Low

string

Medium

string