group_quota_subscriptions
Creates, updates, deletes, gets or lists a group_quota_subscriptions
resource.
Overview
Name | group_quota_subscriptions |
Type | Resource |
Id | azure.quota.group_quota_subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
properties | object |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | groupQuotaName, managementGroupId, subscriptionId | Returns the subscriptionIds along with its provisioning state for being associated with the GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200. |
list | SELECT | groupQuotaName, managementGroupId | Returns a list of the subscriptionIds associated with the GroupQuotas. |
create_or_update | INSERT | groupQuotaName, managementGroupId, subscriptionId | Adds a subscription to GroupQuotas. The subscriptions will be validated based on the additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against the subscription's TenantId. |
delete | DELETE | groupQuotaName, managementGroupId, subscriptionId | Removes the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId. |
update | UPDATE | groupQuotaName, managementGroupId, subscriptionId | Updates the GroupQuotas with the subscription to add to the subscriptions list. The subscriptions will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is validated against the subscription's TenantId. |
SELECT
examples
Returns a list of the subscriptionIds associated with the GroupQuotas.
SELECT
properties
FROM azure.quota.group_quota_subscriptions
WHERE groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new group_quota_subscriptions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.quota.group_quota_subscriptions (
groupQuotaName,
managementGroupId,
subscriptionId
)
SELECT
'{{ groupQuotaName }}',
'{{ managementGroupId }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []
UPDATE
example
Updates a group_quota_subscriptions
resource.
/*+ update */
UPDATE azure.quota.group_quota_subscriptions
SET
WHERE
groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified group_quota_subscriptions
resource.
/*+ delete */
DELETE FROM azure.quota.group_quota_subscriptions
WHERE groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}'
AND subscriptionId = '{{ subscriptionId }}';