Linked Services - Delete
删除链接服务实例。
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}?api-version=2025-02-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
linked
|
path | True |
string |
链接服务的名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
workspace
|
path | True |
string minLength: 4maxLength: 63 pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ |
工作区的名称。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定响应定义。 |
|
202 Accepted |
接受的响应定义。 |
|
204 No Content |
NoContent 响应定义。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
LinkedServicesDelete
示例请求
示例响应
azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/providers/Microsoft.OperaitonalInsights/locations/eastus/operationstatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2025-02-01
{
"properties": {
"writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster",
"provisioningState": "Deleting"
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster",
"name": "TestLinkWS/Cluster",
"type": "Microsoft.OperationalInsights/workspaces/linkedServices"
}
定义
名称 | 说明 |
---|---|
Linked |
顶级链接服务资源容器。 |
Linked |
链接服务的预配状态。 |
LinkedService
顶级链接服务资源容器。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定资源 ID。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
资源的名称 |
properties.provisioningState |
链接服务的预配状态。 |
|
properties.resourceId |
string |
将链接到工作区的资源的资源 ID。 这应该用于链接需要读取访问权限的资源 |
properties.writeAccessResourceId |
string |
将链接到工作区的资源的资源 ID。 这应该用于链接需要写入访问权限的资源 |
tags |
object |
资源标记。 |
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
LinkedServiceEntityStatus
链接服务的预配状态。
值 | 说明 |
---|---|
Deleting | |
ProvisioningAccount | |
Succeeded | |
Updating |