Skip to main content

access_policies

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

Overview

Nameaccess_policies
TypeResource
Idazure_isv.redis.access_policies

Fields

NameDatatypeDescription
accessPolicyNametextfield from the properties object
cacheNametextfield from the properties object
permissionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccessPolicyName, cacheName, resourceGroupName, subscriptionIdGets the detailed information about an access policy of a redis cache
listSELECTcacheName, resourceGroupName, subscriptionIdGets the list of access policies associated with this redis cache
create_updateINSERTaccessPolicyName, cacheName, resourceGroupName, subscriptionIdAdds an access policy to the redis cache
deleteDELETEaccessPolicyName, cacheName, resourceGroupName, subscriptionIdDeletes the access policy from a redis cache

SELECT examples

Gets the list of access policies associated with this redis cache

SELECT
accessPolicyName,
cacheName,
permissions,
provisioning_state,
resourceGroupName,
subscriptionId,
type
FROM azure_isv.redis.vw_access_policies
WHERE cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified access_policies resource.

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