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-workspacemanagedsqlserver-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: 3.2.0
info:
version: '2021-06-01'
title: SynapseManagementClient WorkspaceManagedSqlServer…
description: The Azure Synapse SQL management API provides a RESTful set of web APIs that interact with Azure Synapse SQL services to manage your resources. The API enables users to create, retrieve, update, and delete SqlServers sub resources.
servers:
- url: https://management.azure.com
tags:
- name: WorkspaceManagedSqlServer, BlobAuditing
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}
: get:
operationId: WorkspaceManagedSqlServerBlobAuditingPolicies_Get
summary: Get server's blob auditing policy
description: Get a workspace managed sql server's blob auditing policy.
tags:
- WorkspaceManagedSqlServer, BlobAuditing
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/WorkspaceNameParameter'
- name: blobAuditingPolicyName
in: path
description: The name of the blob auditing policy.
required: true
x-ms-enum:
name: BlobAuditingPolicyName
modelAsString: true
schema:
type: string
enum:
- default
responses:
'200':
description: Successfully retrieved workspace managed sql server's blob auditing policy.
content:
application/json:
schema:
$ref: '#/components/schemas/ServerBlobAuditingPolicy'
default:
description: "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
put:
operationId: WorkspaceManagedSqlServerBlobAuditingPolicies_CreateOrUpdate
summary: Create or Update server's blob auditing policy
description: Create or Update a workspace managed sql server's blob auditing policy.
tags:
- WorkspaceManagedSqlServer, BlobAuditing
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/WorkspaceNameParameter'
- name: blobAuditingPolicyName
in: path
description: The name of the blob auditing policy.
required: true
x-ms-enum:
name: BlobAuditingPolicyName
modelAsString: true
schema:
type: string
enum:
- default
responses:
'200':
description: Successfully updated the auditing settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ServerBlobAuditingPolicy'
'202':
description: Accepted
default:
description: "*** Error Responses: ***\n\n * 400 InvalidServerBlobAuditingPolicyCreateRequest - The create server 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 BlobAuditingInvalidStorageAccountCredentials - The provided storage account or access key is not valid.\n\n * 400 InvalidBlobAuditActionsAndGroups - Invalid audit actions or action groups.\n\n * 400 InsufficientDiskSpaceForAuditing - Insufficient disk space to save auditing metadata in the database\n\n 400 InvalidBlobAuditActions - Invalid audit action.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ServerBlobAuditingPolicy'
description: Properties of extended blob auditing policy.
required: true
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings
: get:
operationId: WorkspaceManagedSqlServerBlobAuditingPolicies_ListByWorkspace
summary: List workspace server's blob auditing policies
description: List workspace managed sql server's blob auditing policies.
tags:
- WorkspaceManagedSqlServer, BlobAuditing
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/WorkspaceNameParameter'
responses:
'200':
description: Successfully retrieved auditing settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ServerBlobAuditingPolicyListResult'
default:
description: "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
x-ms-pageable:
nextLinkName: nextLink
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}
: get:
operationId: WorkspaceManagedSqlServerExtendedBlobAuditingPolicies_Get
summary: Get server's extended blob auditing policy
description: Get a workspace SQL server's extended blob auditing policy.
tags:
- WorkspaceManagedSqlServer, BlobAuditing
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/WorkspaceNameParameter'
- name: blobAuditingPolicyName
in: path
description: The name of the blob auditing policy.
required: true
x-ms-enum:
name: BlobAuditingPolicyName
modelAsString: true
schema:
type: string
enum:
- default
responses:
'200':
description: Successfully retrieved extended auditing settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ExtendedServerBlobAuditingPolicy'
default:
description: "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
put:
operationId: WorkspaceManagedSqlServerExtendedBlobAuditingPolicies_CreateOrUpdate
summary: Create or Update server's extended blob auditing policy
description: Create or Update a workspace managed sql server's extended blob auditing policy.
tags:
- WorkspaceManagedSqlServer, BlobAuditing
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/WorkspaceNameParameter'
- name: blobAuditingPolicyName
in: path
description: The name of the blob auditing policy.
required: true
x-ms-enum:
name: BlobAuditingPolicyName
modelAsString: true
schema:
type: string
enum:
- default
responses:
'200':
description: Successfully updated the extended auditing settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ExtendedServerBlobAuditingPolicy'
'202':
description: Accepted
default:
description: "*** Error Responses: ***\n\n * 400 InvalidServerBlobAuditingPolicyCreateRequest - The create server 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 BlobAuditingInvalidStorageAccountCredentials - The provided storage account or access key is not valid.\n\n * 400 InvalidBlobAuditActionsAndGroups - Invalid audit actions or action groups.\n\n * 400 InsufficientDiskSpaceForAuditing - Insufficient disk space to save auditing metadata in the database\n\n * 400 InvalidBlobAuditActions - Invalid audit action\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 ServerBlobAuditingPolicyInProgress - Set server blob auditing is already in progress.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExtendedServerBlobAuditingPolicy'
description: Properties of extended blob auditing policy.
required: true
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings
: get:
operationId: WorkspaceManagedSqlServerExtendedBlobAuditingPolicies_ListByWorkspace
summary: List server's extended blob auditing policies
description: List workspace managed sql server's extended blob auditing policies.
tags:
- WorkspaceManagedSqlServer, BlobAuditing
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- $ref: '#/components/parameters/WorkspaceNameParameter'
responses:
'200':
description: Successfully retrieved extended auditing settings.
content:
application/json:
schema:
$ref: '#/components/schemas/ExtendedServerBlobAuditingPolicyListResult'
default:
description: "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.n\n * 500 InternalServerError - Something went wrong."
x-ms-pageable:
nextLinkName: nextLink
components:
schemas:
ServerBlobAuditingPolicyListResult:
description: A list of server auditing settings.
type: object
properties:
value:
description: Array of results.
type: array
items:
$ref: '#/components/schemas/ServerBlobAuditingPolicy'
readOnly: true
nextLink:
description: Link to retrieve next page of results.
type: string
readOnly: true
ServerBlobAuditingPolicy:
description: A server blob auditing policy.
type: object
allOf:
- $ref: '#/components/schemas/ProxyResource'
properties:
properties:
$ref: '#/components/schemas/ServerBlobAuditingPolicyProperties'
description: Resource properties.
x-ms-client-flatten: true
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'
ExtendedServerBlobAuditingPolicy:
description: An extended server blob auditing policy.
type: object
allOf:
- $ref: '#/components/schemas/ProxyResource'
properties:
properties:
$ref: '#/components/schemas/ExtendedServerBlobAuditingPolicyProperties'
description: Resource properties.
x-ms-client-flatten: true
ServerBlobAuditingPolicyProperties:
description: Properties of a server 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 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
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
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
isDevopsAuditEnabled:
description: 'Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor.
In order to send the events to Azure Monitor, specify ''State'' as ''Enabled'', ''IsAzureMonitorTargetEnabled'' as true and ''IsDevopsAuditEnabled'' as true
When using REST API to configure auditing, Diagnostic Settings with ''DevOpsOperationsAudit'' diagnostic logs category on the master database should also be 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)
'
type: boolean
ExtendedServerBlobAuditingPolicyListResult:
description: A list of server extended auditing settings.
type: object
properties:
value:
description: Array of results.
type: array
items:
$ref: '#/components/schemas/ExtendedServerBlobAuditingPolicy'
readOnly: true
nextLink:
description: Link to retrieve next page of results.
type: string
readOnly: true
ExtendedServerBlobAuditingPolicyProperties:
description: Properties of an extended server 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
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
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
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
isDevopsAuditEnabled:
description: 'Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor.
In order to send the events to Azure Monitor, specify ''State'' as ''Enabled'', ''IsAzureMonitorTargetEnabled'' as true and ''IsDevopsAuditEnabled'' as true
When using REST API to configure auditing, Diagnostic Settings with ''DevOpsOperationsAudit'' diagnostic logs category on the master database should also be 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)
'
type: boolean
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