Compartir a través de


MaintenanceExtensions.GetConfigurationAssignmentAsync Método

Definición

Obtiene la asignación de configuración para resource..

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_Get de operación
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))

Parámetros

resourceGroupResource
ResourceGroupResource

Instancia ResourceGroupResource en la que se ejecutará el método.

providerName
String

Nombre del proveedor de recursos.

resourceType
String

Tipo de recurso.

resourceName
String

Identificador de recursos.

configurationAssignmentName
String

Nombre de asignación de configuración.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

providerName, resourceTyperesourceName o configurationAssignmentName es una cadena vacía y se espera que no esté vacía.

providerName, resourceType, resourceName o configurationAssignmentName es un valor null.

Se aplica a