ImmutabilityPolicyResource.LockImmutabilityPolicy 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.
Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy 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/lock
- Operation Id: BlobContainers_LockImmutabilityPolicy
- Default Api Version: 2023-05-01
- Resource: ImmutabilityPolicyResource
public virtual Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource> LockImmutabilityPolicy (Azure.ETag ifMatch, System.Threading.CancellationToken cancellationToken = default);
abstract member LockImmutabilityPolicy : Azure.ETag * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>
override this.LockImmutabilityPolicy : Azure.ETag * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Storage.ImmutabilityPolicyResource>
Public Overridable Function LockImmutabilityPolicy (ifMatch As ETag, Optional cancellationToken As CancellationToken = Nothing) As 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.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET