platform_images
Creates, updates, deletes, gets or lists a platform_images
resource.
Overview
Name | platform_images |
Type | Resource |
Id | azure_stack.compute_admin.platform_images |
Fields
- vw_platform_images
- platform_images
Name | Datatype | Description |
---|---|---|
id | text | ID of the resource. |
name | text | Name of the resource. |
data_disks | text | field from the properties object |
details | text | field from the properties object |
location | text | Location of the resource. |
offer | text | field from the properties object |
os_disk | text | field from the properties object |
provisioning_state | text | field from the properties object |
publisher | text | field from the properties object |
sku | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Type of Resource. |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | Properties of platform image. |
type | string | Type of Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, offer, publisher, sku, subscriptionId, version | Returns the specific platform image matching publisher, offer, skus and version. |
list | SELECT | location, subscriptionId | Returns a list of all platform images. |
create | INSERT | location, offer, publisher, sku, subscriptionId, version | Creates a new platform image with given publisher, offer, skus and version. |
delete | DELETE | location, offer, publisher, sku, subscriptionId, version | Delete a platform image |
SELECT
examples
Returns a list of all platform images.
- vw_platform_images
- platform_images
SELECT
id,
name,
data_disks,
details,
location,
offer,
os_disk,
provisioning_state,
publisher,
sku,
subscriptionId,
type,
version
FROM azure_stack.compute_admin.vw_platform_images
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.platform_images
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new platform_images
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.compute_admin.platform_images (
location,
offer,
publisher,
sku,
subscriptionId,
version,
properties
)
SELECT
'{{ location }}',
'{{ offer }}',
'{{ publisher }}',
'{{ sku }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: osDisk
value:
- name: osType
value: []
- name: uri
value: string
- name: dataDisks
value:
- - name: lun
value: integer
- name: uri
value: string
- name: details
value:
- name: billingPartNumber
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified platform_images
resource.
/*+ delete */
DELETE FROM azure_stack.compute_admin.platform_images
WHERE location = '{{ location }}'
AND offer = '{{ offer }}'
AND publisher = '{{ publisher }}'
AND sku = '{{ sku }}'
AND subscriptionId = '{{ subscriptionId }}'
AND version = '{{ version }}';