Skip to main content

products

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

Overview

Nameproducts
TypeResource
Idazure_stack.azure_stack.products

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
etagstringThe entity tag used for optimistic concurrency when modifying the resource.
propertiesobjectProperties of the product resource.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroup, registrationName, productNameReturns the specified product.
listselectsubscriptionId, resourceGroup, registrationNameReturns a list of products.
upload_logexecsubscriptionId, resourceGroup, registrationName, productNameReturns the specified 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
productNamestringName of the product.
registrationNamestringName of the Azure Stack registration.
resourceGroupstringName of the resource group.
subscriptionIdstringSubscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Returns the specified product.

SELECT
id,
name,
etag,
properties,
type
FROM azure_stack.azure_stack.products
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroup = '{{ resourceGroup }}' -- required
AND registrationName = '{{ registrationName }}' -- required
AND productName = '{{ productName }}' -- required
;

Lifecycle Methods

Returns the specified product.

EXEC azure_stack.azure_stack.products.upload_log 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroup='{{ resourceGroup }}' --required,
@registrationName='{{ registrationName }}' --required,
@productName='{{ productName }}' --required
@@json=
'{
}'
;