products
Creates, updates, deletes, gets or lists a products
resource.
Overview
Name | products |
Type | Resource |
Id | azure_stack.azure_stack.products |
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. |
etag | string | The entity tag used for optimistic concurrency when modifying the resource. |
properties | object | Properties of the product resource. |
type | string | Type of Resource. |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
etag | string | The entity tag used for optimistic concurrency when modifying the resource. |
properties | object | Properties of the product resource. |
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 , resourceGroup , registrationName , productName | Returns the specified product. | |
list | select | subscriptionId , resourceGroup , registrationName | Returns a list of products. | |
upload_log | exec | subscriptionId , resourceGroup , registrationName , productName | Returns 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.
Name | Datatype | Description |
---|---|---|
productName | string | Name of the product. |
registrationName | string | Name of the Azure Stack registration. |
resourceGroup | string | Name of the resource group. |
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
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
;
Returns a list of products.
SELECT
id,
name,
etag,
properties,
type
FROM azure_stack.azure_stack.products
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroup = '{{ resourceGroup }}' -- required
AND registrationName = '{{ registrationName }}' -- required
;
Lifecycle Methods
- upload_log
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=
'{
}'
;