avs_storage_containers
Creates, updates, deletes, gets or lists an avs_storage_containers resource.
Overview
| Name | avs_storage_containers |
| Type | Resource |
| Id | azure_isv.purestorageblock.avs_storage_containers |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_storage_pool
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
datastore | string | VMware datastore associated with this storage container (if any). |
mounted | boolean | Whether the datastore is mounted in VMware or not. |
provisionedLimit | integer | Maximum amount of bytes that can be provisioned in this storage container; it must be a multiple of 512; each time a volume is provisioned in this container, its provisionedSize will be counted against the provisionLimit and the provisioning will fail if it goes over (minimum: 1048576 (1MiB), maximum: 4503599627370496 (4PiB)); by default it is unrestricted. |
resourceName | string | Name of the storage container. Required. |
space | object | Storage space usage. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
datastore | string | VMware datastore associated with this storage container (if any). |
mounted | boolean | Whether the datastore is mounted in VMware or not. |
provisionedLimit | integer | Maximum amount of bytes that can be provisioned in this storage container; it must be a multiple of 512; each time a volume is provisioned in this container, its provisionedSize will be counted against the provisionLimit and the provisioning will fail if it goes over (minimum: 1048576 (1MiB), maximum: 4503599627370496 (4PiB)); by default it is unrestricted. |
resourceName | string | Name of the storage container. Required. |
space | object | Storage space usage. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, storage_pool_name, storage_container_name, subscription_id | Get an AVS storage container. | |
list_by_storage_pool | select | resource_group_name, storage_pool_name, subscription_id | List AVS storage containers by storage pool. | |
delete | delete | resource_group_name, storage_pool_name, storage_container_name, subscription_id | Delete an AVS storage container. |
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.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
storage_container_name | string | Name of the storage container. Required. |
storage_pool_name | string | Name of the storage pool. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_storage_pool
Get an AVS storage container.
SELECT
id,
name,
datastore,
mounted,
provisionedLimit,
resourceName,
space,
systemData,
type
FROM azure_isv.purestorageblock.avs_storage_containers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_pool_name = '{{ storage_pool_name }}' -- required
AND storage_container_name = '{{ storage_container_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List AVS storage containers by storage pool.
SELECT
id,
name,
datastore,
mounted,
provisionedLimit,
resourceName,
space,
systemData,
type
FROM azure_isv.purestorageblock.avs_storage_containers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_pool_name = '{{ storage_pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
DELETE examples
- delete
Delete an AVS storage container.
DELETE FROM azure_isv.purestorageblock.avs_storage_containers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND storage_pool_name = '{{ storage_pool_name }}' --required
AND storage_container_name = '{{ storage_container_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;