Skip to main content

data_stores

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

Overview

Namedata_stores
TypeResource
Idazure.hybrid_data_manager.data_stores

Fields

NameDatatypeDescription
idtextId of the object.
nametextName of the object.
customer_secretstextfield from the properties object
dataManagerNametextfield from the properties object
dataStoreNametextfield from the properties object
data_store_type_idtextfield from the properties object
extended_propertiestextfield from the properties object
repository_idtextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of the object.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataManagerName, dataStoreName, resourceGroupName, subscriptionIdThis method gets the data store/repository by name.
list_by_data_managerSELECTdataManagerName, resourceGroupName, subscriptionIdGets all the data stores/repositories in the given resource.
create_or_updateINSERTdataManagerName, dataStoreName, resourceGroupName, subscriptionId, data__propertiesCreates or updates the data store/repository in the data manager.
deleteDELETEdataManagerName, dataStoreName, resourceGroupName, subscriptionIdThis method deletes the given data store/repository.

SELECT examples

Gets all the data stores/repositories in the given resource.

SELECT
id,
name,
customer_secrets,
dataManagerName,
dataStoreName,
data_store_type_id,
extended_properties,
repository_id,
resourceGroupName,
state,
subscriptionId,
type
FROM azure.hybrid_data_manager.vw_data_stores
WHERE dataManagerName = '{{ dataManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_data_manager.data_stores (
dataManagerName,
dataStoreName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ dataManagerName }}',
'{{ dataStoreName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified data_stores resource.

/*+ delete */
DELETE FROM azure.hybrid_data_manager.data_stores
WHERE dataManagerName = '{{ dataManagerName }}'
AND dataStoreName = '{{ dataStoreName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';