你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentByParentAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, MaintenanceConfigurationAssignmentData, CancellationToken) |
注册资源的配置。
|
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, CancellationToken) |
注册资源的配置。
|
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, MaintenanceConfigurationAssignmentData, CancellationToken)
注册资源的配置。
- 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
- 操作IdConfigurationAssignments_CreateOrUpdateParent
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> CreateOrUpdateConfigurationAssignmentByParentAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string providerName, string resourceParentType, string resourceParentName, string resourceType, string resourceName, string configurationAssignmentName, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateConfigurationAssignmentByParentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * string * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function CreateOrUpdateConfigurationAssignmentByParentAsync (resourceGroupResource As ResourceGroupResource, providerName As String, resourceParentType As String, resourceParentName As String, resourceType As String, resourceName As String, configurationAssignmentName As String, data As MaintenanceConfigurationAssignmentData, 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
配置分配名称。
configurationAssignment。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
providerName
、resourceParentType
、resourceParentName
、 resourceType
resourceName
或 configurationAssignmentName
是空字符串,预期为非空。
providerName
、 resourceParentType
、 resourceParentName
、 resourceType
、 resourceName
或 configurationAssignmentName
data
为 null。
适用于
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, CancellationToken)
注册资源的配置。
- 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
- 操作IdConfigurationAssignments_CreateOrUpdateParent
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> CreateOrUpdateConfigurationAssignmentByParentAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Maintenance.Models.ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions options, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateConfigurationAssignmentByParentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.Maintenance.Models.ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function CreateOrUpdateConfigurationAssignmentByParentAsync (resourceGroupResource As ResourceGroupResource, options As ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))
参数
- resourceGroupResource
- ResourceGroupResource
方法 ResourceGroupResource 将对其执行的实例。
包含此方法的所有参数(LRO 限定符和请求上下文参数除外)的属性包。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
options
为 null。