你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Server Advanced Threat Protection Settings - Get

获取服务器的高级威胁防护状态。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advancedThreatProtectionSettings/Default?api-version=2021-11-01

URI 参数

名称 必需 类型 说明
advancedThreatProtectionName
path True

AdvancedThreatProtectionName

高级威胁防护状态的名称。

resourceGroupName
path True

string

包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。

serverName
path True

string

服务器的名称。

subscriptionId
path True

string

用于标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

响应

名称 类型 说明
200 OK

ServerAdvancedThreatProtection

已成功检索服务器的“高级威胁防护”状态。

Other Status Codes

错误响应: ***

  • 400 UpdateNotAllowedOnServerContainingPausedDWDatabase - 在具有暂停Data Warehouse数据库的服务器上,不允许设置服务器高级威胁防护设置

  • 400 AdvancedThreatProtectionInsufficientDiskSpace - 磁盘空间不足,无法将高级威胁防护设置元数据保存在数据库中

  • 400 InvalidServerAdvancedThreatProtectionCreateRequest - 创建服务器高级威胁防护请求不存在或没有属性对象

  • 400 AdvancedThreatProtectionInvalidUserSuppliedParameter - 客户端提供的参数值无效

  • 400 UpsertServerAdvancedThreatProtectionFailed - 保存高级威胁防护设置时出错,请稍后重试

  • 400 UpsertServerAdvancedThreatProtectionFailed - 保存高级威胁防护设置时出错,请稍后重试

  • 404 SubscriptionDoesNotHaveServer - 找不到请求的服务器

  • 404 UpsertServerAdvancedThreatProtectionFailed - 保存高级威胁防护设置时出错,请稍后重试

  • 409 ServerAdvancedThreatProtectionInProgress - 设置服务器高级威胁防护设置已在进行中

  • 409 UpsertServerAdvancedThreatProtectionFailed - 保存高级威胁防护设置时出错,请稍后重试

  • 500 DatabaseIsUnavailable - 加载失败。 请稍后再试。

  • 500 UpsertServerAdvancedThreatProtectionFailed - 保存高级威胁防护设置时出错,请稍后重试

  • 500 GetServerAdvancedThreatProtectionFailed - 无法获取高级威胁防护设置

示例

Get a server's Advanced Threat Protection settings

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/threatprotection-4799/providers/Microsoft.Sql/servers/threatprotection-6440/advancedThreatProtectionSettings/Default?api-version=2021-11-01

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"
  }
}

定义

名称 说明
AdvancedThreatProtectionName

高级威胁防护状态的名称。

AdvancedThreatProtectionState

指定高级威胁防护的状态,无论它是启用或禁用,还是尚未在特定数据库或服务器上应用状态。

createdByType

创建资源的标识类型。

ServerAdvancedThreatProtection

服务器高级威胁防护。

systemData

与资源的创建和上次修改相关的元数据。

AdvancedThreatProtectionName

高级威胁防护状态的名称。

名称 类型 说明
Default

string

AdvancedThreatProtectionState

指定高级威胁防护的状态,无论它是启用或禁用,还是尚未在特定数据库或服务器上应用状态。

名称 类型 说明
Disabled

string

Enabled

string

New

string

createdByType

创建资源的标识类型。

名称 类型 说明
Application

string

Key

string

ManagedIdentity

string

User

string

ServerAdvancedThreatProtection

服务器高级威胁防护。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.creationTime

string

指定策略的 UTC 创建时间。

properties.state

AdvancedThreatProtectionState

指定高级威胁防护的状态,无论它是启用或禁用,还是尚未在特定数据库或服务器上应用状态。

systemData

systemData

AdvancedThreatProtectionResource 的 SystemData。

type

string

资源类型。

systemData

与资源的创建和上次修改相关的元数据。

名称 类型 说明
createdAt

string

资源的创建时间戳 (UTC) 。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识类型。

lastModifiedAt

string

资源上次修改的时间戳 (UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识类型。