Microsoft.OperationalInsights (preview:2022-12-01)

2025/03/11 • 3 updated methods

Watchlists_List (updated)
Description Gets all watchlists, without watchlist items.
Reference Link ¶

⚶ Changes

{
  "#id": "Watchlists_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "sourceType",
                "Enum": {
                  "new": [
                    [
                      "Local",
                      ""
                    ],
                    [
                      "AzureStorage",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "Local file",
                      ""
                    ],
                    [
                      "Remote storage",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
$skipToken: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
properties:
{
watchlistId: string ,
displayName: string ,
provider: string ,
source: string ,
sourceType: enum ,
created: string ,
updated: string ,
createdBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
updatedBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
description: string ,
watchlistType: string ,
watchlistAlias: string ,
isDeleted: boolean ,
labels:
[
string ,
]
,
defaultDuration: string ,
tenantId: string ,
numberOfLinesToSkip: integer ,
rawContent: string ,
itemsSearchKey: string ,
contentType: string ,
uploadStatus: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Watchlists_Get (updated)
Description Gets a watchlist, without its watchlist items.
Reference Link ¶

⚶ Changes

{
  "#id": "Watchlists_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "sourceType",
            "Enum": {
              "new": [
                [
                  "Local",
                  ""
                ],
                [
                  "AzureStorage",
                  ""
                ]
              ],
              "old": [
                [
                  "Local file",
                  ""
                ],
                [
                  "Remote storage",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
watchlistAlias: string ,
}

⚐ Response (200)

{
properties:
{
watchlistId: string ,
displayName: string ,
provider: string ,
source: string ,
sourceType: enum ,
created: string ,
updated: string ,
createdBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
updatedBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
description: string ,
watchlistType: string ,
watchlistAlias: string ,
isDeleted: boolean ,
labels:
[
string ,
]
,
defaultDuration: string ,
tenantId: string ,
numberOfLinesToSkip: integer ,
rawContent: string ,
itemsSearchKey: string ,
contentType: string ,
uploadStatus: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Watchlists_CreateOrUpdate (updated)
Description Create or update a Watchlist and its Watchlist Items (bulk creation, e.g. through text/csv content type). To create a Watchlist and its Items, we should call this endpoint with either rawContent or a valid SAR URI and contentType properties. The rawContent is mainly used for small watchlist (content size below 3.8 MB). The SAS URI enables the creation of large watchlist, where the content size can go up to 500 MB. The status of processing such large file can be polled through the URL returned in Azure-AsyncOperation header.
Reference Link ¶

⚶ Changes

{
  "#id": "Watchlists_CreateOrUpdate",
  "$parameters": {
    "watchlist": {
      "$properties": {
        "properties": [
          {
            "#name": "sourceType",
            "Enum": {
              "new": [
                [
                  "Local",
                  ""
                ],
                [
                  "AzureStorage",
                  ""
                ]
              ],
              "old": [
                [
                  "Local file",
                  ""
                ],
                [
                  "Remote storage",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "sourceType",
            "Enum": {
              "new": [
                [
                  "Local",
                  ""
                ],
                [
                  "AzureStorage",
                  ""
                ]
              ],
              "old": [
                [
                  "Local file",
                  ""
                ],
                [
                  "Remote storage",
                  ""
                ]
              ]
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "#name": "sourceType",
            "Enum": {
              "new": [
                [
                  "Local",
                  ""
                ],
                [
                  "AzureStorage",
                  ""
                ]
              ],
              "old": [
                [
                  "Local file",
                  ""
                ],
                [
                  "Remote storage",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
watchlistAlias: string ,
watchlist:
{
properties:
{
watchlistId: string ,
displayName: string ,
provider: string ,
source: string ,
sourceType: enum ,
created: string ,
updated: string ,
createdBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
updatedBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
description: string ,
watchlistType: string ,
watchlistAlias: string ,
isDeleted: boolean ,
labels:
[
string ,
]
,
defaultDuration: string ,
tenantId: string ,
numberOfLinesToSkip: integer ,
rawContent: string ,
itemsSearchKey: string ,
contentType: string ,
uploadStatus: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
watchlistId: string ,
displayName: string ,
provider: string ,
source: string ,
sourceType: enum ,
created: string ,
updated: string ,
createdBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
updatedBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
description: string ,
watchlistType: string ,
watchlistAlias: string ,
isDeleted: boolean ,
labels:
[
string ,
]
,
defaultDuration: string ,
tenantId: string ,
numberOfLinesToSkip: integer ,
rawContent: string ,
itemsSearchKey: string ,
contentType: string ,
uploadStatus: string ,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
properties:
{
watchlistId: string ,
displayName: string ,
provider: string ,
source: string ,
sourceType: enum ,
created: string ,
updated: string ,
createdBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
updatedBy:
{
email: string ,
name: string ,
objectId: string ,
}
,
description: string ,
watchlistType: string ,
watchlistAlias: string ,
isDeleted: boolean ,
labels:
[
string ,
]
,
defaultDuration: string ,
tenantId: string ,
numberOfLinesToSkip: integer ,
rawContent: string ,
itemsSearchKey: string ,
contentType: string ,
uploadStatus: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}