subscriptions
Creates, updates, deletes, gets or lists a subscriptions
resource.
Overview
Name | subscriptions |
Type | Resource |
Id | azure_stack.user_subscriptions.subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified identifier. |
displayName | string | Subscription name. |
offerId | string | Identifier of the offer under the scope of a delegated provider. |
state | string | Subscription notification state. |
subscriptionId | string | Subscription identifier. |
tenantId | string | Directory tenant identifier. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | subscriptionId | Gets details about particular subscription. |
list | SELECT |
| Get the list of subscriptions. |
create_or_update | INSERT | subscriptionId | Create or updates a subscription. |
delete | DELETE | subscriptionId | Delete the specified subscription. |
SELECT
examples
Get the list of subscriptions.
SELECT
id,
displayName,
offerId,
state,
subscriptionId,
tenantId
FROM azure_stack.user_subscriptions.subscriptions
;
INSERT
example
Use the following StackQL query and manifest file to create a new subscriptions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.user_subscriptions.subscriptions (
subscriptionId,
displayName,
id,
offerId,
state,
subscriptionId,
tenantId
)
SELECT
'{{ subscriptionId }}',
'{{ displayName }}',
'{{ id }}',
'{{ offerId }}',
'{{ state }}',
'{{ subscriptionId }}',
'{{ tenantId }}'
;
- name: your_resource_model_name
props:
- name: displayName
value: string
- name: id
value: string
- name: offerId
value: string
- name: state
value: []
- name: subscriptionId
value: string
- name: tenantId
value: string
DELETE
example
Deletes the specified subscriptions
resource.
/*+ delete */
DELETE FROM azure_stack.user_subscriptions.subscriptions
WHERE subscriptionId = '{{ subscriptionId }}';