Skip to main content

customer_subscriptions

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

Overview

Namecustomer_subscriptions
TypeResource
Idazure_stack.azure_stack.customer_subscriptions

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.
propertiesobjectCustomer subscription properties.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroup, registrationName, customerSubscriptionNameReturns the specified product.
listselectsubscriptionId, resourceGroup, registrationNameReturns a list of products.
createinsertsubscriptionId, resourceGroup, registrationName, customerSubscriptionNameCreates a new customer subscription under a registration.
deletedeletesubscriptionId, resourceGroup, registrationName, customerSubscriptionNameDeletes a customer subscription under a registration.

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
customerSubscriptionNamestringName 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.customer_subscriptions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroup = '{{ resourceGroup }}' -- required
AND registrationName = '{{ registrationName }}' -- required
AND customerSubscriptionName = '{{ customerSubscriptionName }}' -- required
;

INSERT examples

Creates a new customer subscription under a registration.

INSERT INTO azure_stack.azure_stack.customer_subscriptions (
data__properties,
data__etag,
subscriptionId,
resourceGroup,
registrationName,
customerSubscriptionName
)
SELECT
'{{ properties }}',
'{{ etag }}',
'{{ subscriptionId }}',
'{{ resourceGroup }}',
'{{ registrationName }}',
'{{ customerSubscriptionName }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes a customer subscription under a registration.

DELETE FROM azure_stack.azure_stack.customer_subscriptions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroup = '{{ resourceGroup }}' --required
AND registrationName = '{{ registrationName }}' --required
AND customerSubscriptionName = '{{ customerSubscriptionName }}' --required
;