Watchlists - Create Or Update

Maak of werk een volglijst en de bijbehorende volglijstitems bij (bulksgewijs maken, bijvoorbeeld via tekst/csv-inhoudstype). Als u een volglijst en de bijbehorende items wilt maken, moeten we dit eindpunt aanroepen met de eigenschappen rawContent en contentType.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}?api-version=2025-09-01

URI-parameters

Naam In Vereist Type Description
resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resourcegroep. De naam is hoofdletterongevoelig.

subscriptionId
path True

string (uuid)

De id van het doelabonnement. De waarde moet een UUID zijn.

watchlistAlias
path True

string

De alias van de volglijst

workspaceName
path True

string

minLength: 1
maxLength: 90
pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$

De naam van de monitorwerkruimte.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Naam Vereist Type Description
properties.displayName True

string

De weergavenaam van de volglijst

properties.itemsSearchKey True

string

De zoeksleutel wordt gebruikt om de queryprestaties te optimaliseren bij het gebruik van volglijsten voor joins met andere gegevens. Zorg er bijvoorbeeld voor dat een kolom met IP-adressen het aangewezen SearchKey-veld is en gebruik dit veld vervolgens als het sleutelveld wanneer u op IP-adres deelneemt aan andere gebeurtenisgegevens.

properties.provider True

string

De aanbieder van de watchlist

etag

string

Etag van de Azure-resource

properties.contentType

string

Het inhoudstype van de onbewerkte inhoud. Voorbeeld : tekst/csv of tekst/tsv

properties.created

string (date-time)

Het tijdstip waarop de volglijst is gemaakt

properties.createdBy

UserInfo

Beschrijft een gebruiker die de volglijst heeft gemaakt

properties.defaultDuration

string (duration)

De standaardduur van een watchlijst (in ISO 8601-duurformaat)

properties.description

string

Een beschrijving van de volglijst

properties.isDeleted

boolean

Een vlag die aangeeft of de volglijst is verwijderd of niet

properties.labels

string[]

Lijst van labels die relevant zijn voor deze volglijst

properties.numberOfLinesToSkip

integer (int32)

Het aantal regels in een csv/tsv-inhoud dat moet worden overgeslagen voor de header

properties.rawContent

string

De onbewerkte inhoud die staat voor items op de volglijst die moeten worden gemaakt. In het geval van het inhoudstype csv/tsv is het de inhoud van het bestand dat door het eindpunt wordt geparseerd

properties.source

string

De bestandsnaam van de volglijst, genaamd 'bron'

properties.sourceType

SourceType

De bronType van de volglijst

properties.tenantId

string

De tenantId waar de watchlist bij hoort

properties.updated

string (date-time)

De laatste keer dat de volglijst is bijgewerkt

properties.updatedBy

UserInfo

Beschrijft een gebruiker die de volglijst heeft bijgewerkt

properties.uploadStatus

string

De status van het uploaden van de volglijst: Nieuw, In uitvoering of Voltooid. Opmerking : Als de uploadstatus van een volglijst in uitvoering is, kan de volglijst niet worden verwijderd

properties.watchlistAlias

string

De alias van de volglijst

properties.watchlistId

string

De id (een guid) van de volglijst

properties.watchlistType

string

Het type van de volglijst

Antwoorden

Naam Type Description
200 OK

Watchlist

De updateoperatie van de bron 'Watchlist' is geslaagd

201 Created

Watchlist

Resource 'Watchlist' aanmaakoperatie geslaagd

Kopteksten

Azure-AsyncOperation: string

Other Status Codes

ErrorResponse

Een onverwachte foutreactie.

Beveiliging

azure_auth

OAuth2-stroom voor Azure Active Directory.

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

Bereiken

Naam Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Create or update a watchlist and bulk creates watchlist items.
Create or update a watchlist.

Create or update a watchlist and bulk creates watchlist items.

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/watchlists/highValueAsset?api-version=2025-09-01

{
  "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
  "properties": {
    "displayName": "High Value Assets Watchlist",
    "source": "watchlist.csv",
    "sourceType": "Local",
    "provider": "Microsoft",
    "description": "Watchlist from CSV content",
    "numberOfLinesToSkip": 1,
    "rawContent": "This line will be skipped\nheader1,header2\nvalue1,value2",
    "itemsSearchKey": "header1",
    "contentType": "text/csv"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/watchlists/highValueAsset",
  "name": "highValueAsset",
  "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
  "type": "Microsoft.SecurityInsights/Watchlists",
  "properties": {
    "watchlistId": "76d5a51f-ba1f-4038-9d22-59fda38dc017",
    "displayName": "High Value Assets Watchlist",
    "provider": "Microsoft",
    "source": "watchlist.csv",
    "sourceType": "Local",
    "created": "2020-09-28T00:26:54.7746089+00:00",
    "updated": "2020-09-28T00:26:57+00:00",
    "createdBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "updatedBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "description": "Watchlist from CSV content",
    "watchlistType": "watchlist",
    "watchlistAlias": "highValueAsset",
    "itemsSearchKey": "header1",
    "isDeleted": false,
    "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd"
  }
}
{
  "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/watchlists/highValueAsset",
  "name": "highValueAsset",
  "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
  "type": "Microsoft.SecurityInsights/Watchlists",
  "properties": {
    "watchlistId": "76d5a51f-ba1f-4038-9d22-59fda38dc017",
    "displayName": "High Value Assets Watchlist",
    "provider": "Microsoft",
    "source": "watchlist.csv",
    "sourceType": "Local",
    "created": "2020-09-28T00:26:54.7746089+00:00",
    "updated": "2020-09-28T00:26:57+00:00",
    "createdBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "updatedBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "description": "Watchlist from CSV content",
    "watchlistType": "watchlist",
    "watchlistAlias": "highValueAsset",
    "itemsSearchKey": "header1",
    "isDeleted": false,
    "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd"
  }
}

Create or update a watchlist.

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/watchlists/highValueAsset?api-version=2025-09-01

{
  "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
  "properties": {
    "displayName": "High Value Assets Watchlist",
    "source": "watchlist.csv",
    "sourceType": "Local",
    "provider": "Microsoft",
    "description": "Watchlist from CSV content",
    "itemsSearchKey": "header1"
  }
}

Voorbeeldrespons

{
  "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/watchlists/highValueAsset",
  "name": "highValueAsset",
  "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
  "type": "Microsoft.SecurityInsights/Watchlists",
  "properties": {
    "watchlistId": "76d5a51f-ba1f-4038-9d22-59fda38dc017",
    "displayName": "High Value Assets Watchlist",
    "provider": "Microsoft",
    "source": "watchlist.csv",
    "sourceType": "Local",
    "created": "2020-09-28T00:26:54.7746089+00:00",
    "updated": "2020-09-28T00:26:57+00:00",
    "createdBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "updatedBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "description": "Watchlist from CSV content",
    "watchlistType": "watchlist",
    "watchlistAlias": "highValueAsset",
    "itemsSearchKey": "header1",
    "isDeleted": false,
    "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd"
  }
}
{
  "id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/watchlists/highValueAsset",
  "name": "highValueAsset",
  "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
  "type": "Microsoft.SecurityInsights/Watchlists",
  "properties": {
    "watchlistId": "76d5a51f-ba1f-4038-9d22-59fda38dc017",
    "displayName": "High Value Assets Watchlist",
    "provider": "Microsoft",
    "source": "watchlist.csv",
    "sourceType": "Local",
    "created": "2020-09-28T00:26:54.7746089+00:00",
    "updated": "2020-09-28T00:26:57+00:00",
    "createdBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "updatedBy": {
      "objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "email": "john@contoso.com",
      "name": "john doe"
    },
    "description": "Watchlist from CSV content",
    "watchlistType": "watchlist",
    "watchlistAlias": "highValueAsset",
    "itemsSearchKey": "header1",
    "isDeleted": false,
    "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd"
  }
}

Definities

Naam Description
createdByType

Het type identiteit waarmee de resource is gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

SourceType

De bronType van de volglijst

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

UserInfo

Gebruikersinformatie die enige actie heeft ondernomen

Watchlist

Vertegenwoordigt een volglijst in Azure Security Insights.

WatchlistProvisioningState

De bevoorradingsstatus van de watchlist

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Naam Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Naam Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Naam Type Description
error

ErrorDetail

Het foutobject.

SourceType

De bronType van de volglijst

Waarde Description
Local

De bron uit het lokale bestand.

AzureStorage

De bron van Azure-opslag.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Naam Type Description
createdAt

string (date-time)

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit waarmee de resource is gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.

UserInfo

Gebruikersinformatie die enige actie heeft ondernomen

Naam Type Description
email

string

Het e-mailadres van de gebruiker.

name

string

De naam van de gebruiker.

objectId

string (uuid)

De object-id van de gebruiker.

Watchlist

Vertegenwoordigt een volglijst in Azure Security Insights.

Naam Type Description
etag

string

Etag van de Azure-resource

id

string (arm-id)

Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}"

name

string

De naam van de resource

properties.contentType

string

Het inhoudstype van de onbewerkte inhoud. Voorbeeld : tekst/csv of tekst/tsv

properties.created

string (date-time)

Het tijdstip waarop de volglijst is gemaakt

properties.createdBy

UserInfo

Beschrijft een gebruiker die de volglijst heeft gemaakt

properties.defaultDuration

string (duration)

De standaardduur van een watchlijst (in ISO 8601-duurformaat)

properties.description

string

Een beschrijving van de volglijst

properties.displayName

string

De weergavenaam van de volglijst

properties.isDeleted

boolean

Een vlag die aangeeft of de volglijst is verwijderd of niet

properties.itemsSearchKey

string

De zoeksleutel wordt gebruikt om de queryprestaties te optimaliseren bij het gebruik van volglijsten voor joins met andere gegevens. Zorg er bijvoorbeeld voor dat een kolom met IP-adressen het aangewezen SearchKey-veld is en gebruik dit veld vervolgens als het sleutelveld wanneer u op IP-adres deelneemt aan andere gebeurtenisgegevens.

properties.labels

string[]

Lijst van labels die relevant zijn voor deze volglijst

properties.numberOfLinesToSkip

integer (int32)

Het aantal regels in een csv/tsv-inhoud dat moet worden overgeslagen voor de header

properties.provider

string

De aanbieder van de watchlist

properties.provisioningState

WatchlistProvisioningState

Beschrijft de inrichtingsstatus

properties.rawContent

string

De onbewerkte inhoud die staat voor items op de volglijst die moeten worden gemaakt. In het geval van het inhoudstype csv/tsv is het de inhoud van het bestand dat door het eindpunt wordt geparseerd

properties.source

string

De bestandsnaam van de volglijst, genaamd 'bron'

properties.sourceType

SourceType

De bronType van de volglijst

properties.tenantId

string

De tenantId waar de watchlist bij hoort

properties.updated

string (date-time)

De laatste keer dat de volglijst is bijgewerkt

properties.updatedBy

UserInfo

Beschrijft een gebruiker die de volglijst heeft bijgewerkt

properties.uploadStatus

string

De status van het uploaden van de volglijst: Nieuw, In uitvoering of Voltooid. Opmerking : Als de uploadstatus van een volglijst in uitvoering is, kan de volglijst niet worden verwijderd

properties.watchlistAlias

string

De alias van de volglijst

properties.watchlistId

string

De id (een guid) van de volglijst

properties.watchlistType

string

Het type van de volglijst

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

type

string

Het type bron. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

WatchlistProvisioningState

De bevoorradingsstatus van de watchlist

Waarde Description
New

New

InProgress

InProgress

Uploading

Uploaden

Deleting

Verwijderen

Succeeded

Succeeded

Failed

Mislukt

Canceled

Geannuleerd