Azure SQL Database Server Dev Ops Audit API

The ServerDevOpsAudit API from Azure SQL Database — 2 operation(s) for serverdevopsaudit.

GitHub OpenAPI

Operations 3

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings Server dev ops audit settings list by server #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName} Server dev ops audit settings get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName} Server dev ops audit settings create or update #

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-sql-database:microsoft-azure-sql-database-serverdevopsaudit-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-sql-database-serverdevopsaudit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SqlManagementClient Server Dev Ops Audit API
  version: '2025-01-01'
  description: The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ServerDevOpsAudit
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings
  : get:
      operationId: ServerDevOpsAuditSettings_ListByServer
      tags:
      - ServerDevOpsAudit
      description: Lists DevOps audit settings of a server.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerDevOpsAuditSettingsListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Server dev ops audit settings list by server
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName}
  : get:
      operationId: ServerDevOpsAuditSettings_Get
      tags:
      - ServerDevOpsAudit
      description: Gets a server's DevOps audit settings.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: devOpsAuditingSettingsName
        in: path
        description: ''
        required: true
        x-ms-enum:
          name: DevOpsAuditingSettingsName
          modelAsString: true
          values:
          - name: Default
            value: Default
            description: Default
        schema:
          type: string
          enum:
          - Default
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerDevOpsAuditingSettings'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Server dev ops audit settings get
      x-summary-source: derived
    put:
      operationId: ServerDevOpsAuditSettings_CreateOrUpdate
      tags:
      - ServerDevOpsAudit
      description: Creates or updates a server's DevOps audit settings.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: serverName
        in: path
        description: The name of the server.
        required: true
        schema:
          type: string
      - name: devOpsAuditingSettingsName
        in: path
        description: ''
        required: true
        x-ms-enum:
          name: DevOpsAuditingSettingsName
          modelAsString: true
          values:
          - name: Default
            value: Default
            description: Default
        schema:
          type: string
          enum:
          - Default
      responses:
        '200':
          description: Resource 'ServerDevOpsAuditingSettings' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerDevOpsAuditingSettings'
        '202':
          description: Resource operation accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/ServerDevOpsAuditingSettings'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServerDevOpsAuditingSettings'
        description: Properties of DevOps audit settings
        required: true
      summary: Server dev ops audit settings create or update
      x-summary-source: derived
components:
  schemas:
    ServerDevOpsAuditSettingsListResult:
      type: object
      description: A list of server DevOps audit settings.
      properties:
        value:
          type: array
          description: Array of results.
          items:
            $ref: '#/components/schemas/ServerDevOpsAuditingSettings'
          readOnly: true
        nextLink:
          type: string
          description: Link to retrieve next page of results.
          readOnly: true
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    BlobAuditingPolicyState:
      type: string
      description: Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.
      enum:
      - Enabled
      - Disabled
      x-ms-enum:
        name: BlobAuditingPolicyState
        modelAsString: false
        values:
        - name: Enabled
          value: Enabled
          description: Enabled
        - name: Disabled
          value: Disabled
          description: Disabled
    Azure.Core.uuid:
      type: string
      format: uuid
      description: Universally Unique Identifier
    ServerDevOpsAuditingSettings:
      type: object
      description: A server DevOps auditing settings.
      properties:
        properties:
          $ref: '#/components/schemas/ServerDevOpsAuditSettingsProperties'
          description: Resource properties.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    ServerDevOpsAuditSettingsProperties:
      type: object
      description: Properties of a server DevOps audit settings.
      properties:
        isAzureMonitorTargetEnabled:
          type: boolean
          description: 'Specifies whether DevOps audit events are sent to Azure Monitor.

            In order to send the events to Azure Monitor, specify ''State'' as ''Enabled'' and ''IsAzureMonitorTargetEnabled'' as true.


            When using REST API to configure DevOps audit, Diagnostic Settings with ''DevOpsOperationsAudit'' diagnostic logs category on the master database should be also created.


            Diagnostic Settings URI format:

            PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview


            For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)

            or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)'
        isManagedIdentityInUse:
          type: boolean
          description: Specifies whether Managed Identity is used to access blob storage
        state:
          $ref: '#/components/schemas/BlobAuditingPolicyState'
          description: Specifies the state of the audit. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.
        storageEndpoint:
          type: string
          description: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
        storageAccountAccessKey:
          type: string
          format: password
          description: 'Specifies the identifier key of the auditing storage account.

            If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.

            Prerequisites for using managed identity authentication:

            1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).

            2. Grant SQL Server identity access to the storage account by adding ''Storage Blob Data Contributor'' RBAC role to the server identity.

            For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)'
          x-ms-mutability:
          - update
          - create
          x-ms-secret: true
        storageAccountSubscriptionId:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: Specifies the blob storage subscription Id.
      required:
      - state
  parameters:
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  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.