ImmutabilityPolicyResource.ExtendImmutabilityPolicyAsync 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.
Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend
- Operation Id: BlobContainers_ExtendImmutabilityPolicy
- Default Api Version: 2022-09-01
- Resource: ImmutabilityPolicyResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>> ExtendImmutabilityPolicyAsync (Azure.ETag ifMatch, Azure.ResourceManager.Storage.ImmutabilityPolicyData data = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExtendImmutabilityPolicyAsync : Azure.ETag * Azure.ResourceManager.Storage.ImmutabilityPolicyData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>>
override this.ExtendImmutabilityPolicyAsync : Azure.ETag * Azure.ResourceManager.Storage.ImmutabilityPolicyData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>>
Public Overridable Function ExtendImmutabilityPolicyAsync (ifMatch As ETag, Optional data As ImmutabilityPolicyData = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ImmutabilityPolicyResource))
Parameters
- ifMatch
- 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.
The ImmutabilityPolicy Properties that will be extended for a blob container.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기