snapshots
Creates, updates, deletes, gets or lists a snapshots
resource.
Overview
Name | snapshots |
Type | Resource |
Id | azure.aks.snapshots |
Fields
- vw_snapshots
- snapshots
Name | Datatype | Description |
---|---|---|
creation_data | text | field from the properties object |
enable_fips | text | field from the properties object |
kubernetes_version | text | field from the properties object |
location | text | The geo-location where the resource lives |
node_image_version | text | field from the properties object |
os_sku | text | field from the properties object |
os_type | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
snapshot_type | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
vm_size | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Properties used to configure a node pool snapshot. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, resourceName, subscriptionId | |
list | SELECT | subscriptionId | |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | |
create_or_update | INSERT | resourceGroupName, resourceName, subscriptionId | |
delete | DELETE | resourceGroupName, resourceName, subscriptionId | |
update_tags | EXEC | resourceGroupName, resourceName, subscriptionId |
SELECT
examples
- vw_snapshots
- snapshots
SELECT
creation_data,
enable_fips,
kubernetes_version,
location,
node_image_version,
os_sku,
os_type,
resourceGroupName,
resourceName,
snapshot_type,
subscriptionId,
tags,
vm_size
FROM azure.aks.vw_snapshots
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.aks.snapshots
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new snapshots
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.aks.snapshots (
resourceGroupName,
resourceName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: creationData
value:
- name: sourceResourceId
value: string
- name: snapshotType
value: []
- name: kubernetesVersion
value: string
- name: nodeImageVersion
value: string
- name: osType
value: []
- name: osSku
value: []
- name: vmSize
value: string
- name: enableFIPS
value: boolean
- name: tags
value: object
- name: location
value: string
DELETE
example
Deletes the specified snapshots
resource.
/*+ delete */
DELETE FROM azure.aks.snapshots
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';