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
The following fields are returned by SELECT
queries:
- get
- list
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 a product package. |
type | string | 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 of a product package. |
type | string | Type of Resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , packageId | Retrieves the specific product package details. | |
list | select | subscriptionId | Returns an array of product packages. | |
create | insert | subscriptionId , packageId | Creates a new product package. | |
delete | delete | subscriptionId , packageId | Deletes 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.
Name | Datatype | Description |
---|---|---|
packageId | string | The package identifier. |
subscriptionId | string | Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
SELECT
examples
- get
- list
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
;
Returns an array of product packages.
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.deployment_admin.product_packages
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: product_packages
props:
- name: subscriptionId
value: string
description: Required parameter for the product_packages resource.
- name: packageId
value: string
description: Required parameter for the product_packages resource.
- name: properties
value: object
description: |
Specifies the product package
DELETE
examples
- delete
Deletes a product package.
DELETE FROM azure_stack.deployment_admin.product_packages
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND packageId = '{{ packageId }}' --required
;