Skip to main content

storage_sync_services

Creates, updates, deletes, gets or lists a storage_sync_services resource.

Overview

Namestorage_sync_services
TypeResource
Idazure.storage_sync.storage_sync_services

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
messagestringGets an error message explaining the Reason value in more detail.
nameAvailablebooleanGets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.
reasonstringGets the reason that a Storage Sync Service name could not be used. The Reason element is only returned if NameAvailable is false. Known values are: "Invalid" and "AlreadyExists".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectlocation_name, subscription_idCheck the give namespace name availability.
getselectresource_group_name, storage_sync_service_name, subscription_idGet a given StorageSyncService.
list_by_resource_groupselectresource_group_name, subscription_idGet a StorageSyncService list by Resource group name.
list_by_subscriptionselectsubscription_idGet a StorageSyncService list by subscription.
createinsertresource_group_name, storage_sync_service_name, subscription_id, locationCreate a new StorageSyncService.
updateupdateresource_group_name, storage_sync_service_name, subscription_idPatch a given StorageSyncService.
deletedeleteresource_group_name, storage_sync_service_name, subscription_idDelete a given StorageSyncService.

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
location_namestringThe desired region for the name check. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_sync_service_namestringName of Storage Sync Service resource. Required.
subscription_idstring

SELECT examples

Check the give namespace name availability.

SELECT
message,
nameAvailable,
reason
FROM azure.storage_sync.storage_sync_services
WHERE location_name = '{{ location_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new StorageSyncService.

INSERT INTO azure.storage_sync.storage_sync_services (
location,
tags,
properties,
resource_group_name,
storage_sync_service_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ storage_sync_service_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Patch a given StorageSyncService.

UPDATE azure.storage_sync.storage_sync_services
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND storage_sync_service_name = '{{ storage_sync_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a given StorageSyncService.

DELETE FROM azure.storage_sync.storage_sync_services
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND storage_sync_service_name = '{{ storage_sync_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;