Skip to main content

data_manager_for_agriculture_resources

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

Overview

Namedata_manager_for_agriculture_resources
TypeResource
Idazure_extras.ag_food_platform.data_manager_for_agriculture_resources

Fields

NameDatatypeDescription
dataManagerForAgricultureResourceNametextfield from the properties object
identitytextIdentity for the resource.
instance_uritextfield from the properties object
locationtextThe geo-location where the resource lives
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
sensor_integrationtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdGet DataManagerForAgriculture resource.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the DataManagerForAgriculture instances for a resource group.
list_by_subscriptionSELECTsubscriptionIdLists the DataManagerForAgriculture instances for a subscription.
create_or_updateINSERTdataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdCreate or update Data Manager For Agriculture resource.
deleteDELETEdataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdDelete a Data Manager For Agriculture resource.
updateUPDATEdataManagerForAgricultureResourceName, resourceGroupName, subscriptionIdUpdate a Data Manager For Agriculture resource.

SELECT examples

Lists the DataManagerForAgriculture instances for a subscription.

SELECT
dataManagerForAgricultureResourceName,
identity,
instance_uri,
location,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sensor_integration,
subscriptionId,
tags
FROM azure_extras.ag_food_platform.vw_data_manager_for_agriculture_resources
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.ag_food_platform.data_manager_for_agriculture_resources (
dataManagerForAgricultureResourceName,
resourceGroupName,
subscriptionId,
tags,
location,
identity,
properties
)
SELECT
'{{ dataManagerForAgricultureResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a data_manager_for_agriculture_resources resource.

/*+ update */
UPDATE azure_extras.ag_food_platform.data_manager_for_agriculture_resources
SET
location = '{{ location }}',
identity = '{{ identity }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
dataManagerForAgricultureResourceName = '{{ dataManagerForAgricultureResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified data_manager_for_agriculture_resources resource.

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