다음을 통해 공유


ImmutabilityPolicyResource.Delete(WaitUntil, ETag, CancellationToken) Method

Definition

Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside the policy locked container.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}
  • Operation Id: BlobContainers_DeleteImmutabilityPolicy
  • Default Api Version: 2024-01-01
  • Resource: ImmutabilityPolicyResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.ImmutabilityPolicyResource> Delete(Azure.WaitUntil waitUntil, Azure.ETag ifMatch, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : Azure.WaitUntil * Azure.ETag * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>
override this.Delete : Azure.WaitUntil * Azure.ETag * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>
Public Overridable Function Delete (waitUntil As WaitUntil, ifMatch As ETag, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ImmutabilityPolicyResource)

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.

ifMatch
ETag

The entity state (ETag) version of the immutability policy to update must be returned to the server for all update operations. The ETag value must include the leading and trailing double quotes as returned by the service.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to