Skip to main content

role_assignments

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

Overview

Namerole_assignments
TypeResource
Idazure_extras.customer_insights.role_assignments

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
assignmentNametextfield from the properties object
assignment_nametextfield from the properties object
conflation_policiestextfield from the properties object
connectorstextfield from the properties object
display_nametextfield from the properties object
hubNametextfield from the properties object
interactionstextfield from the properties object
kpistextfield from the properties object
linkstextfield from the properties object
principalstextfield from the properties object
profilestextfield from the properties object
provisioning_statetextfield from the properties object
relationship_linkstextfield from the properties object
relationshipstextfield from the properties object
resourceGroupNametextfield from the properties object
roletextfield from the properties object
role_assignmentstextfield from the properties object
sas_policiestextfield from the properties object
segmentstextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
typetextResource type.
viewstextfield from the properties object
widget_typestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTassignmentName, hubName, resourceGroupName, subscriptionIdGets the role assignment in the hub.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all the role assignments for the specified hub.
create_or_updateINSERTassignmentName, hubName, resourceGroupName, subscriptionIdCreates or updates a role assignment in the hub.
deleteDELETEassignmentName, hubName, resourceGroupName, subscriptionIdDeletes the role assignment in the hub.

SELECT examples

Gets all the role assignments for the specified hub.

SELECT
id,
name,
description,
assignmentName,
assignment_name,
conflation_policies,
connectors,
display_name,
hubName,
interactions,
kpis,
links,
principals,
profiles,
provisioning_state,
relationship_links,
relationships,
resourceGroupName,
role,
role_assignments,
sas_policies,
segments,
subscriptionId,
tenant_id,
type,
views,
widget_types
FROM azure_extras.customer_insights.vw_role_assignments
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified role_assignments resource.

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