storage_classes
Creates, updates, deletes, gets or lists a storage_classes
resource.
Overview
Name | storage_classes |
Type | Resource |
Id | azure.k8s_runtime.storage_classes |
Fields
- vw_storage_classes
- storage_classes
Name | Datatype | Description |
---|---|---|
access_modes | text | field from the properties object |
allow_volume_expansion | text | field from the properties object |
data_resilience | text | field from the properties object |
failover_speed | text | field from the properties object |
limitations | text | field from the properties object |
mount_options | text | field from the properties object |
performance | text | field from the properties object |
priority | text | field from the properties object |
provisioner | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceUri | text | field from the properties object |
storageClassName | text | field from the properties object |
type_properties | text | field from the properties object |
volume_binding_mode | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Details of the StorageClass StorageClass. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceUri, storageClassName | Get a StorageClassResource |
list | SELECT | resourceUri | List StorageClassResource resources by parent |
create_or_update | INSERT | resourceUri, storageClassName | Create a StorageClassResource |
delete | DELETE | resourceUri, storageClassName | Delete a StorageClassResource |
update | UPDATE | resourceUri, storageClassName | Update a StorageClassResource |
SELECT
examples
List StorageClassResource resources by parent
- vw_storage_classes
- storage_classes
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 }}';
SELECT
properties
FROM azure.k8s_runtime.storage_classes
WHERE resourceUri = '{{ resourceUri }}';
INSERT
example
Use the following StackQL query and manifest file to create a new storage_classes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.k8s_runtime.storage_classes (
resourceUri,
storageClassName,
properties
)
SELECT
'{{ resourceUri }}',
'{{ storageClassName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: allowVolumeExpansion
value: []
- name: mountOptions
value:
- string
- name: provisioner
value: string
- name: volumeBindingMode
value: []
- name: accessModes
value:
- []
- name: dataResilience
value: []
- name: failoverSpeed
value: []
- name: limitations
value:
- string
- name: performance
value: []
- name: priority
value: integer
- name: typeProperties
value:
- name: type
value: []
- name: provisioningState
value: []
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 }}';