Skip to main content

cloud_endpoints

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

Overview

Namecloud_endpoints
TypeResource
Idazure.storage_sync.cloud_endpoints

Fields

NameDatatypeDescription
azure_file_share_nametextfield from the properties object
backup_enabledtextfield from the properties object
change_enumeration_statustextfield from the properties object
cloudEndpointNametextfield from the properties object
friendly_nametextfield from the properties object
last_operation_nametextfield from the properties object
last_workflow_idtextfield from the properties object
partnership_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storageSyncServiceNametextfield from the properties object
storage_account_resource_idtextfield from the properties object
storage_account_tenant_idtextfield from the properties object
subscriptionIdtextfield from the properties object
syncGroupNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameGet a given CloudEndpoint.
list_by_sync_groupSELECTresourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameGet a CloudEndpoint List.
createINSERTcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameCreate a new CloudEndpoint.
deleteDELETEcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameDelete a given CloudEndpoint.
afs_share_metadata_certificate_public_keysEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameGet the AFS file share metadata signing certificate public keys.
post_backupEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNamePost Backup a given CloudEndpoint.
post_restoreEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNamePost Restore a given CloudEndpoint.
pre_backupEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNamePre Backup a given CloudEndpoint.
pre_restoreEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNamePre Restore a given CloudEndpoint.
restoreheartbeatEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameRestore Heartbeat a given CloudEndpoint.
trigger_change_detectionEXECcloudEndpointName, resourceGroupName, storageSyncServiceName, subscriptionId, syncGroupNameTriggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud Endpoint.

SELECT examples

Get a CloudEndpoint List.

SELECT
azure_file_share_name,
backup_enabled,
change_enumeration_status,
cloudEndpointName,
friendly_name,
last_operation_name,
last_workflow_id,
partnership_id,
provisioning_state,
resourceGroupName,
storageSyncServiceName,
storage_account_resource_id,
storage_account_tenant_id,
subscriptionId,
syncGroupName
FROM azure.storage_sync.vw_cloud_endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND syncGroupName = '{{ syncGroupName }}';

INSERT example

Use the following StackQL query and manifest file to create a new cloud_endpoints resource.

/*+ create */
INSERT INTO azure.storage_sync.cloud_endpoints (
cloudEndpointName,
resourceGroupName,
storageSyncServiceName,
subscriptionId,
syncGroupName,
properties
)
SELECT
'{{ cloudEndpointName }}',
'{{ resourceGroupName }}',
'{{ storageSyncServiceName }}',
'{{ subscriptionId }}',
'{{ syncGroupName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified cloud_endpoints resource.

/*+ delete */
DELETE FROM azure.storage_sync.cloud_endpoints
WHERE cloudEndpointName = '{{ cloudEndpointName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageSyncServiceName = '{{ storageSyncServiceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND syncGroupName = '{{ syncGroupName }}';