Skip to main content

change_data_captures

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

Overview

Namechange_data_captures
TypeResource
Idazure.data_factory.change_data_captures

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
descriptiontextfield from the properties object
allow_v_net_overridetextfield from the properties object
changeDataCaptureNametextfield from the properties object
etagtextEtag identifies change in the resource.
factoryNametextfield from the properties object
foldertextfield from the properties object
policytextfield from the properties object
resourceGroupNametextfield from the properties object
source_connections_infotextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
target_connections_infotextfield from the properties object
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTchangeDataCaptureName, factoryName, resourceGroupName, subscriptionIdGets a change data capture.
list_by_factorySELECTfactoryName, resourceGroupName, subscriptionIdLists all resources of type change data capture.
create_or_updateINSERTchangeDataCaptureName, factoryName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a change data capture resource.
deleteDELETEchangeDataCaptureName, factoryName, resourceGroupName, subscriptionIdDeletes a change data capture.
startEXECchangeDataCaptureName, factoryName, resourceGroupName, subscriptionIdStarts a change data capture.
statusEXECchangeDataCaptureName, factoryName, resourceGroupName, subscriptionIdGets the current status for the change data capture resource.
stopEXECchangeDataCaptureName, factoryName, resourceGroupName, subscriptionIdStops a change data capture.

SELECT examples

Lists all resources of type change data capture.

SELECT
id,
name,
description,
allow_v_net_override,
changeDataCaptureName,
etag,
factoryName,
folder,
policy,
resourceGroupName,
source_connections_info,
status,
subscriptionId,
target_connections_info,
type
FROM azure.data_factory.vw_change_data_captures
WHERE factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_factory.change_data_captures (
changeDataCaptureName,
factoryName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ changeDataCaptureName }}',
'{{ factoryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified change_data_captures resource.

/*+ delete */
DELETE FROM azure.data_factory.change_data_captures
WHERE changeDataCaptureName = '{{ changeDataCaptureName }}'
AND factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';