management_group_subscriptions
Creates, updates, deletes, gets or lists a management_group_subscriptions
resource.
Overview
Name | management_group_subscriptions |
Type | Resource |
Id | azure.management_groups.management_group_subscriptions |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create | insert | groupId , subscriptionId | Cache-Control | Associates existing subscription with the management group. |
delete | delete | groupId , subscriptionId | Cache-Control | De-associates subscription from the management group. |
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 |
---|---|---|
groupId | string | Management Group ID. |
subscriptionId | string | Subscription ID. |
Cache-Control | string | Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. |
INSERT
examples
- create
- Manifest
Associates existing subscription with the management group.
INSERT INTO azure.management_groups.management_group_subscriptions (
groupId,
subscriptionId,
Cache-Control
)
SELECT
'{{ groupId }}',
'{{ subscriptionId }}',
'{{ Cache-Control }}'
RETURNING
id,
name,
properties,
type
;
# Description fields are for documentation purposes
- name: management_group_subscriptions
props:
- name: groupId
value: string
description: Required parameter for the management_group_subscriptions resource.
- name: subscriptionId
value: string
description: Required parameter for the management_group_subscriptions resource.
- name: Cache-Control
value: string
description: Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.
DELETE
examples
- delete
De-associates subscription from the management group.
DELETE FROM azure.management_groups.management_group_subscriptions
WHERE groupId = '{{ groupId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND Cache-Control = '{{ Cache-Control }}'
;