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.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tenantIdstringTenant Id.
typestringType of Resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group, registration_name, customer_subscription_name, subscription_idReturns the specified product.
listselectresource_group, registration_name, subscription_idReturns a list of products.
createinsertresource_group, registration_name, customer_subscription_name, subscription_idCreates a new customer subscription under a registration.
deletedeleteresource_group, registration_name, customer_subscription_name, subscription_idDeletes 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
customer_subscription_namestringName of the product. Required.
registration_namestringName of the Azure Stack registration. Required.
resource_groupstringName of the resource group. Required.
subscription_idstring

SELECT examples​

Returns the specified product.

SELECT
id,
name,
etag,
systemData,
tenantId,
type
FROM azure_stack.azure_stack.customer_subscriptions
WHERE resource_group = '{{ resource_group }}' -- required
AND registration_name = '{{ registration_name }}' -- required
AND customer_subscription_name = '{{ customer_subscription_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Creates a new customer subscription under a registration.

INSERT INTO azure_stack.azure_stack.customer_subscriptions (
etag,
properties,
resource_group,
registration_name,
customer_subscription_name,
subscription_id
)
SELECT
'{{ etag }}',
'{{ properties }}',
'{{ resource_group }}',
'{{ registration_name }}',
'{{ customer_subscription_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples​

Deletes a customer subscription under a registration.

DELETE FROM azure_stack.azure_stack.customer_subscriptions
WHERE resource_group = '{{ resource_group }}' --required
AND registration_name = '{{ registration_name }}' --required
AND customer_subscription_name = '{{ customer_subscription_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;