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

Watchers - Stop

停止监视为数据库观察程序配置的所有目标的操作。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/stop?api-version=2025-01-02

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

minLength: 1
maxLength: 90

资源组的名称。 名称不区分大小写。

subscriptionId
path True

string (uuid)

目标订阅的 ID。 该值必须是 UUID。

watcherName
path True

string

pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$

数据库观察程序名称。

api-version
query True

string

minLength: 1

用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

Watcher

Azure 操作已成功完成。

202 Accepted

已接受资源操作。

标头

  • Location: string
  • Retry-After: integer
Other Status Codes

ErrorResponse

意外的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

Watchers_Stop_MaximumSet

示例请求

POST https://management.azure.com/subscriptions/A76F9850-996B-40B3-94D4-C98110A0EEC9/resourceGroups/rgWatcher/providers/Microsoft.DatabaseWatcher/watchers/myWatcher/stop?api-version=2025-01-02

示例响应

{
  "properties": {
    "status": "Starting",
    "defaultAlertRuleIdentityResourceId": "/subscriptions/469DD77C-C8DB-47B7-B9E1-72D29F8C878B/resourceGroups/rgWatcher/providers/Microsoft.ManagedIdentity/userAssignedIdentities/3pmtest",
    "datastore": {
      "adxClusterResourceId": "/subscriptions/49e0fbd3-75e8-44e7-96fd-5b64d9ad818d/resourceGroups/apiTest/providers/Microsoft.Kusto/clusters/apiTestKusto",
      "kustoClusterUri": "https://kustouri-adx.eastus.kusto.windows.net",
      "kustoClusterDisplayName": "kustoUri-adx",
      "kustoDataIngestionUri": "https://ingest-kustouri-adx.eastus.kusto.windows.net",
      "kustoDatabaseName": "kustoDatabaseName1",
      "kustoManagementUrl": "https://portal.azure.com/",
      "kustoOfferingType": "adx"
    },
    "provisioningState": "Succeeded"
  },
  "identity": {
    "type": "SystemAssigned",
    "userAssignedIdentities": {},
    "principalId": "49e0fbd3-75e8-44e7-96fd-5b64d9ad818d",
    "tenantId": "49e0fbd3-75e8-44e7-96fd-5b64d9ad818d"
  },
  "tags": {},
  "location": "eastus2",
  "id": "/subscriptions/49e0fbd3-75e8-44e7-96fd-5b64d9ad818d/resourceGroups/dummyrg/providers/Microsoft.DatabaseWatcher/watchers/myWatcher",
  "name": "myWatcher",
  "type": "microsoft.databasewatcher/watchers",
  "systemData": {
    "createdBy": "enbpvlpqbwd",
    "createdByType": "User",
    "createdAt": "2024-07-25T15:38:47.092Z",
    "lastModifiedBy": "mxp",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2024-07-25T15:38:47.092Z"
  }
}
Azure-AsyncOperation: https://contoso.com/operationstatus

定义

名称 说明
createdByType

创建资源的标识的类型。

DatabaseWatcherProvisioningState

上次对资源执行的预配操作的状态。

Datastore

数据存储的属性。

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

KustoOfferingType

Kusto 产品/服务的类型。

ManagedServiceIdentity

托管服务标识(系统分配和/或用户分配的标识)

ManagedServiceIdentityType

托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。

systemData

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

UserAssignedIdentity

用户分配的标识属性

Watcher

DatabaseWatcherProviderHub 资源。

WatcherStatus

观察程序的监视集合状态。

createdByType

创建资源的标识的类型。

说明
User
Application
ManagedIdentity
Key

DatabaseWatcherProvisioningState

上次对资源执行的预配操作的状态。

说明
Succeeded

已创建资源。

Failed

资源创建失败。

Canceled

资源创建已取消。

Datastore

数据存储的属性。

名称 类型 说明
adxClusterResourceId

string (arm-id)

Azure 数据资源管理器群集的 Azure 资源 ID。

kustoClusterDisplayName

string

Kusto 群集显示名称。

kustoClusterUri

string

Kusto 群集 URI。

kustoDataIngestionUri

string

Kusto 数据引入 URI。

kustoDatabaseName

string

Kusto 数据库的名称。

kustoManagementUrl

string

Kusto 管理 URL。

kustoOfferingType

KustoOfferingType

Kusto 产品/服务的类型。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

KustoOfferingType

Kusto 产品/服务的类型。

说明
adx

Azure 数据资源管理器群集 Kusto 产品/服务。

free

免费的 Azure 数据资源管理器群集 Kusto 产品/服务。

fabric

Fabric Real-Time Analytics Kusto 产品/服务。

ManagedServiceIdentity

托管服务标识(系统分配和/或用户分配的标识)

名称 类型 说明
principalId

string (uuid)

系统分配标识的服务主体 ID。 此属性仅针对系统分配的标识提供。

tenantId

string (uuid)

系统分配标识的租户 ID。 此属性仅针对系统分配的标识提供。

type

ManagedServiceIdentityType

托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。

userAssignedIdentities

<string,  UserAssignedIdentity>

User-Assigned 标识
与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。

ManagedServiceIdentityType

托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。

说明
None
SystemAssigned
UserAssigned
SystemAssigned, UserAssigned

systemData

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

名称 类型 说明
createdAt

string (date-time)

资源创建时间戳(UTC)。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识的类型。

lastModifiedAt

string (date-time)

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

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

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

UserAssignedIdentity

用户分配的标识属性

名称 类型 说明
clientId

string (uuid)

分配的标识的客户端 ID。

principalId

string (uuid)

已分配标识的主体 ID。

Watcher

DatabaseWatcherProviderHub 资源。

名称 类型 说明
id

string (arm-id)

资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”

identity

ManagedServiceIdentity

分配给此资源的托管服务标识。

location

string

资源所在的地理位置

name

string

资源的名称

properties.datastore

Datastore

用于收集监视数据的数据存储。

properties.defaultAlertRuleIdentityResourceId

string (arm-id)

将分配给新警报规则的用户分配托管标识的资源 ID。

properties.provisioningState

DatabaseWatcherProvisioningState

资源观察程序的预配状态。

properties.status

WatcherStatus

观察程序的监视集合状态。

systemData

systemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

tags

object

资源标记。

type

string

资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

WatcherStatus

观察程序的监视集合状态。

说明
Starting

表示观察程序处于起始状态。

Running

表示观察程序处于运行状态。

Stopping

表示观察程序处于停止状态。

Stopped

表示观察程序处于停止状态。

Deleting

表示观察程序处于删除状态。