Skip to main content

downloaded_products

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

Overview

Namedownloaded_products
TypeResource
Idazure_stack.azure_bridge_admin.downloaded_products

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringLocation of the resource
propertiesobjectProperties of the resource.
tagsobjectList of key value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, activationName, productNameGet a downloaded product.
listselectsubscriptionId, resourceGroupName, activationNameGet a list of downloaded products.
createinsertsubscriptionId, resourceGroupName, activationName, productNameCreates a downloaded product.
deletedeletesubscriptionId, resourceGroupName, activationName, productNameDelete a downloaded product.

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
activationNamestringName of the activation.
productNamestringName of the product.
resourceGroupNamestringThe resource group the resource is located under.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.

SELECT examples

Get a downloaded product.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.azure_bridge_admin.downloaded_products
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND activationName = '{{ activationName }}' -- required
AND productName = '{{ productName }}' -- required
;

INSERT examples

Creates a downloaded product.

INSERT INTO azure_stack.azure_bridge_admin.downloaded_products (
data__properties,
data__id,
data__name,
data__type,
subscriptionId,
resourceGroupName,
activationName,
productName
)
SELECT
'{{ properties }}',
'{{ id }}',
'{{ name }}',
'{{ type }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ activationName }}',
'{{ productName }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

DELETE examples

Delete a downloaded product.

DELETE FROM azure_stack.azure_bridge_admin.downloaded_products
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND activationName = '{{ activationName }}' --required
AND productName = '{{ productName }}' --required
;