Compartilhar via


SecurityCenterExtensions.CreateOrUpdateInformationProtectionPolicyAsync Método

Definição

Detalhes da política de proteção de informações.

  • Caminho da solicitação/{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}
  • IdInformationProtectionPolicies_CreateOrUpdate de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicy>> CreateOrUpdateInformationProtectionPolicyAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicyName informationProtectionPolicyName, Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicy informationProtectionPolicy, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateInformationProtectionPolicyAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicyName * Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicy * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicy>>
<Extension()>
Public Function CreateOrUpdateInformationProtectionPolicyAsync (client As ArmClient, scope As ResourceIdentifier, informationProtectionPolicyName As InformationProtectionPolicyName, informationProtectionPolicy As InformationProtectionPolicy, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of InformationProtectionPolicy))

Parâmetros

client
ArmClient

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

scope
ResourceIdentifier

O escopo ao qual o recurso será aplicado.

informationProtectionPolicyName
InformationProtectionPolicyName

Nome da política de proteção de informações.

informationProtectionPolicy
InformationProtectionPolicy

Política de proteção de informações.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

informationProtectionPolicy é nulo.

Aplica-se a