Server Advanced Threat Protection Settings - Get
Get a server's Advanced Threat Protection state.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/Default?api-version=2021-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
advanced
|
path | True |
The name of the Advanced Threat Protection state. |
|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
server
|
path | True |
string |
The name of the server. |
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved the server's Advanced Threat Protection state. |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Get a server's Advanced Threat Protection settings
Sample request
Sample response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/threatprotection-4799/providers/Microsoft.Sql/servers/threatprotection-6440/advancedThreatProtectionSettings/Default",
"name": "Default",
"type": "Microsoft.Sql/servers/advancedThreatProtectionSettings",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2022-04-03T04:41:33.937Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-04-03T04:41:33.937Z"
},
"properties": {
"state": "Disabled",
"creationTime": "2022-04-03T04:41:33.937Z"
}
}
Definitions
Name | Description |
---|---|
Advanced |
The name of the Advanced Threat Protection state. |
Advanced |
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. |
created |
The type of identity that created the resource. |
Server |
A server Advanced Threat Protection. |
system |
Metadata pertaining to creation and last modification of the resource. |
AdvancedThreatProtectionName
The name of the Advanced Threat Protection state.
Name | Type | Description |
---|---|---|
Default |
string |
AdvancedThreatProtectionState
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.
Name | Type | Description |
---|---|---|
Disabled |
string |
|
Enabled |
string |
|
New |
string |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ServerAdvancedThreatProtection
A server Advanced Threat Protection.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.creationTime |
string |
Specifies the UTC creation time of the policy. |
properties.state |
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. |
|
systemData |
SystemData of AdvancedThreatProtectionResource. |
|
type |
string |
Resource type. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |