Skip to main content

access_policy_assignments

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

Overview

Nameaccess_policy_assignments
TypeResource
Idazure_isv.redis.access_policy_assignments

Fields

NameDatatypeDescription
accessPolicyAssignmentNametextfield from the properties object
access_policy_nametextfield from the properties object
cacheNametextfield from the properties object
object_idtextfield from the properties object
object_id_aliastextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccessPolicyAssignmentName, cacheName, resourceGroupName, subscriptionIdGets the list of assignments for an access policy of a redis cache
listSELECTcacheName, resourceGroupName, subscriptionIdGets the list of access policy assignments associated with this redis cache
create_updateINSERTaccessPolicyAssignmentName, cacheName, resourceGroupName, subscriptionIdAdds the access policy assignment to the specified users
deleteDELETEaccessPolicyAssignmentName, cacheName, resourceGroupName, subscriptionIdDeletes the access policy assignment from a redis cache

SELECT examples

Gets the list of access policy assignments associated with this redis cache

SELECT
accessPolicyAssignmentName,
access_policy_name,
cacheName,
object_id,
object_id_alias,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure_isv.redis.vw_access_policy_assignments
WHERE cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.redis.access_policy_assignments (
accessPolicyAssignmentName,
cacheName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accessPolicyAssignmentName }}',
'{{ cacheName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified access_policy_assignments resource.

/*+ delete */
DELETE FROM azure_isv.redis.access_policy_assignments
WHERE accessPolicyAssignmentName = '{{ accessPolicyAssignmentName }}'
AND cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';