Skip to main content

storage_containers

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

Overview

Namestorage_containers
TypeResource
Idazure_stack.azure_stack_hci.storage_containers

Fields

NameDatatypeDescription
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
pathtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
storageContainerNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, storageContainerName, subscriptionIdGets a storage container
listSELECTresourceGroupName, subscriptionIdLists all of the storage containers in the specified resource group. Use the nextLink property in the response to get the next page of storage containers.
list_allSELECTsubscriptionIdLists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.
create_or_updateINSERTresourceGroupName, storageContainerName, subscriptionIdThe operation to create or update a storage container. Please note some properties can be set only during storage container creation.
deleteDELETEresourceGroupName, storageContainerName, subscriptionIdThe operation to delete a storage container.
updateUPDATEresourceGroupName, storageContainerName, subscriptionIdThe operation to update a storage container.

SELECT examples

Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.

SELECT
extended_location,
location,
path,
provisioning_state,
resourceGroupName,
status,
storageContainerName,
subscriptionId,
tags
FROM azure_stack.azure_stack_hci.vw_storage_containers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.azure_stack_hci.storage_containers (
resourceGroupName,
storageContainerName,
subscriptionId,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ storageContainerName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a storage_containers resource.

/*+ update */
UPDATE azure_stack.azure_stack_hci.storage_containers
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND storageContainerName = '{{ storageContainerName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified storage_containers resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.storage_containers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageContainerName = '{{ storageContainerName }}'
AND subscriptionId = '{{ subscriptionId }}';