Microsoft Azure Watchers API

The Watchers API from Microsoft Azure, for watchers.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/providers/Microsoft.DatabaseWatcher/watchers List database watchers in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Which database watchers are set up across my Azure subscription?”
“Can I see every database watcher without choosing a resource group?”
Tell an agent
List all database watchers in my subscription.
Show every database watcher across the subscription.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers List database watchers in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What database watchers are in one resource group?”
“Can I scope the database watcher list to a resource group?”
Tell an agent
List database watchers in this resource group.
Show the database watchers in my resource group.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName} Get a database watcher · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How can I view the configuration of one database watcher?”
“Is a particular database watcher running or stopped?”
Tell an agent
Get database watcher {watcherName}.
Show the status and settings of watcher {watcherName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName} Create a database watcher · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a database watcher to monitor my Azure SQL databases?”
“Can I give a new database watcher a managed identity?”
Tell an agent
Create database watcher {watcherName}.
Create watcher {watcherName} with identity {identity} and properties {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName} Update a database watcher · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change tags or identity on an existing database watcher?”
“What settings of a database watcher can be patched?”
Tell an agent
Update tags on database watcher {watcherName} to {tags}.
Change the identity of existing watcher {watcherName} to {identity}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName} Delete a database watcher · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete a database watcher I no longer need?”
“What happens to monitoring when a database watcher is deleted?”
Tell an agent destructive · confirm first
Delete database watcher {watcherName}.
Remove the watcher {watcherName} permanently.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/start Start monitoring with a database watcher · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I start a database watcher monitoring its configured targets?”
“Can I turn monitoring back on for a stopped watcher?”
Tell an agent
Start database watcher {watcherName}.
Begin monitoring all targets of watcher {watcherName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop Stop monitoring with a database watcher · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I pause a database watcher from monitoring its targets?”
“How do I stop a database watcher without deleting it?”
Tell an agent
Stop database watcher {watcherName}.
Halt monitoring of all targets for watcher {watcherName}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-watchers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-watchers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Microsoft.DatabaseWatcher Watchers API
  version: 2023-09-01-preview
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Watchers
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.DatabaseWatcher/watchers:
    get:
      operationId: microsoftAzureWatchersListbysubscription
      tags:
      - Watchers
      description: List Watcher resources by subscription ID
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WatcherListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_ListBySubscription:
          $ref: ./examples/Watchers_ListBySubscription_200.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers:
    get:
      operationId: microsoftAzureWatchersListbyresourcegroup
      tags:
      - Watchers
      description: List Watcher resources by resource group
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WatcherListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_ListByResourceGroup:
          $ref: ./examples/Watchers_ListByResourceGroup_200.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}
  : get:
      operationId: microsoftAzureWatchersGet
      tags:
      - Watchers
      description: Get a Watcher
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_Get:
          $ref: ./examples/Watchers_Get_200.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      operationId: microsoftAzureWatchersCreateorupdate
      tags:
      - Watchers
      description: Create a Watcher
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Resource 'Watcher' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        '201':
          description: Resource 'Watcher' create operation succeeded
          headers:
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_CreateOrUpdate:
          $ref: ./examples/Watchers_CreateOrUpdate_200.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Watcher'
        description: Resource create parameters.
        required: true
    patch:
      operationId: microsoftAzureWatchersUpdate
      tags:
      - Watchers
      description: Update a Watcher
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        '202':
          description: Resource update request accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_Update:
          $ref: ./examples/Watchers_Update_200.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WatcherUpdate'
        description: The resource properties to be updated.
        required: true
    delete:
      operationId: microsoftAzureWatchersDelete
      tags:
      - Watchers
      description: Delete a Watcher
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_Delete:
          $ref: ./examples/Watchers_Delete_200.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/start
  : post:
      operationId: microsoftAzureWatchersStart
      tags:
      - Watchers
      description: The action to start monitoring all targets configured for a database watcher.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        '202':
          description: Resource operation accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_Start:
          $ref: ./examples/Watchers_Start_200.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop
  : post:
      operationId: microsoftAzureWatchersStop
      tags:
      - Watchers
      description: The action to stop monitoring all targets configured for a database watcher.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        '202':
          description: Resource operation accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Watchers_Stop:
          $ref: ./examples/Watchers_Stop_200.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    DatastoreUpdate:
      type: object
      description: The properties of a data store.
      properties:
        adxClusterResourceId:
          type: string
          format: arm-id
          description: The Azure ResourceId of an Azure Data Explorer cluster.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.Kusto/clusters
        kustoClusterDisplayName:
          type: string
          description: The Kusto cluster display name.
        kustoClusterUri:
          type: string
          description: The Kusto cluster URI.
        kustoDataIngestionUri:
          type: string
          description: The Kusto data ingestion URI.
        kustoDatabaseName:
          type: string
          description: The name of a Kusto database.
        kustoManagementUrl:
          type: string
          description: The Kusto management URL.
        kustoOfferingType:
          $ref: '#/components/schemas/KustoOfferingType'
          description: The type of a Kusto offering.
    Watcher:
      type: object
      description: The DatabaseWatcherProviderHub resource.
      properties:
        properties:
          $ref: '#/components/schemas/WatcherProperties'
          description: The resource-specific properties for this resource.
          x-ms-client-flatten: true
          x-ms-mutability:
          - read
          - create
        identity:
          $ref: ../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity
          description: The managed service identities assigned to this resource.
      allOf:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource
    WatcherStatus:
      type: string
      description: The monitoring collection status of a watcher.
      enum:
      - Starting
      - Running
      - Stopping
      - Stopped
      - Deleting
      x-ms-enum:
        name: WatcherStatus
        modelAsString: true
        values:
        - name: Starting
          value: Starting
          description: Denotes the watcher is in a starting state.
        - name: Running
          value: Running
          description: Denotes the watcher is in a running state.
        - name: Stopping
          value: Stopping
          description: Denotes the watcher is in a stopping state.
        - name: Stopped
          value: Stopped
          description: Denotes the watcher is in a stopped state.
        - name: Deleting
          value: Deleting
          description: Denotes the watcher is in a deleting state.
    WatcherUpdate:
      type: object
      description: The type used for update operations of the Watcher.
      properties:
        identity:
          $ref: ../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity
          description: The managed service identities assigned to this resource.
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
        properties:
          $ref: '#/components/schemas/WatcherUpdateProperties'
          x-ms-client-flatten: true
    WatcherUpdateProperties:
      type: object
      description: The updatable properties of the Watcher.
      properties:
        datastore:
          $ref: '#/components/schemas/DatastoreUpdate'
          description: The data store for collected monitoring data.
    WatcherListResult:
      type: object
      description: The response of a Watcher list operation.
      properties:
        value:
          type: array
          description: The Watcher items on this page
          items:
            $ref: '#/components/schemas/Watcher'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    DatabaseWatcherProvisioningState:
      type: string
      description: The status of the last provisioning operation performed on the resource.
      enum:
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: DatabaseWatcherProvisioningState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Resource has been created.
        - name: Failed
          value: Failed
          description: Resource creation failed.
        - name: Canceled
          value: Canceled
          description: Resource creation was canceled.
      readOnly: true
    KustoOfferingType:
      type: string
      description: The type of Kusto offering.
      enum:
      - adx
      - free
      - fabric
      x-ms-enum:
        name: KustoOfferingType
        modelAsString: true
        values:
        - name: adx
          value: adx
          description: The Azure Data Explorer cluster Kusto offering.
        - name: free
          value: free
          description: The free Azure Data Explorer cluster Kusto offering.
        - name: fabric
          value: fabric
          description: The Fabric Real-Time Analytics Kusto offering.
    Datastore:
      type: object
      description: The properties of a data store.
      properties:
        adxClusterResourceId:
          type: string
          format: arm-id
          description: The Azure ResourceId of an Azure Data Explorer cluster.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.Kusto/clusters
        kustoClusterDisplayName:
          type: string
          description: The Kusto cluster display name.
        kustoClusterUri:
          type: string
          description: The Kusto cluster URI.
        kustoDataIngestionUri:
          type: string
          description: The Kusto data ingestion URI.
        kustoDatabaseName:
          type: string
          description: The name of a Kusto database.
        kustoManagementUrl:
          type: string
          description: The Kusto management URL.
        kustoOfferingType:
          $ref: '#/components/schemas/KustoOfferingType'
          description: The type of a Kusto offering.
      required:
      - kustoClusterUri
      - kustoDataIngestionUri
      - kustoDatabaseName
      - kustoManagementUrl
      - kustoOfferingType
    WatcherProperties:
      type: object
      description: The RP specific properties of the resource.
      properties:
        datastore:
          $ref: '#/components/schemas/Datastore'
          description: The data store for collected monitoring data.
        status:
          $ref: '#/components/schemas/WatcherStatus'
          description: The monitoring collection status of the watcher.
          readOnly: true
        provisioningState:
          $ref: '#/components/schemas/DatabaseWatcherProvisioningState'
          description: The provisioning state of the resource watcher.
          readOnly: true
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.