Partilhar via


MaintenanceExtensions.CreateOrUpdateConfigurationAssignment Método

Definição

Registre a configuração do recurso.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_CreateOrUpdate de operação
public static Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData> CreateOrUpdateConfigurationAssignment (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string providerName, string resourceType, string resourceName, string configurationAssignmentName, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateConfigurationAssignment : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>
<Extension()>
Public Function CreateOrUpdateConfigurationAssignment (resourceGroupResource As ResourceGroupResource, providerName As String, resourceType As String, resourceName As String, configurationAssignmentName As String, data As MaintenanceConfigurationAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MaintenanceConfigurationAssignmentData)

Parâmetros

resourceGroupResource
ResourceGroupResource

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

providerName
String

Nome do provedor de recursos.

resourceType
String

Tipo de recurso.

resourceName
String

Identificador de recurso.

configurationAssignmentName
String

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

data
MaintenanceConfigurationAssignmentData

O configurationAssignment.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

providerName, resourceType, resourceNameconfigurationAssignmentName ou data é nulo.

Aplica-se a