services
Creates, updates, deletes, gets or lists a services
resource.
Overview
Name | services |
Type | Resource |
Id | azure.storage_sync.services |
Fields
- vw_services
- services
Name | Datatype | Description |
---|---|---|
identity | text | Managed service identity (system assigned and/or user assigned identities) |
incoming_traffic_policy | text | field from the properties object |
last_operation_name | text | field from the properties object |
last_workflow_id | text | field from the properties object |
location | text | The geo-location where the resource lives |
private_endpoint_connections | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
storageSyncServiceName | text | field from the properties object |
storage_sync_service_status | text | field from the properties object |
storage_sync_service_uid | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
use_identity | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | Storage Sync Service Properties object. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, storageSyncServiceName, subscriptionId | Get a given StorageSyncService. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get a StorageSyncService list by Resource group name. |
list_by_subscription | SELECT | subscriptionId | Get a StorageSyncService list by subscription. |
create | INSERT | resourceGroupName, storageSyncServiceName, subscriptionId, data__location | Create a new StorageSyncService. |
delete | DELETE | resourceGroupName, storageSyncServiceName, subscriptionId | Delete a given StorageSyncService. |
update | UPDATE | resourceGroupName, storageSyncServiceName, subscriptionId | Patch a given StorageSyncService. |
check_name_availability | EXEC | locationName, subscriptionId, data__name, data__type | Check the give namespace name availability. |
SELECT
examples
Get a StorageSyncService list by subscription.
- vw_services
- services
SELECT
identity,
incoming_traffic_policy,
last_operation_name,
last_workflow_id,
location,
private_endpoint_connections,
provisioning_state,
resourceGroupName,
storageSyncServiceName,
storage_sync_service_status,
storage_sync_service_uid,
subscriptionId,
tags,
use_identity
FROM azure.storage_sync.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties,
tags
FROM azure.storage_sync.services
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new services
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.storage_sync.services (
resourceGroupName,
storageSyncServiceName,
subscriptionId,
data__location,
identity,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ storageSyncServiceName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: properties
value:
- name: incomingTrafficPolicy
value: []
- name: useIdentity
value: boolean
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a services
resource.
/*+ update */
UPDATE azure.storage_sync.services
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified services
resource.
/*+ delete */
DELETE FROM azure.storage_sync.services
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';