Skip to main content

custom_entity_store_assignments

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

Overview

Namecustom_entity_store_assignments
TypeResource
Idazure.security.custom_entity_store_assignments

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
customEntityStoreAssignmentNametextfield from the properties object
entity_store_database_linktextfield from the properties object
principaltextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomEntityStoreAssignmentName, resourceGroupName, subscriptionIdGets a single custom entity store assignment by name for the provided subscription and resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList custom entity store assignments by a provided subscription and resource group
list_by_subscriptionSELECTsubscriptionIdList custom entity store assignments by provided subscription
createINSERTcustomEntityStoreAssignmentName, resourceGroupName, subscriptionIdCreates a custom entity store assignment for the provided subscription, if not already exists.
deleteDELETEcustomEntityStoreAssignmentName, resourceGroupName, subscriptionIdDelete a custom entity store assignment by name for a provided subscription

SELECT examples

List custom entity store assignments by provided subscription

SELECT
id,
name,
customEntityStoreAssignmentName,
entity_store_database_link,
principal,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.security.vw_custom_entity_store_assignments
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.custom_entity_store_assignments (
customEntityStoreAssignmentName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customEntityStoreAssignmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified custom_entity_store_assignments resource.

/*+ delete */
DELETE FROM azure.security.custom_entity_store_assignments
WHERE customEntityStoreAssignmentName = '{{ customEntityStoreAssignmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';