sync_groups
Creates, updates, deletes, gets or lists a sync_groups
resource.
Overview
Name | sync_groups |
Type | Resource |
Id | azure.storage_sync.sync_groups |
Fields
- vw_sync_groups
- sync_groups
Name | Datatype | Description |
---|---|---|
resourceGroupName | text | field from the properties object |
storageSyncServiceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
syncGroupName | text | field from the properties object |
sync_group_status | text | field from the properties object |
unique_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | SyncGroup Properties object. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupName | Get a given SyncGroup. |
list_by_storage_sync_service | SELECT | resourceGroupName, storageSyncServiceName, subscriptionId | Get a SyncGroup List. |
create | INSERT | resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupName | Create a new SyncGroup. |
delete | DELETE | resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupName | Delete a given SyncGroup. |
SELECT
examples
Get a SyncGroup List.
- vw_sync_groups
- sync_groups
SELECT
resourceGroupName,
storageSyncServiceName,
subscriptionId,
syncGroupName,
sync_group_status,
unique_id
FROM azure.storage_sync.vw_sync_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.storage_sync.sync_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new sync_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.storage_sync.sync_groups (
resourceGroupName,
storageSyncServiceName,
subscriptionId,
syncGroupName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ storageSyncServiceName }}',
'{{ subscriptionId }}',
'{{ syncGroupName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value: []
DELETE
example
Deletes the specified sync_groups
resource.
/*+ delete */
DELETE FROM azure.storage_sync.sync_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND syncGroupName = '{{ syncGroupName }}';