你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn 。
Private Endpoint Connections - Delete
删除具有给定名称的专用终结点连接。
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2021-11-01
URI 参数
名称
在
必需
类型
说明
privateEndpointConnectionName
path
True
string
resourceGroupName
path
True
string
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。
serverName
path
True
string
服务器的名称。
subscriptionId
path
True
string
用于标识 Azure 订阅的订阅 ID。
api-version
query
True
string
要用于请求的 API 版本。
响应
名称
类型
说明
200 OK
已成功删除专用终结点连接。
202 Accepted
已接受
204 No Content
专用终结点连接不存在。
Other Status Codes
错误响应: ***
400 NetworkingSubscriptionNotRegisteredWithSqlRp - 用于网络端专用终结点的订阅未注册到 SQL 资源提供程序
400 PrivateEndpointConnectionDoesNotExist - 专用终结点连接不存在
400 PrivateEndpointConnectionStatusNotPending - 专用终结点连接状态不挂起
400 NullRemotePrivateLinkServiceConnectionState - 远程专用链接服务连接状态为 Null
400 NullPrivateEndpointConnectionProperties - 专用终结点连接属性为 Null
400 NullRemotePrivateLinkServiceConnectionStateStatus - 远程专用链接服务连接状态状态为 Null
400 IncorrectPrivateLinkServiceConnectionStateStatus - 专用链接服务连接状态必须为“已批准”或“已拒绝”
404 PrivateEndpointConnectionDroppedByOtherWorkflow - {0}
404 SubscriptionDoesNotHaveServer - 找不到请求的服务器
404 ServerNotInSubscriptionResourceGroup - 指定的服务器不存在于指定的资源组和订阅中。
404 OperationIdNotFound - ID 为 的操作不存在。
409 OperationCancelled - 用户已取消该操作。
409 操作中断 - 无法完成对资源的操作,因为它被同一资源上的另一个操作中断。
429 SubscriptionTooManyCreateUpdateRequests - 超出可用资源可处理的最大请求数的请求数。
429 SubscriptionTooManyRequests - 超出可用资源可处理的最大请求数的请求数。
500 OperationTimedOut - 操作超时并自动回滚。 请重试该操作。
503 TooManyRequests - 超出可用资源可处理的最大请求数的请求数。
示例
Deletes a private endpoint connection with a given name.
示例请求
DELETE https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name?api-version=2021-11-01
/**
* Samples for PrivateEndpointConnections Delete.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/examples/PrivateEndpointConnectionDelete.json
*/
/**
* Sample code: Deletes a private endpoint connection with a given name.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void
deletesAPrivateEndpointConnectionWithAGivenName(com.azure.resourcemanager.AzureResourceManager azure) {
azure.sqlServers().manager().serviceClient().getPrivateEndpointConnections().delete("Default", "test-svr",
"private-endpoint-connection-name", com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue