MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentByParentAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, MaintenanceConfigurationAssignmentData, CancellationToken) |
Registre la configuración del recurso.
|
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, CancellationToken) |
Registre la configuración del recurso.
|
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, MaintenanceConfigurationAssignmentData, CancellationToken)
Registre la configuración del recurso.
- Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
- IdConfigurationAssignments_CreateOrUpdateParent de operación
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))
Parámetros
- resourceGroupResource
- ResourceGroupResource
Instancia ResourceGroupResource en la que se ejecutará el método.
- providerName
- String
Nombre del proveedor de recursos.
- resourceParentType
- String
Tipo primario del recurso.
- resourceParentName
- String
Identificador primario del recurso.
- resourceType
- String
Tipo de recurso.
- resourceName
- String
Identificador de recursos.
- configurationAssignmentName
- String
Nombre de asignación de configuración.
ConfigurationAssignment.
- cancellationToken
- CancellationToken
Token de cancelación que se va a usar.
Devoluciones
Excepciones
providerName
, resourceParentType
, resourceParentName
, resourceType
resourceName
o configurationAssignmentName
es una cadena vacía y se espera que no esté vacía.
providerName
, resourceParentType
, resourceParentName
, resourceType
, resourceName
configurationAssignmentName
o data
es NULL.
Se aplica a
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, CancellationToken)
Registre la configuración del recurso.
- Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
- IdConfigurationAssignments_CreateOrUpdateParent de operación
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))
Parámetros
- resourceGroupResource
- ResourceGroupResource
Instancia ResourceGroupResource en la que se ejecutará el método.
Contenedor de propiedades que contiene todos los parámetros de este método, excepto el calificador LRO y el parámetro de contexto de solicitud.
- cancellationToken
- CancellationToken
Token de cancelación que se va a usar.
Devoluciones
Excepciones
options
es null.