Skip to main content

profiles

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

Overview

Nameprofiles
TypeResource
Idazure_extras.customer_insights.profiles

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
api_entity_set_nametextfield from the properties object
entity_typetextfield from the properties object
fieldstextfield from the properties object
hubNametextfield from the properties object
instances_counttextfield from the properties object
last_changed_utctextfield from the properties object
profileNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
schema_item_type_linktextfield from the properties object
strong_idstextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
timestamp_field_nametextfield from the properties object
typetextResource type.
type_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, profileName, resourceGroupName, subscriptionIdGets information about the specified profile.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all profile in the hub.
create_or_updateINSERThubName, profileName, resourceGroupName, subscriptionIdCreates a profile within a Hub, or updates an existing profile.
deleteDELETEhubName, profileName, resourceGroupName, subscriptionIdDeletes a profile within a hub

SELECT examples

Gets all profile in the hub.

SELECT
id,
name,
api_entity_set_name,
entity_type,
fields,
hubName,
instances_count,
last_changed_utc,
profileName,
provisioning_state,
resourceGroupName,
schema_item_type_link,
strong_ids,
subscriptionId,
tenant_id,
timestamp_field_name,
type,
type_name
FROM azure_extras.customer_insights.vw_profiles
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified profiles resource.

/*+ delete */
DELETE FROM azure_extras.customer_insights.profiles
WHERE hubName = '{{ hubName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';