Compartilhar via


MaintenanceExtensions.GetConfigurationAssignmentBySubscription Método

Definição

Obtenha a atribuição de configuração para resource..

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignmentsForSubscriptions_Get de operação
public static Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData> GetConfigurationAssignmentBySubscription (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string configurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurationAssignmentBySubscription : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>
<Extension()>
Public Function GetConfigurationAssignmentBySubscription (subscriptionResource As SubscriptionResource, configurationAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MaintenanceConfigurationAssignmentData)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

configurationAssignmentName
String

Nome da atribuição de configuração.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

configurationAssignmentName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

configurationAssignmentName é nulo.

Aplica-se a