Freigeben über


DevTestLabPolicyResource.Update Methode

Definition

Ermöglicht das Ändern von Tags von Richtlinien. Alle anderen Eigenschaften werden ignoriert.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}
  • Vorgang IdPolicies_Update
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabPolicyResource> Update (Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabPolicyResource>
override this.Update : Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabPolicyResource>
Public Overridable Function Update (patch As DevTestLabPolicyPatch, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabPolicyResource)

Parameter

patch
DevTestLabPolicyPatch

Eine Richtlinie.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

patch ist NULL.

Gilt für: