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

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
etagstringEtag identifies change in the resource.
propertiesobjectProperties of the change data capture.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, factoryName, changeDataCaptureNameapi-version, If-None-MatchGets a change data capture.
list_by_factoryselectsubscriptionId, resourceGroupName, factoryNameapi-versionLists all resources of type change data capture.
create_or_updateinsertsubscriptionId, resourceGroupName, factoryName, changeDataCaptureName, data__propertiesapi-version, If-MatchCreates or updates a change data capture resource.
deletedeletesubscriptionId, resourceGroupName, factoryName, changeDataCaptureNameapi-versionDeletes a change data capture.
startexecsubscriptionId, resourceGroupName, factoryName, changeDataCaptureNameapi-versionStarts a change data capture.
stopexecsubscriptionId, resourceGroupName, factoryName, changeDataCaptureNameapi-versionStops a change data capture.
statusexecsubscriptionId, resourceGroupName, factoryName, changeDataCaptureNameapi-versionGets the current status for the change data capture resource.

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
changeDataCaptureNamestringThe change data capture name.
factoryNamestringThe factory name.
resourceGroupNamestringThe resource group name.
subscriptionIdstringThe subscription identifier.
If-MatchstringETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
If-None-MatchstringETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
api-versionstringThe API version.

SELECT examples

Gets a change data capture.

SELECT
id,
name,
etag,
properties,
type
FROM azure.data_factory.change_data_captures
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND factoryName = '{{ factoryName }}' -- required
AND changeDataCaptureName = '{{ changeDataCaptureName }}' -- required
AND api-version = '{{ api-version }}'
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples

Creates or updates a change data capture resource.

INSERT INTO azure.data_factory.change_data_captures (
data__properties,
subscriptionId,
resourceGroupName,
factoryName,
changeDataCaptureName,
api-version,
If-Match
)
SELECT
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ factoryName }}',
'{{ changeDataCaptureName }}',
'{{ api-version }}',
'{{ If-Match }}'
RETURNING
id,
name,
etag,
properties,
type
;

DELETE examples

Deletes a change data capture.

DELETE FROM azure.data_factory.change_data_captures
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND factoryName = '{{ factoryName }}' --required
AND changeDataCaptureName = '{{ changeDataCaptureName }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Starts a change data capture.

EXEC azure.data_factory.change_data_captures.start 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@factoryName='{{ factoryName }}' --required,
@changeDataCaptureName='{{ changeDataCaptureName }}' --required,
@api-version='{{ api-version }}'
;