Partager via


MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentByParentAsync Méthode

Définition

Surcharges

CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, MaintenanceConfigurationAssignmentData, CancellationToken)

Inscrivez la configuration pour la ressource.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceType}/{resourceName}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_CreateOrUpdateParent d’opération
CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, CancellationToken)

Inscrivez la configuration pour la ressource.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceType}/{resourceName}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_CreateOrUpdateParent d’opération

CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, String, String, String, String, String, String, MaintenanceConfigurationAssignmentData, CancellationToken)

Inscrivez la configuration pour la ressource.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceType}/{resourceName}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_CreateOrUpdateParent d’opération
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))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

providerName
String

Nom du fournisseur de ressources.

resourceParentType
String

Type parent de ressource.

resourceParentName
String

Identificateur parent de ressource.

resourceType
String

Type de ressource.

resourceName
String

Identificateur de ressource.

configurationAssignmentName
String

Nom de l’affectation de configuration.

data
MaintenanceConfigurationAssignmentData

ConfigurationAssignment.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

providerName, resourceParentType, resourceParentName, resourceTyperesourceName ou configurationAssignmentName est une chaîne vide et devait être non vide.

providerName, resourceParentType, resourceParentName, resourceType, resourceNameconfigurationAssignmentName ou data a la valeur Null.

S’applique à

CreateOrUpdateConfigurationAssignmentByParentAsync(ResourceGroupResource, ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions, CancellationToken)

Inscrivez la configuration pour la ressource.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceType}/{resourceName}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_CreateOrUpdateParent d’opération
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))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

options
ResourceGroupResourceCreateOrUpdateConfigurationAssignmentByParentOptions

Conteneur de propriétés qui contient tous les paramètres de cette méthode, à l’exception du qualificateur LRO et du paramètre de contexte de requête.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

options a la valeur null.

S’applique à