Skip to main content

blob_containers

Creates, updates, deletes, gets or lists a blob_containers resource.

Overview

Nameblob_containers
TypeResource
Idazure.storage.blob_containers

Fields

NameDatatypeDescription
accountNametextfield from the properties object
containerNametextfield from the properties object
default_encryption_scopetextfield from the properties object
deletedtextfield from the properties object
deleted_timetextfield from the properties object
deny_encryption_scope_overridetextfield from the properties object
enable_nfs_v3_all_squashtextfield from the properties object
enable_nfs_v3_root_squashtextfield from the properties object
etagtextResource Etag.
has_immutability_policytextfield from the properties object
has_legal_holdtextfield from the properties object
immutability_policytextfield from the properties object
immutable_storage_with_versioningtextfield from the properties object
last_modified_timetextfield from the properties object
lease_durationtextfield from the properties object
lease_statetextfield from the properties object
lease_statustextfield from the properties object
legal_holdtextfield from the properties object
metadatatextfield from the properties object
public_accesstextfield from the properties object
remaining_retention_daystextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, containerName, resourceGroupName, subscriptionIdGets properties of a specified container.
listSELECTaccountName, resourceGroupName, subscriptionIdLists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.
createINSERTaccountName, containerName, resourceGroupName, subscriptionIdCreates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container.
deleteDELETEaccountName, containerName, resourceGroupName, subscriptionIdDeletes specified container under its account.
updateUPDATEaccountName, containerName, resourceGroupName, subscriptionIdUpdates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist.
clear_legal_holdEXECaccountName, containerName, resourceGroupName, subscriptionId, data__tagsClears 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.
extend_immutability_policyEXECIf-Match, accountName, containerName, resourceGroupName, subscriptionId, data__propertiesExtends 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.
leaseEXECaccountName, containerName, resourceGroupName, subscriptionId, data__actionThe Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
lock_immutability_policyEXECIf-Match, accountName, containerName, resourceGroupName, subscriptionIdSets 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.
object_level_wormEXECaccountName, containerName, resourceGroupName, subscriptionIdThis operation migrates a blob container from container level WORM to object level immutability enabled container. Prerequisites require a container level immutability policy either in locked or unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container.
set_legal_holdEXECaccountName, containerName, resourceGroupName, subscriptionId, data__tagsSets 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.

SELECT examples

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

SELECT
accountName,
containerName,
default_encryption_scope,
deleted,
deleted_time,
deny_encryption_scope_override,
enable_nfs_v3_all_squash,
enable_nfs_v3_root_squash,
etag,
has_immutability_policy,
has_legal_hold,
immutability_policy,
immutable_storage_with_versioning,
last_modified_time,
lease_duration,
lease_state,
lease_status,
legal_hold,
metadata,
public_access,
remaining_retention_days,
resourceGroupName,
subscriptionId,
version
FROM azure.storage.vw_blob_containers
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new blob_containers resource.

/*+ create */
INSERT INTO azure.storage.blob_containers (
accountName,
containerName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ containerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a blob_containers resource.

/*+ update */
UPDATE azure.storage.blob_containers
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND containerName = '{{ containerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified blob_containers resource.

/*+ delete */
DELETE FROM azure.storage.blob_containers
WHERE accountName = '{{ accountName }}'
AND containerName = '{{ containerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';