custom_images
Creates, updates, deletes, gets or lists a custom_images
resource.
Overview
Name | custom_images |
Type | Resource |
Id | azure_extras.test_base.custom_images |
Fields
- vw_custom_images
- custom_images
Name | Datatype | Description |
---|---|---|
creation_time | text | field from the properties object |
customImageName | text | field from the properties object |
definition_name | text | field from the properties object |
os_disk_image_size_in_gb | text | field from the properties object |
product | text | field from the properties object |
provisioning_state | text | field from the properties object |
release | text | field from the properties object |
release_version_date | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
testBaseAccountName | text | field from the properties object |
validation_results | text | field from the properties object |
version_name | text | field from the properties object |
vhd_file_name | text | field from the properties object |
vhd_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of the test base custom image. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customImageName, resourceGroupName, subscriptionId, testBaseAccountName | Gets a test base custom image. |
list_by_test_base_account | SELECT | resourceGroupName, subscriptionId, testBaseAccountName | Lists all the custom images under a test base account. |
create | INSERT | customImageName, resourceGroupName, subscriptionId, testBaseAccountName | Creates a test base custom image. |
delete | DELETE | customImageName, resourceGroupName, subscriptionId, testBaseAccountName | Deletes a test base custom image. |
check_image_name_availability | EXEC | resourceGroupName, subscriptionId, testBaseAccountName, data__definitionName, data__versionName | Checks that the test vase custom image generated from VHD resource has valid and unique definition and version, return architecture and OS state of potential existing image definition. |
SELECT
examples
Lists all the custom images under a test base account.
- vw_custom_images
- custom_images
SELECT
creation_time,
customImageName,
definition_name,
os_disk_image_size_in_gb,
product,
provisioning_state,
release,
release_version_date,
resourceGroupName,
source,
status,
subscriptionId,
testBaseAccountName,
validation_results,
version_name,
vhd_file_name,
vhd_id
FROM azure_extras.test_base.vw_custom_images
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';
SELECT
properties
FROM azure_extras.test_base.custom_images
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new custom_images
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.test_base.custom_images (
customImageName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties
)
SELECT
'{{ customImageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: vhdId
value: string
- name: definitionName
value: string
- name: versionName
value: string
- name: source
value: string
- name: product
value: string
- name: release
value: string
- name: status
value: string
- name: creationTime
value: string
- name: validationResults
value:
- name: results
value:
- - name: verificationName
value: string
- name: result
value: string
- name: message
value: string
- name: osDiskImageSizeInGB
value: integer
- name: releaseVersionDate
value: string
- name: vhdFileName
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified custom_images
resource.
/*+ delete */
DELETE FROM azure_extras.test_base.custom_images
WHERE customImageName = '{{ customImageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';