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

MaintenanceExtensions.DeleteConfigurationAssignmentByParentAsync 方法

定义

重载

DeleteConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceDeleteConfigurationAssignmentByParentOptions, CancellationToken)

取消注册资源的配置。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignments_DeleteParent
DeleteConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, CancellationToken)

取消注册资源的配置。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignments_DeleteParent

DeleteConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceDeleteConfigurationAssignmentByParentOptions, CancellationToken)

取消注册资源的配置。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignments_DeleteParent
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> DeleteConfigurationAssignmentByParentAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Maintenance.Models.ResourceGroupResourceDeleteConfigurationAssignmentByParentOptions options, System.Threading.CancellationToken cancellationToken = default);
static member DeleteConfigurationAssignmentByParentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.Maintenance.Models.ResourceGroupResourceDeleteConfigurationAssignmentByParentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function DeleteConfigurationAssignmentByParentAsync (resourceGroupResource As ResourceGroupResource, options As ResourceGroupResourceDeleteConfigurationAssignmentByParentOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

options
ResourceGroupResourceDeleteConfigurationAssignmentByParentOptions

一个属性包,其中包含除 LRO 限定符和请求上下文参数以外的此方法的所有参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

options 为 null。

适用于

DeleteConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, CancellationToken)

取消注册资源的配置。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignments_DeleteParent
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> DeleteConfigurationAssignmentByParentAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member DeleteConfigurationAssignmentByParentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function DeleteConfigurationAssignmentByParentAsync (resourceGroupResource As ResourceGroupResource, providerName As String, resourceParentType As String, resourceParentName As String, resourceType As String, resourceName As String, configurationAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

providerName
String

资源提供程序名称。

resourceParentType
String

资源父类型。

resourceParentName
String

资源父标识符。

resourceType
String

资源类型。

resourceName
String

资源标识符。

configurationAssignmentName
String

唯一的配置分配名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

providerNameresourceParentTyperesourceParentNameresourceTyperesourceNameconfigurationAssignmentName 是空字符串,预期为非空。

providerNameresourceParentTyperesourceParentNameresourceTyperesourceNameconfigurationAssignmentName 为 null。

适用于