image_definitions
Creates, updates, deletes, gets or lists a image_definitions
resource.
Overview
Name | image_definitions |
Type | Resource |
Id | azure_extras.test_base.image_definitions |
Fields
- vw_image_definitions
- image_definitions
Name | Datatype | Description |
---|---|---|
architecture | text | field from the properties object |
imageDefinitionName | text | field from the properties object |
os_state | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
security_type | text | field from the properties object |
subscriptionId | text | field from the properties object |
testBaseAccountName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The image properties under the image definition name. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | imageDefinitionName, resourceGroupName, subscriptionId, testBaseAccountName | Get image properties under the image definition name created by test base custom image which derived from 'VHD' source. |
list_by_test_base_account | SELECT | resourceGroupName, subscriptionId, testBaseAccountName | List all image definition properties created by test base custom images which are derived from 'VHD' source. |
create | INSERT | imageDefinitionName, resourceGroupName, subscriptionId, testBaseAccountName | Create image definition for test base custom images which are derived from 'VHD' source. |
delete | DELETE | imageDefinitionName, resourceGroupName, subscriptionId, testBaseAccountName | Delete a test base image definition resource. |
SELECT
examples
List all image definition properties created by test base custom images which are derived from 'VHD' source.
- vw_image_definitions
- image_definitions
SELECT
architecture,
imageDefinitionName,
os_state,
provisioning_state,
resourceGroupName,
security_type,
subscriptionId,
testBaseAccountName
FROM azure_extras.test_base.vw_image_definitions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';
SELECT
properties
FROM azure_extras.test_base.image_definitions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new image_definitions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.test_base.image_definitions (
imageDefinitionName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties
)
SELECT
'{{ imageDefinitionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: architecture
value: string
- name: osState
value: string
- name: securityType
value: string
- name: provisioningState
value: string
DELETE
example
Deletes the specified image_definitions
resource.
/*+ delete */
DELETE FROM azure_extras.test_base.image_definitions
WHERE imageDefinitionName = '{{ imageDefinitionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';