Skip to main content

views

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

Overview

Nameviews
TypeResource
Idazure_extras.customer_insights.views

Fields

The following fields are returned by SELECT queries:

OK. Successfully get the view.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
propertiesobjectThe view in Customer 360 web application.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, hubName, viewName, subscriptionId, userIdGets a view in the hub.
list_by_hubselectresourceGroupName, hubName, subscriptionId, userIdGets all available views for given user in the specified hub.
create_or_updateinsertresourceGroupName, hubName, viewName, subscriptionIdCreates a view or updates an existing view in the hub.
deletedeleteresourceGroupName, hubName, viewName, subscriptionId, userIdDeletes a view in the specified hub.

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
hubNamestringThe name of the hub.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringGets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
userIdstringThe user ID. Use * to retrieve hub level view.
viewNamestringThe name of the view.

SELECT examples

Gets a view in the hub.

SELECT
id,
name,
properties,
type
FROM azure_extras.customer_insights.views
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND hubName = '{{ hubName }}' -- required
AND viewName = '{{ viewName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND userId = '{{ userId }}' -- required
;

INSERT examples

Creates a view or updates an existing view in the hub.

INSERT INTO azure_extras.customer_insights.views (
data__properties,
resourceGroupName,
hubName,
viewName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ hubName }}',
'{{ viewName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Deletes a view in the specified hub.

DELETE FROM azure_extras.customer_insights.views
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND hubName = '{{ hubName }}' --required
AND viewName = '{{ viewName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND userId = '{{ userId }}' --required
;