Skip to main content

pools

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

Overview

Namepools
TypeResource
Idazure.container_storage.pools

Fields

NameDatatypeDescription
assignmentstextfield from the properties object
locationtextThe geo-location where the resource lives
poolNametextfield from the properties object
pool_typetextfield from the properties object
provisioning_statetextfield from the properties object
reclaim_policytextfield from the properties object
resourceGroupNametextfield from the properties object
resourcestextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
zonestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpoolName, resourceGroupName, subscriptionIdGet a Pool
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Pool resources by resource group
list_by_subscriptionSELECTsubscriptionIdList Pool resources by subscription ID
create_or_updateINSERTpoolName, resourceGroupName, subscriptionIdCreate a Pool
deleteDELETEpoolName, resourceGroupName, subscriptionIdDelete a Pool
updateUPDATEpoolName, resourceGroupName, subscriptionIdUpdate a Pool

SELECT examples

List Pool resources by subscription ID

SELECT
assignments,
location,
poolName,
pool_type,
provisioning_state,
reclaim_policy,
resourceGroupName,
resources,
status,
subscriptionId,
tags,
zones
FROM azure.container_storage.vw_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_storage.pools (
poolName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a pools resource.

/*+ update */
UPDATE azure.container_storage.pools
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified pools resource.

/*+ delete */
DELETE FROM azure.container_storage.pools
WHERE poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';