Skip to main content

data_connectors

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

Overview

Namedata_connectors
TypeResource
Idazure_extras.ag_food_platform.data_connectors

Fields

NameDatatypeDescription
credentialstextfield from the properties object
dataConnectorNametextfield from the properties object
dataManagerForAgricultureResourceNametextfield from the properties object
e_tagtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataConnectorName, dataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdGet specific Data Connector resource by DataConnectorName.
listSELECTdataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdLists the Data Connector Credentials for MADMA instance.
create_or_updateINSERTdataConnectorName, dataManagerForAgricultureResourceName, resourceGroupName, subscriptionId, data__propertiesCreate or update Data Connector For MADMA resource.
deleteDELETEdataConnectorName, dataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdDelete a Data Connectors with given dataConnector name.

SELECT examples

Lists the Data Connector Credentials for MADMA instance.

SELECT
credentials,
dataConnectorName,
dataManagerForAgricultureResourceName,
e_tag,
resourceGroupName,
subscriptionId,
system_data
FROM azure_extras.ag_food_platform.vw_data_connectors
WHERE dataManagerForAgricultureResourceName = '{{ dataManagerForAgricultureResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.ag_food_platform.data_connectors (
dataConnectorName,
dataManagerForAgricultureResourceName,
resourceGroupName,
subscriptionId,
data__properties,
systemData,
properties
)
SELECT
'{{ dataConnectorName }}',
'{{ dataManagerForAgricultureResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ systemData }}',
'{{ properties }}'
;

DELETE example

Deletes the specified data_connectors resource.

/*+ delete */
DELETE FROM azure_extras.ag_food_platform.data_connectors
WHERE dataConnectorName = '{{ dataConnectorName }}'
AND dataManagerForAgricultureResourceName = '{{ dataManagerForAgricultureResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';