Skip to main content

roles

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

Overview

Nameroles
TypeResource
Idazure_extras.customer_insights.roles

Fields

The following fields are returned by SELECT queries:

OK. Successfully get all the roles in the hub.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
propertiesobjectThe Role definition.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_hubselectresourceGroupName, hubName, subscriptionIdGets all the roles for the 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.

SELECT examples

Gets all the roles for the hub.

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