Partager via


MaintenanceExtensions.GetConfigurationAssignmentAsync Méthode

Définition

Obtenez l’affectation de configuration pour resource..

  • Chemin de la requête/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • Opération IdConfigurationAssignments_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> GetConfigurationAssignmentAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string providerName, string resourceType, string resourceName, string configurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurationAssignmentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function GetConfigurationAssignmentAsync (resourceGroupResource As ResourceGroupResource, providerName As String, resourceType As String, resourceName As String, configurationAssignmentName As String, 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.

resourceType
String

Type de ressource.

resourceName
String

Identificateur de ressource.

configurationAssignmentName
String

Nom de l’affectation de configuration.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

providerName, resourceTyperesourceName ou configurationAssignmentName est une chaîne vide, et était censé être non vide.

providerName, resourceType, resourceName ou configurationAssignmentName a la valeur Null.

S’applique à