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

IExtensionsOperations.DeleteWithHttpMessagesAsync 方法

定义

删除 Kubernetes 群集扩展。 这将导致代理从群集中卸载扩展。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync (string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, bool? forceDelete = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteWithHttpMessagesAsync : string * string * string * string * string * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function DeleteWithHttpMessagesAsync (resourceGroupName As String, clusterRp As String, clusterResourceName As String, clusterName As String, extensionName As String, Optional forceDelete As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

参数

resourceGroupName
String

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

clusterRp
String

Kubernetes 群集 RP - 适用于 AKS 群集的 Microsoft.ContainerService () 或 Microsoft.Kubernetes (for OnPrem K8S 群集) 。 可能的值包括:“Microsoft.ContainerService”、“Microsoft.Kubernetes”

clusterResourceName
String

Kubernetes 群集资源名称 - 适用于 AKS 群集的 managedClusters () 或 onPrem K8S 群集的 connectedClusters () 。 可能的值包括:“managedClusters”、“connectedClusters”

clusterName
String

kubernetes 群集的名称。

extensionName
String

扩展的名称。

forceDelete
Nullable<Boolean>

删除 Azure 中的扩展资源 - 而不是正常的异步删除。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

操作返回无效状态代码时引发

当所需的参数为 null 时引发

适用于