storage_containers
Creates, updates, deletes, gets or lists a storage_containers
resource.
Overview
Name | storage_containers |
Type | Resource |
Id | azure_stack.azure_stack_hci.storage_containers |
Fields
- vw_storage_containers
- storage_containers
Name | Datatype | Description |
---|---|---|
extended_location | text | field from the properties object |
location | text | The geo-location where the resource lives |
path | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
storageContainerName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | The complex type of the extended location. |
location | string | The geo-location where the resource lives |
properties | object | Properties under the storage container resource |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, storageContainerName, subscriptionId | Gets a storage container |
list | SELECT | resourceGroupName, subscriptionId | Lists 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_all | SELECT | subscriptionId | 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. |
create_or_update | INSERT | resourceGroupName, storageContainerName, subscriptionId | The operation to create or update a storage container. Please note some properties can be set only during storage container creation. |
delete | DELETE | resourceGroupName, storageContainerName, subscriptionId | The operation to delete a storage container. |
update | UPDATE | resourceGroupName, storageContainerName, subscriptionId | The 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.
- vw_storage_containers
- 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 }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure_stack.azure_stack_hci.storage_containers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new storage_containers
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: path
value: string
- name: provisioningState
value: string
- name: status
value:
- name: errorCode
value: string
- name: errorMessage
value: string
- name: availableSizeMB
value: integer
- name: containerSizeMB
value: integer
- name: provisioningStatus
value:
- name: operationId
value: string
- name: status
value: string
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: []
- name: tags
value: object
- name: location
value: string
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 }}';