SnapshotResource.UpdateImmutabilityPolicyLockAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Locks the immutability policy of a snapshot. Once locked, the policy cannot be reduced or removed until the lock period expires.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/updateImmutabilityPolicyLock.
- Operation Id. : Snapshots_UpdateImmutabilityPolicyLock.
- Default Api Version. : 2026-03-02.
- Resource. : SnapshotResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.SnapshotResource>> UpdateImmutabilityPolicyLockAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Compute.Models.ImmutabilityPolicyLockContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateImmutabilityPolicyLockAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.Models.ImmutabilityPolicyLockContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.SnapshotResource>>
override this.UpdateImmutabilityPolicyLockAsync : Azure.WaitUntil * Azure.ResourceManager.Compute.Models.ImmutabilityPolicyLockContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.SnapshotResource>>
Public Overridable Function UpdateImmutabilityPolicyLockAsync (waitUntil As WaitUntil, content As ImmutabilityPolicyLockContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SnapshotResource))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- content
- ImmutabilityPolicyLockContent
Immutability policy data supplied in the body of the update immutability policy lock operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.