Skip to main content

containers

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

Overview

Namecontainers
TypeResource
Idazure.data_box_edge.containers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
containerStatusstringCurrent status of the container. Known values are: "OK", "Offline", "Unknown", "Updating", and "NeedsAttention". (OK, Offline, Unknown, Updating, NeedsAttention)
createdDateTimestring (date-time)The UTC time when container got created.
dataFormatstringDataFormat for Container. Required. Known values are: "BlockBlob", "PageBlob", and "AzureFile". (BlockBlob, PageBlob, AzureFile)
refreshDetailsobjectDetails of the refresh job on this container.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevice_name, storage_account_name, container_name, resource_group_name, subscription_idGets a container by name. Gets a container by name.
list_by_storage_accountselectdevice_name, storage_account_name, resource_group_name, subscription_idLists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device. Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
create_or_updateinsertdevice_name, storage_account_name, container_name, resource_group_name, subscription_id, propertiesCreates a new container or updates an existing container on the device. Creates a new container or updates an existing container on the device.
create_or_updatereplacedevice_name, storage_account_name, container_name, resource_group_name, subscription_id, propertiesCreates a new container or updates an existing container on the device. Creates a new container or updates an existing container on the device.
deletedeletedevice_name, storage_account_name, container_name, resource_group_name, subscription_idDeletes the container on the Data Box Edge/Data Box Gateway device.
refreshexecdevice_name, storage_account_name, container_name, resource_group_name, subscription_idRefreshes the container metadata with the data from the cloud. Refreshes the container metadata with the data from the cloud.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
container_namestringThe container Name. Required.
device_namestringThe device name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_account_namestringThe storage account name. Required.
subscription_idstring

SELECT examples

Gets a container by name. Gets a container by name.

SELECT
id,
name,
containerStatus,
createdDateTime,
dataFormat,
refreshDetails,
systemData,
type
FROM azure.data_box_edge.containers
WHERE device_name = '{{ device_name }}' -- required
AND storage_account_name = '{{ storage_account_name }}' -- required
AND container_name = '{{ container_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new container or updates an existing container on the device. Creates a new container or updates an existing container on the device.

INSERT INTO azure.data_box_edge.containers (
properties,
device_name,
storage_account_name,
container_name,
resource_group_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ device_name }}',
'{{ storage_account_name }}',
'{{ container_name }}',
'{{ resource_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates a new container or updates an existing container on the device. Creates a new container or updates an existing container on the device.

REPLACE azure.data_box_edge.containers
SET
properties = '{{ properties }}'
WHERE
device_name = '{{ device_name }}' --required
AND storage_account_name = '{{ storage_account_name }}' --required
AND container_name = '{{ container_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the container on the Data Box Edge/Data Box Gateway device.

DELETE FROM azure.data_box_edge.containers
WHERE device_name = '{{ device_name }}' --required
AND storage_account_name = '{{ storage_account_name }}' --required
AND container_name = '{{ container_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Refreshes the container metadata with the data from the cloud. Refreshes the container metadata with the data from the cloud.

EXEC azure.data_box_edge.containers.refresh 
@device_name='{{ device_name }}' --required,
@storage_account_name='{{ storage_account_name }}' --required,
@container_name='{{ container_name }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;