Skip to main content

product_packages

Creates, updates, deletes, gets or lists a product_packages resource.

Overview

Nameproduct_packages
TypeResource
Idazure_stack.deployment_admin.product_packages

Fields

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
file_container_idtextfield from the properties object
is_deployabletextfield from the properties object
is_updatabletextfield from the properties object
locationtextLocation of the resource.
packageIdtextfield from the properties object
product_deployment_idtextfield from the properties object
provisioning_statetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of Resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpackageId, subscriptionIdRetrieves the specific product package details.
listSELECTsubscriptionIdReturns an array of product packages.
createINSERTpackageId, subscriptionIdCreates a new product package.
deleteDELETEpackageId, subscriptionIdDeletes a product package.

SELECT examples

Returns an array of 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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new product_packages resource.

/*+ create */
INSERT INTO azure_stack.deployment_admin.product_packages (
packageId,
subscriptionId,
properties
)
SELECT
'{{ packageId }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified product_packages resource.

/*+ delete */
DELETE FROM azure_stack.deployment_admin.product_packages
WHERE packageId = '{{ packageId }}'
AND subscriptionId = '{{ subscriptionId }}';