images
Creates, updates, deletes, gets or lists a images
resource.
Overview
Name | images |
Type | Resource |
Id | azure.sphere.images |
Fields
- vw_images
- images
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
catalogName | text | field from the properties object |
component_id | text | field from the properties object |
image | text | field from the properties object |
imageName | text | field from the properties object |
image_id | text | field from the properties object |
image_name | text | field from the properties object |
image_type | text | field from the properties object |
provisioning_state | text | field from the properties object |
regional_data_boundary | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
uri | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of image |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | catalogName, imageName, resourceGroupName, subscriptionId | Get a Image |
list_by_catalog | SELECT | catalogName, resourceGroupName, subscriptionId | List Image resources by Catalog |
create_or_update | INSERT | catalogName, imageName, resourceGroupName, subscriptionId | Create a Image |
delete | DELETE | catalogName, imageName, resourceGroupName, subscriptionId | Delete a Image |
SELECT
examples
List Image resources by Catalog
- vw_images
- images
SELECT
description,
catalogName,
component_id,
image,
imageName,
image_id,
image_name,
image_type,
provisioning_state,
regional_data_boundary,
resourceGroupName,
subscriptionId,
uri
FROM azure.sphere.vw_images
WHERE catalogName = '{{ catalogName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.sphere.images
WHERE catalogName = '{{ catalogName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new images
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.sphere.images (
catalogName,
imageName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ catalogName }}',
'{{ imageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: image
value: string
- name: imageId
value: string
- name: imageName
value: string
- name: regionalDataBoundary
value: []
- name: uri
value: string
- name: description
value: string
- name: componentId
value: string
- name: imageType
value: []
- name: provisioningState
value: []
DELETE
example
Deletes the specified images
resource.
/*+ delete */
DELETE FROM azure.sphere.images
WHERE catalogName = '{{ catalogName }}'
AND imageName = '{{ imageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';