Dela via


BlobContainers Interface

public interface BlobContainers

Type representing BlobContainers.

Method Summary

Modifier and Type Method and Description
abstract LegalHold clearLegalHold(String resourceGroupName, String accountName, String containerName, List<String> tags)

Clears legal hold tags.

abstract Mono<LegalHold> clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List<String> tags)

Clears legal hold tags.

abstract Blank defineContainer(String name)

Begins definition for a new Container resource.

abstract Blank defineImmutabilityPolicy()

Begins definition for a new ImmutabilityPolicy resource.

abstract Blank defineImmutabilityPolicy(String name)

Deprecated

Begins definition for a new ImmutabilityPolicy resource.

abstract void delete(String resourceGroupName, String accountName, String containerName)

Deletes specified container under its account.

abstract Mono<Void> deleteAsync(String resourceGroupName, String accountName, String containerName)

Deletes specified container under its account.

abstract void deleteImmutabilityPolicy(String resourceGroupName, String accountName, String containerName)

Deprecated

Aborts an unlocked immutability policy.

abstract void deleteImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String eTagValue)

Aborts an unlocked immutability policy.

abstract Mono<Void> deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

Aborts an unlocked immutability policy.

abstract Mono<Void> deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String eTagValue)

Aborts an unlocked immutability policy.

abstract ImmutabilityPolicy extendImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites)

Deprecated

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.

abstract ImmutabilityPolicy extendImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, String eTagValue)

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.

abstract Mono<ImmutabilityPolicy> extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites)

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.

abstract Mono<ImmutabilityPolicy> extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, String eTagValue)

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.

abstract BlobContainer get(String resourceGroupName, String accountName, String containerName)

Gets properties of a specified container.

abstract Mono<BlobContainer> getAsync(String resourceGroupName, String accountName, String containerName)

Gets properties of a specified container.

abstract ImmutabilityPolicy getImmutabilityPolicy(String resourceGroupName, String accountName, String containerName)

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

abstract Mono<ImmutabilityPolicy> getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

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

abstract Mono<ImmutabilityPolicy> getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String eTagValue)

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

abstract PagedIterable<ListContainerItemInner> list(String resourceGroupName, String accountName)

Lists all containers and does not support a prefix like data plane.

abstract PagedFlux<ListContainerItemInner> listAsync(String resourceGroupName, String accountName)

Lists all containers and does not support a prefix like data plane.

abstract ImmutabilityPolicy lockImmutabilityPolicy(String resourceGroupName, String accountName, String containerName)

Deprecated

Sets the ImmutabilityPolicy to Locked state.

abstract ImmutabilityPolicy lockImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String eTagValue)

Sets the ImmutabilityPolicy to Locked state.

abstract Mono<ImmutabilityPolicy> lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

Sets the ImmutabilityPolicy to Locked state.

abstract Mono<ImmutabilityPolicy> lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String eTagValue)

Sets the ImmutabilityPolicy to Locked state.

abstract LegalHold setLegalHold(String resourceGroupName, String accountName, String containerName, List<String> tags)

Sets legal hold tags.

abstract Mono<LegalHold> setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List<String> tags)

Sets legal hold tags.

Method Details

clearLegalHold

public abstract LegalHold clearLegalHold(String resourceGroupName, String accountName, String containerName, List tags)

Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Returns:

the LegalHold property of a blob container.

clearLegalHoldAsync

public abstract Mono clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags)

Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Returns:

the observable for the request

defineContainer

public abstract BlobContainer.DefinitionStages.Blank defineContainer(String name)

Begins definition for a new Container resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Container definition.

defineImmutabilityPolicy

public abstract ImmutabilityPolicy.DefinitionStages.Blank defineImmutabilityPolicy()

Begins definition for a new ImmutabilityPolicy resource.

Returns:

the first stage of the new ImmutabilityPolicy definition.

defineImmutabilityPolicy

@Deprecated
public abstract ImmutabilityPolicy.DefinitionStages.Blank defineImmutabilityPolicy(String name)

Deprecated

Begins definition for a new ImmutabilityPolicy resource.

Parameters:

name - resource name.

Returns:

the first stage of the new ImmutabilityPolicy definition.

delete

public abstract void delete(String resourceGroupName, String accountName, String containerName)

Deletes specified container under its account.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

deleteAsync

public abstract Mono deleteAsync(String resourceGroupName, String accountName, String containerName)

Deletes specified container under its account.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

deleteImmutabilityPolicy

@Deprecated
public abstract void deleteImmutabilityPolicy(String resourceGroupName, String accountName, String containerName)

Deprecated

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

deleteImmutabilityPolicy

public abstract void deleteImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String eTagValue)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
eTagValue - 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.

deleteImmutabilityPolicyAsync

public abstract Mono deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

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, only way is to delete the container after deleting all blobs inside the container.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

deleteImmutabilityPolicyAsync

public abstract Mono deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String eTagValue)

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, only way is to delete the container after deleting all blobs inside the container.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
eTagValue - 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.

Returns:

the observable for the request

extendImmutabilityPolicy

@Deprecated
public abstract ImmutabilityPolicy extendImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites)

Deprecated

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.
allowProtectedAppendWrites - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.

Returns:

the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

extendImmutabilityPolicy

public abstract ImmutabilityPolicy extendImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, String eTagValue)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.
allowProtectedAppendWrites - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
eTagValue - 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.

Returns:

the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

extendImmutabilityPolicyAsync

public abstract Mono extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.
allowProtectedAppendWrites - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.

Returns:

the observable for the request

extendImmutabilityPolicyAsync

public abstract Mono extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, String eTagValue)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.
allowProtectedAppendWrites - This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
eTagValue - 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.

Returns:

the observable for the request

get

public abstract BlobContainer get(String resourceGroupName, String accountName, String containerName)

Gets properties of a specified container.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

properties of a specified container.

getAsync

public abstract Mono getAsync(String resourceGroupName, String accountName, String containerName)

Gets properties of a specified container.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

getImmutabilityPolicy

public abstract ImmutabilityPolicy getImmutabilityPolicy(String resourceGroupName, String accountName, String containerName)

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

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

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

getImmutabilityPolicyAsync

public abstract Mono getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

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

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

getImmutabilityPolicyAsync

public abstract Mono getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String eTagValue)

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

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
eTagValue - 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.

Returns:

the observable for the request

list

public abstract PagedIterable list(String resourceGroupName, String accountName)

Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

Returns:

response schema.

listAsync

public abstract PagedFlux listAsync(String resourceGroupName, String accountName)

Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

Returns:

the observable for the request

lockImmutabilityPolicy

@Deprecated
public abstract ImmutabilityPolicy lockImmutabilityPolicy(String resourceGroupName, String accountName, String containerName)

Deprecated

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

lockImmutabilityPolicy

public abstract ImmutabilityPolicy lockImmutabilityPolicy(String resourceGroupName, String accountName, String containerName, String eTagValue)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
eTagValue - 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.

Returns:

the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

lockImmutabilityPolicyAsync

public abstract Mono lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

lockImmutabilityPolicyAsync

public abstract Mono lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String eTagValue)

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.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
eTagValue - 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.

Returns:

the observable for the request

setLegalHold

public abstract LegalHold setLegalHold(String resourceGroupName, String accountName, String containerName, List tags)

Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Returns:

the LegalHold property of a blob container.

setLegalHoldAsync

public abstract Mono setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags)

Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Returns:

the observable for the request

Applies to