Azure Synapse Analytics SqlPools, BlobAuditing API

The SqlPools, BlobAuditing API from Azure Synapse Analytics — 4 operation(s) for sqlpools, blobauditing.

GitHub OpenAPI

Operations 6

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName} Get a SQL pool's blob auditing policy #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName} Creates or updates a SQL pool's blob auditing policy #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName} Extended sql pool blob auditing policies get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName} Extended sql pool blob auditing policies create or update #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings Sql pool blob auditing policies list by sql pool #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings Extended sql pool blob auditing policies list by sql pool #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/sqlpools
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/monitoring
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/role-assignments
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/notebook
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/dataset
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/linked-service
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/data-flow
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/sql-script
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/trigger
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/spark-job-definition
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/managed-private-endpoints
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/integration-runtimes
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/library
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/ip-firewall-rules
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/keys
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/private-endpoint-connections
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/private-link-hubs
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/azure-ad-only-authentications
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/spark-configuration
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/data-flow-debug-session
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/credential
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/kql-script
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/link-connection

Specifications

Schemas & Data

Other Resources

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-synapse-analytics:microsoft-azure-synapse-analytics-sqlpools-blobauditing-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-synapse-analytics-sqlpools-blobauditing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2021-06-01'
  title: SynapseManagementClient SqlPools, BlobAuditing API
  description: Azure Synapse Analytics APIs
servers:
- url: https://management.azure.com
tags:
- name: SqlPools, BlobAuditing
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}
  : get:
      operationId: SqlPoolBlobAuditingPolicies_Get
      summary: Get a SQL pool's blob auditing policy
      description: Get a SQL pool's blob auditing policy.
      tags:
      - SqlPools, BlobAuditing
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/WorkspaceNameParameter'
      - in: path
        name: sqlPoolName
        description: SQL pool name
        required: true
        schema:
          type: string
      - name: blobAuditingPolicyName
        in: path
        description: The name of the blob auditing policy.
        required: true
        x-ms-enum:
          name: BlobAuditingPolicyName
          modelAsString: false
        x-ms-parameter-location: method
        schema:
          type: string
          enum:
          - default
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SqlPoolBlobAuditingPolicy'
        default:
          description: "*** Error Responses: ***\n\n * 400 BlobAuditingIsNotSupportedOnResourceType - Blob Auditing is currently not supported for this resource type.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 500 DatabaseIsUnavailable - Loading failed. Please try again later."
    put:
      operationId: SqlPoolBlobAuditingPolicies_CreateOrUpdate
      summary: Creates or updates a SQL pool's blob auditing policy
      description: Creates or updates a SQL pool's blob auditing policy.
      tags:
      - SqlPools, BlobAuditing
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/WorkspaceNameParameter'
      - in: path
        name: sqlPoolName
        description: SQL pool name
        required: true
        schema:
          type: string
      - name: blobAuditingPolicyName
        in: path
        description: The name of the blob auditing policy.
        required: true
        x-ms-enum:
          name: BlobAuditingPolicyName
          modelAsString: false
        x-ms-parameter-location: method
        schema:
          type: string
          enum:
          - default
      responses:
        '200':
          description: Successfully set the Sql pool blob auditing policy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SqlPoolBlobAuditingPolicy'
        default:
          description: "*** Error Responses: ***\n\n * 400 BlobAuditingIsNotSupportedOnResourceType - Blob Auditing is currently not supported for this resource type.\n\n * 400 InvalidDatabaseBlobAuditingPolicyCreateRequest - The create database blob auditing policy request does not exist or has no properties object.\n\n * 400 InvalidBlobAuditActionsAndGroups - Invalid audit actions or action groups.\n\n * 400 DataSecurityInvalidUserSuppliedParameter - An invalid parameter value was provided by the client.\n\n * 400 BlobAuditingInvalidStorageAccountName - The provided storage account is not valid or does not exist.\n\n * 400 UpdateNotAllowedOnPausedDatabase - User attempted to perform an update on a paused database.\n\n * 400 BlobAuditingInvalidStorageAccountCredentials - The provided storage account or access key is not valid.\n\n * 400 BlobAuditingIsNotSupportedOnGeoDr - Blob auditing can be configured on primary databases only.\n\n * 400 InvalidBlobAuditActionsAndGroupsForDW - Unsupported audit actions or action groups for DW.\n\n * 400 BlobAuditingInsufficientStorageAccountPermissions - Insufficient read or write permissions on the provided storage account.\n\n * 400 BlobAuditingStorageAccountIsDisabled - The provided storage account is disabled.\n\n * 400 InvalidBlobAuditActions - Invalid audit action\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 500 DatabaseIsUnavailable - Loading failed. Please try again later."
        '201':
          description: Successfully created the Sql pool blob auditing policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SqlPoolBlobAuditingPolicy'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SqlPoolBlobAuditingPolicy'
        description: The database blob auditing policy.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}
  : get:
      tags:
      - SqlPools, BlobAuditing
      description: Gets an extended Sql pool's blob auditing policy.
      operationId: ExtendedSqlPoolBlobAuditingPolicies_Get
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/WorkspaceNameParameter'
      - in: path
        name: sqlPoolName
        description: SQL pool name
        required: true
        schema:
          type: string
      - name: blobAuditingPolicyName
        in: path
        description: The name of the blob auditing policy.
        required: true
        x-ms-enum:
          name: BlobAuditingPolicyName
          modelAsString: false
        x-ms-parameter-location: method
        schema:
          type: string
          enum:
          - default
      responses:
        '200':
          description: Successfully retrieved the extended Sql pool blob auditing policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicy'
        default:
          description: "*** Error Responses: ***\n\n * 400 BlobAuditingIsNotSupportedOnResourceType - Blob Auditing is currently not supported for this resource type.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 500 DatabaseIsUnavailable - Loading failed. Please try again later."
      summary: Extended sql pool blob auditing policies get
      x-summary-source: derived
    put:
      tags:
      - SqlPools, BlobAuditing
      description: Creates or updates an extended Sql pool's blob auditing policy.
      operationId: ExtendedSqlPoolBlobAuditingPolicies_CreateOrUpdate
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/WorkspaceNameParameter'
      - in: path
        name: sqlPoolName
        description: SQL pool name
        required: true
        schema:
          type: string
      - name: blobAuditingPolicyName
        in: path
        description: The name of the blob auditing policy.
        required: true
        x-ms-enum:
          name: BlobAuditingPolicyName
          modelAsString: false
        x-ms-parameter-location: method
        schema:
          type: string
          enum:
          - default
      responses:
        '200':
          description: Successfully set the extended Sql pool blob auditing policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicy'
        '201':
          description: Successfully created the extended database blob auditing policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicy'
        default:
          description: "*** Error Responses: ***\n\n * 400 BlobAuditingIsNotSupportedOnResourceType - Blob Auditing is currently not supported for this resource type.\n\n * 400 BlobAuditingPredicateExpressionSyntaxError - Invalid value of parameter 'predicateExpression'.\n\n * 400 InvalidDatabaseBlobAuditingPolicyCreateRequest - The create database blob auditing policy request does not exist or has no properties object.\n\n * 400 InvalidBlobAuditActionsAndGroups - Invalid audit actions or action groups.\n\n * 400 DataSecurityInvalidUserSuppliedParameter - An invalid parameter value was provided by the client.\n\n * 400 BlobAuditingPredicateExpressionEmpty - Invalid parameter 'predicateExpression', value can not be empty.\n\n * 400 BlobAuditingInvalidStorageAccountName - The provided storage account is not valid or does not exist.\n\n * 400 UpdateNotAllowedOnPausedDatabase - User attempted to perform an update on a paused database.\n\n * 400 BlobAuditingInvalidStorageAccountCredentials - The provided storage account or access key is not valid.\n\n * 400 BlobAuditingIsNotSupportedOnGeoDr - Blob auditing can be configured on primary databases only.\n\n * 400 BlobAuditingNoServerIdentity - The server identity is not correctly configured.\n\n * 400 InvalidBlobAuditActionsAndGroupsForDW - Unsupported audit actions or action groups for DW.\n\n * 400 BlobAuditingInsufficientStorageAccountPermissions - Insufficient read or write permissions on the provided storage account.\n\n * 400 BlobAuditingStorageAccountIsDisabled - The provided storage account is disabled.\n\n * 400 InsufficientDiskSpaceForAuditing - Insufficient disk space to save auditing metadata in the database\n\n * 400 InvalidBlobAuditActions - Invalid audit action\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 500 DatabaseIsUnavailable - Loading failed. Please try again later."
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicy'
        description: The extended Sql pool blob auditing policy.
        required: true
      summary: Extended sql pool blob auditing policies create or update
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings
  : get:
      tags:
      - SqlPools, BlobAuditing
      description: Lists auditing settings of a Sql pool.
      operationId: SqlPoolBlobAuditingPolicies_ListBySqlPool
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/WorkspaceNameParameter'
      - in: path
        name: sqlPoolName
        description: SQL pool name
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved Sql pool auditing settings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SqlPoolBlobAuditingPolicyListResult'
        default:
          description: "*** Error Responses: ***\n\n * 400 BlobAuditingIsNotSupportedOnResourceType - Blob Auditing is currently not supported for this resource type.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 500 DatabaseIsUnavailable - Loading failed. Please try again later."
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Sql pool blob auditing policies list by sql pool
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings
  : get:
      tags:
      - SqlPools, BlobAuditing
      description: Lists extended auditing settings of a Sql pool.
      operationId: ExtendedSqlPoolBlobAuditingPolicies_ListBySqlPool
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/WorkspaceNameParameter'
      - in: path
        name: sqlPoolName
        description: SQL pool name
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the database extended auditing settings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicyListResult'
        default:
          description: "*** Error Responses: ***\n\n * 400 BlobAuditingIsNotSupportedOnResourceType - Blob Auditing is currently not supported for this resource type.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 DatabaseDoesNotExist - User has specified a database name that does not exist on this server instance.\n\n * 500 DatabaseIsUnavailable - Loading failed. Please try again later."
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Extended sql pool blob auditing policies list by sql pool
      x-summary-source: derived
components:
  schemas:
    SqlPoolBlobAuditingPolicyProperties:
      description: Properties of a Sql pool blob auditing policy.
      required:
      - state
      type: object
      properties:
        state:
          description: Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.
          enum:
          - Enabled
          - Disabled
          type: string
          x-ms-enum:
            name: BlobAuditingPolicyState
            modelAsString: false
        storageEndpoint:
          description: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
          type: string
        storageAccountAccessKey:
          description: Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.
          type: string
          x-ms-mutability:
          - create
          - update
        retentionDays:
          format: int32
          description: Specifies the number of days to keep in the audit logs in the storage account.
          type: integer
          x-ms-mutability:
          - create
          - read
        auditActionsAndGroups:
          description: 'Specifies the Actions-Groups and Actions to audit.


            The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins:


            BATCH_COMPLETED_GROUP,

            SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,

            FAILED_DATABASE_AUTHENTICATION_GROUP.


            This above combination is also the set that is configured by default when enabling auditing from the Azure portal.


            The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records):


            APPLICATION_ROLE_CHANGE_PASSWORD_GROUP

            BACKUP_RESTORE_GROUP

            DATABASE_LOGOUT_GROUP

            DATABASE_OBJECT_CHANGE_GROUP

            DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP

            DATABASE_OBJECT_PERMISSION_CHANGE_GROUP

            DATABASE_OPERATION_GROUP

            DATABASE_PERMISSION_CHANGE_GROUP

            DATABASE_PRINCIPAL_CHANGE_GROUP

            DATABASE_PRINCIPAL_IMPERSONATION_GROUP

            DATABASE_ROLE_MEMBER_CHANGE_GROUP

            FAILED_DATABASE_AUTHENTICATION_GROUP

            SCHEMA_OBJECT_ACCESS_GROUP

            SCHEMA_OBJECT_CHANGE_GROUP

            SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP

            SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP

            SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP

            USER_CHANGE_PASSWORD_GROUP

            BATCH_STARTED_GROUP

            BATCH_COMPLETED_GROUP


            These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs.


            For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).


            For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are:

            SELECT

            UPDATE

            INSERT

            DELETE

            EXECUTE

            RECEIVE

            REFERENCES


            The general form for defining an action to be audited is:

            {action} ON {object} BY {principal}


            Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.


            For example:

            SELECT on dbo.myTable by public

            SELECT on DATABASE::myDatabase by public

            SELECT on SCHEMA::mySchema by public


            For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)'
          type: array
          items:
            type: string
            x-ms-mutability:
            - create
            - read
        storageAccountSubscriptionId:
          format: uuid
          description: Specifies the blob storage subscription Id.
          type: string
          x-ms-mutability:
          - create
          - read
        isStorageSecondaryKeyInUse:
          description: Specifies whether storageAccountAccessKey value is the storage's secondary key.
          type: boolean
        isAzureMonitorTargetEnabled:
          description: "Specifies whether audit events are sent to Azure Monitor. \nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\n\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\nNote that for server level audit you should use the 'master' database as {databaseName}.\n\nDiagnostic Settings URI format:\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\n\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\n"
          type: boolean
          default: false
    SqlPoolBlobAuditingPolicy:
      description: A Sql pool blob auditing policy.
      type: object
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
      properties:
        kind:
          description: Resource kind.
          type: string
          readOnly: true
        properties:
          $ref: '#/components/schemas/SqlPoolBlobAuditingPolicyProperties'
          description: Resource properties.
          x-ms-client-flatten: true
    ExtendedSqlPoolBlobAuditingPolicyProperties:
      description: Properties of an extended Sql pool blob auditing policy.
      required:
      - state
      type: object
      properties:
        predicateExpression:
          description: Specifies condition of where clause when creating an audit.
          type: string
        state:
          description: Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required.
          enum:
          - Enabled
          - Disabled
          type: string
          x-ms-enum:
            name: BlobAuditingPolicyState
            modelAsString: false
        storageEndpoint:
          description: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required.
          type: string
        storageAccountAccessKey:
          description: "Specifies the identifier key of the auditing storage account. \nIf state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.\nPrerequisites for using managed identity authentication:\n1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).\n2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.\nFor more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)"
          type: string
          x-ms-mutability:
          - create
          - update
        retentionDays:
          format: int32
          description: Specifies the number of days to keep in the audit logs in the storage account.
          type: integer
        auditActionsAndGroups:
          description: 'Specifies the Actions-Groups and Actions to audit.


            The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins:


            BATCH_COMPLETED_GROUP,

            SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,

            FAILED_DATABASE_AUTHENTICATION_GROUP.


            This above combination is also the set that is configured by default when enabling auditing from the Azure portal.


            The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records):


            APPLICATION_ROLE_CHANGE_PASSWORD_GROUP

            BACKUP_RESTORE_GROUP

            DATABASE_LOGOUT_GROUP

            DATABASE_OBJECT_CHANGE_GROUP

            DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP

            DATABASE_OBJECT_PERMISSION_CHANGE_GROUP

            DATABASE_OPERATION_GROUP

            DATABASE_PERMISSION_CHANGE_GROUP

            DATABASE_PRINCIPAL_CHANGE_GROUP

            DATABASE_PRINCIPAL_IMPERSONATION_GROUP

            DATABASE_ROLE_MEMBER_CHANGE_GROUP

            FAILED_DATABASE_AUTHENTICATION_GROUP

            SCHEMA_OBJECT_ACCESS_GROUP

            SCHEMA_OBJECT_CHANGE_GROUP

            SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP

            SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP

            SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP

            USER_CHANGE_PASSWORD_GROUP

            BATCH_STARTED_GROUP

            BATCH_COMPLETED_GROUP


            These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs.


            For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).


            For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are:

            SELECT

            UPDATE

            INSERT

            DELETE

            EXECUTE

            RECEIVE

            REFERENCES


            The general form for defining an action to be audited is:

            {action} ON {object} BY {principal}


            Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.


            For example:

            SELECT on dbo.myTable by public

            SELECT on DATABASE::myDatabase by public

            SELECT on SCHEMA::mySchema by public


            For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)'
          type: array
          items:
            type: string
        storageAccountSubscriptionId:
          format: uuid
          description: Specifies the blob storage subscription Id.
          type: string
        isStorageSecondaryKeyInUse:
          description: Specifies whether storageAccountAccessKey value is the storage's secondary key.
          type: boolean
        isAzureMonitorTargetEnabled:
          description: "Specifies whether audit events are sent to Azure Monitor. \nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\n\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\nNote that for server level audit you should use the 'master' database as {databaseName}.\n\nDiagnostic Settings URI format:\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\n\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\n"
          type: boolean
        queueDelayMs:
          format: int32
          description: 'Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.

            The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.'
          type: integer
    ProxyResource:
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
    SqlPoolBlobAuditingPolicyListResult:
      description: A list of Sql pool auditing settings.
      type: object
      properties:
        value:
          description: Array of results.
          type: array
          items:
            $ref: '#/components/schemas/SqlPoolBlobAuditingPolicy'
          readOnly: true
        nextLink:
          description: Link to retrieve next page of results.
          type: string
          readOnly: true
    ExtendedSqlPoolBlobAuditingPolicy:
      description: An extended Sql pool blob auditing policy.
      type: object
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
      properties:
        properties:
          $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicyProperties'
          description: Resource properties.
          x-ms-client-flatten: true
    ExtendedSqlPoolBlobAuditingPolicyListResult:
      description: A list of sql pool extended auditing settings.
      type: object
      properties:
        value:
          description: Array of results.
          type: array
          items:
            $ref: '#/components/schemas/ExtendedSqlPoolBlobAuditingPolicy'
          readOnly: true
        nextLink:
          description: Link to retrieve next page of results.
          type: string
          readOnly: true
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: The ID of the target subscription.
      schema:
        type: string
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: The API version to use for this operation.
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group. The name is case insensitive.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    WorkspaceNameParameter:
      name: workspaceName
      in: path
      description: The name of the workspace.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  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