Skip to main content

storage_classes

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

Overview

Namestorage_classes
TypeResource
Idazure.k8s_runtime.storage_classes

Fields

NameDatatypeDescription
access_modestextfield from the properties object
allow_volume_expansiontextfield from the properties object
data_resiliencetextfield from the properties object
failover_speedtextfield from the properties object
limitationstextfield from the properties object
mount_optionstextfield from the properties object
performancetextfield from the properties object
prioritytextfield from the properties object
provisionertextfield from the properties object
provisioning_statetextfield from the properties object
resourceUritextfield from the properties object
storageClassNametextfield from the properties object
type_propertiestextfield from the properties object
volume_binding_modetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceUri, storageClassNameGet a StorageClassResource
listSELECTresourceUriList StorageClassResource resources by parent
create_or_updateINSERTresourceUri, storageClassNameCreate a StorageClassResource
deleteDELETEresourceUri, storageClassNameDelete a StorageClassResource
updateUPDATEresourceUri, storageClassNameUpdate a StorageClassResource

SELECT examples

List StorageClassResource resources by parent

SELECT
access_modes,
allow_volume_expansion,
data_resilience,
failover_speed,
limitations,
mount_options,
performance,
priority,
provisioner,
provisioning_state,
resourceUri,
storageClassName,
type_properties,
volume_binding_mode
FROM azure.k8s_runtime.vw_storage_classes
WHERE resourceUri = '{{ resourceUri }}';

INSERT example

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

/*+ create */
INSERT INTO azure.k8s_runtime.storage_classes (
resourceUri,
storageClassName,
properties
)
SELECT
'{{ resourceUri }}',
'{{ storageClassName }}',
'{{ properties }}'
;

UPDATE example

Updates a storage_classes resource.

/*+ update */
UPDATE azure.k8s_runtime.storage_classes
SET
properties = '{{ properties }}'
WHERE
resourceUri = '{{ resourceUri }}'
AND storageClassName = '{{ storageClassName }}';

DELETE example

Deletes the specified storage_classes resource.

/*+ delete */
DELETE FROM azure.k8s_runtime.storage_classes
WHERE resourceUri = '{{ resourceUri }}'
AND storageClassName = '{{ storageClassName }}';