Azure Database for MySQL Advanced Threat Protection Settings API
The AdvancedThreatProtectionSettings API from Azure Database for MySQL — 2 operation(s) for advancedthreatprotectionsettings.
The AdvancedThreatProtectionSettings API from Azure Database for MySQL — 2 operation(s) for advancedthreatprotectionsettings.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/microsoft-azure-mysql:microsoft-azure-mysql-advancedthreatprotectionsettings-api"
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.
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:
title: MySQLManagementClient Advanced Threat Protection Settings…
version: '2024-12-30'
description: The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: AdvancedThreatProtectionSettings
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings
: get:
operationId: AdvancedThreatProtectionSettings_List
tags:
- AdvancedThreatProtectionSettings
description: Gets a list of server's Advanced Threat Protection states.
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
maxLength: 63
minLength: 1
pattern: ^[a-z0-9][-a-z0-9]*(?<!-)$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtectionListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-pageable:
nextLinkName: nextLink
summary: Advanced threat protection settings list
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
: get:
operationId: AdvancedThreatProtectionSettings_Get
tags:
- AdvancedThreatProtectionSettings
description: Get a server's Advanced Threat Protection state
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
maxLength: 63
minLength: 1
pattern: ^[a-z0-9][-a-z0-9]*(?<!-)$
- name: advancedThreatProtectionName
in: path
description: The name of the Advanced Threat Protection state.
required: true
x-ms-enum:
name: AdvancedThreatProtectionName
modelAsString: true
values:
- name: Default
value: Default
schema:
type: string
enum:
- Default
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtection'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
summary: Advanced threat protection settings get
x-summary-source: derived
put:
operationId: AdvancedThreatProtectionSettings_UpdatePut
tags:
- AdvancedThreatProtectionSettings
description: Updates a server's Advanced Threat Protection state.
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
maxLength: 63
minLength: 1
pattern: ^[a-z0-9][-a-z0-9]*(?<!-)$
- name: advancedThreatProtectionName
in: path
description: The name of the Advanced Threat Protection state.
required: true
x-ms-enum:
name: AdvancedThreatProtectionName
modelAsString: true
values:
- name: Default
value: Default
schema:
type: string
enum:
- Default
responses:
'200':
description: Resource 'AdvancedThreatProtection' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtection'
'201':
description: Resource 'AdvancedThreatProtection' create operation succeeded
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
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtection'
'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: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/AdvancedThreatProtection'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtection'
description: The server's Advanced Threat Protection body to update.
required: true
summary: Advanced threat protection settings update put
x-summary-source: derived
patch:
operationId: AdvancedThreatProtectionSettings_Update
tags:
- AdvancedThreatProtectionSettings
description: Updates a server's Advanced Threat Protection state.
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
maxLength: 63
minLength: 1
pattern: ^[a-z0-9][-a-z0-9]*(?<!-)$
- name: advancedThreatProtectionName
in: path
description: The name of the Advanced Threat Protection state.
required: true
x-ms-enum:
name: AdvancedThreatProtectionName
modelAsString: true
values:
- name: Default
value: Default
schema:
type: string
enum:
- Default
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtection'
'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: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/AdvancedThreatProtection'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AdvancedThreatProtectionForUpdate'
description: The server's Advanced Threat Protection body to update.
required: true
summary: Advanced threat protection settings update
x-summary-source: derived
components:
parameters:
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
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
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
schemas:
ErrorDetail:
type: object
description: The error detail.
properties:
code:
type: string
description: The error code.
readOnly: true
message:
type: string
description: The error message.
readOnly: true
target:
type: string
description: The error target.
readOnly: true
details:
type: array
description: The error details.
items:
$ref: '#/components/schemas/ErrorDetail'
readOnly: true
x-ms-identifiers:
- message
- target
additionalInfo:
type: array
description: The error additional info.
items:
$ref: '#/components/schemas/ErrorAdditionalInfo'
readOnly: true
x-ms-identifiers: []
AdvancedThreatProtectionUpdateProperties:
type: object
description: Properties of Advanced Threat Protection that can be updated.
properties:
state:
$ref: '#/components/schemas/AdvancedThreatProtectionState'
description: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.
required:
- state
Resource:
type: object
title: Resource
description: Common fields that are returned in the response for all Azure Resource Manager resources
properties:
id:
type: string
format: arm-id
description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
readOnly: true
name:
type: string
description: The name of the resource
readOnly: true
type:
type: string
description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
readOnly: true
systemData:
$ref: '#/components/schemas/systemData'
description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
readOnly: true
x-ms-azure-resource: true
AdvancedThreatProtectionProperties:
type: object
description: Properties of an Advanced Threat Protection setting.
properties:
creationTime:
type: string
format: date-time
description: Specifies the UTC creation time of the policy.
readOnly: true
state:
$ref: '#/components/schemas/AdvancedThreatProtectionState'
description: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.
provisioningState:
$ref: '#/components/schemas/AdvancedThreatProtectionProvisioningState'
description: Provisioning state of the Threat Protection.
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.
AdvancedThreatProtectionState:
type: string
description: Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled on the server.
enum:
- Enabled
- Disabled
x-ms-enum:
name: AdvancedThreatProtectionState
modelAsString: true
values:
- name: Enabled
value: Enabled
- name: Disabled
value: Disabled
AdvancedThreatProtectionProvisioningState:
type: string
description: The current provisioning state.
enum:
- Succeeded
- Updating
- Canceled
- Failed
x-ms-enum:
name: AdvancedThreatProtectionProvisioningState
modelAsString: true
values:
- name: Succeeded
value: Succeeded
- name: Updating
value: Updating
- name: Canceled
value: Canceled
- name: Failed
value: Failed
AdvancedThreatProtectionForUpdate:
type: object
description: Parameters allowed to update advanced threat protection for a server.
properties:
properties:
$ref: '#/components/schemas/AdvancedThreatProtectionUpdateProperties'
description: Resource update properties.
x-ms-client-flatten: true
AdvancedThreatProtectionListResult:
type: object
description: The response of a AdvancedThreatProtection list operation.
properties:
value:
type: array
description: The AdvancedThreatProtection items on this page
items:
$ref: '#/components/schemas/AdvancedThreatProtection'
readOnly: true
nextLink:
type: string
format: uri
description: The link to the next page of items
AdvancedThreatProtection:
type: object
description: A server's Advanced Threat Protection.
properties:
properties:
$ref: '#/components/schemas/AdvancedThreatProtectionProperties'
description: Resource properties.
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/ProxyResource'
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.