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 |
---|---|---|---|---|
asc
|
path | True |
string |
De locatie waar ASC de gegevens van het abonnement opslaat. kan worden opgehaald uit Get-locaties |
subscription
|
path | True |
string |
Azure-abonnements-id Regex-patroon: |
api-version
|
query | True |
string |
API-versie voor de bewerking |
Aanvraagbody
Name | Type | Description |
---|---|---|
properties | AlertSimulatorRequestProperties: |
Waarschuwingssimulator vraagt hoofdtekstgegevens aan. |
Antwoorden
Name | Type | Description |
---|---|---|
202 Accepted |
Geaccepteerd |
|
Other Status Codes |
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 |
---|---|
Alert |
Waarschuwingen simuleren op basis van deze bundels. |
Alert |
Aanvraagtekst waarschuwingssimulator. |
Bundle |
Waarschuwingssimulator ondersteunde bundels. |
Cloud |
Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactieindeling.) |
Cloud |
De foutdetails. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
AlertSimulatorBundlesRequestProperties
Waarschuwingen simuleren op basis van deze bundels.
Name | Type | Description |
---|---|---|
bundles |
Lijst met bundels. |
|
kind |
string:
Bundles |
Het soort waarschuwingssimulatie. |
AlertSimulatorRequestBody
Aanvraagtekst waarschuwingssimulator.
Name | Type | Description |
---|---|---|
properties | AlertSimulatorRequestProperties: |
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 |
De fout bevat aanvullende informatie. |
|
error.code |
string |
De foutcode. |
error.details |
De foutdetails. |
|
error.message |
string |
Het foutbericht. |
error.target |
string |
Het foutdoel. |
CloudErrorBody
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
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. |