Dela via


ImmutabilityPolicyResource.Get Method

Definition

Gets the existing immutability policy along with the corresponding ETag in response headers and body.

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

Parameters

ifMatch
Nullable<ETag>

The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to