Delen via


ImmutabilityPolicyResource.GetAsync 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: 2022-09-01
  • Resource: ImmutabilityPolicyResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>> GetAsync (Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Nullable<Azure.ETag> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>>
override this.GetAsync : Nullable<Azure.ETag> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>>
Public Overridable Function GetAsync (Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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