product_packages
Creates, updates, deletes, gets or lists a product_packages
resource.
Overview
Name | product_packages |
Type | Resource |
Id | azure_stack.deployment_admin.product_packages |
Fields
- vw_product_packages
- product_packages
Name | Datatype | Description |
---|---|---|
id | text | ID of the resource. |
name | text | Name of the resource. |
file_container_id | text | field from the properties object |
is_deployable | text | field from the properties object |
is_updatable | text | field from the properties object |
location | text | Location of the resource. |
packageId | text | field from the properties object |
product_deployment_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Type of Resource. |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | Properties for Product package. |
type | string | Type of Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | packageId, subscriptionId | Retrieves the specific product package details. |
list | SELECT | subscriptionId | Returns an array of product packages. |
create | INSERT | packageId, subscriptionId | Creates a new product package. |
delete | DELETE | packageId, subscriptionId | Deletes a product package. |
SELECT
examples
Returns an array of product packages.
- vw_product_packages
- product_packages
SELECT
id,
name,
file_container_id,
is_deployable,
is_updatable,
location,
packageId,
product_deployment_id,
provisioning_state,
subscriptionId,
type
FROM azure_stack.deployment_admin.vw_product_packages
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.deployment_admin.product_packages
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new product_packages
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.deployment_admin.product_packages (
packageId,
subscriptionId,
properties
)
SELECT
'{{ packageId }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: fileContainerId
value: []
DELETE
example
Deletes the specified product_packages
resource.
/*+ delete */
DELETE FROM azure_stack.deployment_admin.product_packages
WHERE packageId = '{{ packageId }}'
AND subscriptionId = '{{ subscriptionId }}';