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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectProperties of a product package.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, packageIdRetrieves the specific product package details.
listselectsubscriptionIdReturns an array of product packages.
createinsertsubscriptionId, packageIdCreates a new product package.
deletedeletesubscriptionId, packageIdDeletes a product package.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
packageIdstringThe package identifier.
subscriptionIdstringSubscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Retrieves the specific product package details.

SELECT
id,
name,
location,
properties,
type
FROM azure_stack.deployment_admin.product_packages
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND packageId = '{{ packageId }}' -- required
;

INSERT examples

Creates a new product package.

INSERT INTO azure_stack.deployment_admin.product_packages (
data__properties,
subscriptionId,
packageId
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ packageId }}'
RETURNING
id,
name,
location,
properties,
type
;

DELETE examples

Deletes a product package.

DELETE FROM azure_stack.deployment_admin.product_packages
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND packageId = '{{ packageId }}' --required
;