Delen via


Alerts - Simulate

Beveiligingswaarschuwingen simuleren

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate?api-version=2022-01-01

URI-parameters

Name In Vereist Type Description
ascLocation
path True

string

De locatie waar ASC de gegevens van het abonnement opslaat. kan worden opgehaald uit Get-locaties

subscriptionId
path True

string

Azure-abonnements-id

Regex-patroon: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$

api-version
query True

string

API-versie voor de bewerking

Aanvraagbody

Name Type Description
properties AlertSimulatorRequestProperties:

AlertSimulatorBundlesRequestProperties

Waarschuwingssimulator vraagt hoofdtekstgegevens aan.

Antwoorden

Name Type Description
202 Accepted

Geaccepteerd

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Simulate security alerts on a subscription

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/alerts/default/simulate?api-version=2022-01-01

{
  "properties": {
    "kind": "Bundles",
    "bundles": [
      "AppServices",
      "DNS",
      "KeyVaults",
      "KubernetesService",
      "ResourceManager",
      "SqlServers",
      "StorageAccounts",
      "VirtualMachines",
      "CosmosDbs"
    ]
  }
}

Voorbeeldrespons

Definities

Name Description
AlertSimulatorBundlesRequestProperties

Waarschuwingen simuleren op basis van deze bundels.

AlertSimulatorRequestBody

Aanvraagtekst waarschuwingssimulator.

BundleType

Waarschuwingssimulator ondersteunde bundels.

CloudError

Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.)

CloudErrorBody

De foutdetails.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

AlertSimulatorBundlesRequestProperties

Waarschuwingen simuleren op basis van deze bundels.

Name Type Description
bundles

BundleType[]

Lijst met bundels.

kind string:

Bundles

Het soort waarschuwingssimulatie.

AlertSimulatorRequestBody

Aanvraagtekst waarschuwingssimulator.

Name Type Description
properties AlertSimulatorRequestProperties:

AlertSimulatorBundlesRequestProperties

Waarschuwingssimulator vraagt hoofdtekstgegevens aan.

BundleType

Waarschuwingssimulator ondersteunde bundels.

Name Type Description
AppServices

string

CosmosDbs

string

DNS

string

KeyVaults

string

KubernetesService

string

ResourceManager

string

SqlServers

string

StorageAccounts

string

VirtualMachines

string

CloudError

Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.)

Name Type Description
error.additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

error.code

string

De foutcode.

error.details

CloudErrorBody[]

De foutdetails.

error.message

string

Het foutbericht.

error.target

string

Het foutdoel.

CloudErrorBody

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

CloudErrorBody[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.