Skip to main content

views

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

Overview

Nameviews
TypeResource
Idazure_extras.customer_insights.views

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
changedtextfield from the properties object
createdtextfield from the properties object
definitiontextfield from the properties object
display_nametextfield from the properties object
hubNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
typetextResource type.
userIdtextfield from the properties object
user_idtextfield from the properties object
viewNametextfield from the properties object
view_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, resourceGroupName, subscriptionId, userId, viewNameGets a view in the hub.
list_by_hubSELECThubName, resourceGroupName, subscriptionId, userIdGets all available views for given user in the specified hub.
create_or_updateINSERThubName, resourceGroupName, subscriptionId, viewNameCreates a view or updates an existing view in the hub.
deleteDELETEhubName, resourceGroupName, subscriptionId, userId, viewNameDeletes a view in the specified hub.

SELECT examples

Gets all available views for given user in the specified hub.

SELECT
id,
name,
changed,
created,
definition,
display_name,
hubName,
resourceGroupName,
subscriptionId,
tenant_id,
type,
userId,
user_id,
viewName,
view_name
FROM azure_extras.customer_insights.vw_views
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.customer_insights.views (
hubName,
resourceGroupName,
subscriptionId,
viewName,
properties
)
SELECT
'{{ hubName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ viewName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified views resource.

/*+ delete */
DELETE FROM azure_extras.customer_insights.views
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}'
AND viewName = '{{ viewName }}';