Microsoft.Cache redisEnterprise/databases/accessPolicyAssignments
Bicep resource definition
The redisEnterprise/databases/accessPolicyAssignments resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments@2024-09-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
accessPolicyName: 'string'
user: {
objectId: 'string'
}
}
}
Property values
AccessPolicyAssignmentProperties
Name | Description | Value |
---|---|---|
accessPolicyName | Name of access policy under specific access policy assignment. Only "default" policy is supported for now. | string Constraints: Pattern = ^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$ (required) |
user | The user associated with the access policy. | AccessPolicyAssignmentPropertiesUser (required) |
AccessPolicyAssignmentPropertiesUser
Name | Description | Value |
---|---|---|
objectId | The object ID of the user. | string |
Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Pattern = ^[A-Za-z0-9]{1,60}$ (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: redisEnterprise/databases |
properties | Properties of the access policy assignment. | AccessPolicyAssignmentProperties |
ARM template resource definition
The redisEnterprise/databases/accessPolicyAssignments resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments resource, add the following JSON to your template.
{
"type": "Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments",
"apiVersion": "2024-09-01-preview",
"name": "string",
"properties": {
"accessPolicyName": "string",
"user": {
"objectId": "string"
}
}
}
Property values
AccessPolicyAssignmentProperties
Name | Description | Value |
---|---|---|
accessPolicyName | Name of access policy under specific access policy assignment. Only "default" policy is supported for now. | string Constraints: Pattern = ^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$ (required) |
user | The user associated with the access policy. | AccessPolicyAssignmentPropertiesUser (required) |
AccessPolicyAssignmentPropertiesUser
Name | Description | Value |
---|---|---|
objectId | The object ID of the user. | string |
Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-09-01-preview' |
name | The resource name | string Constraints: Pattern = ^[A-Za-z0-9]{1,60}$ (required) |
properties | Properties of the access policy assignment. | AccessPolicyAssignmentProperties |
type | The resource type | 'Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments' |
Terraform (AzAPI provider) resource definition
The redisEnterprise/databases/accessPolicyAssignments resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments@2024-09-01-preview"
name = "string"
body = jsonencode({
properties = {
accessPolicyName = "string"
user = {
objectId = "string"
}
}
})
}
Property values
AccessPolicyAssignmentProperties
Name | Description | Value |
---|---|---|
accessPolicyName | Name of access policy under specific access policy assignment. Only "default" policy is supported for now. | string Constraints: Pattern = ^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|[a-zA-Z0-9])$ (required) |
user | The user associated with the access policy. | AccessPolicyAssignmentPropertiesUser (required) |
AccessPolicyAssignmentPropertiesUser
Name | Description | Value |
---|---|---|
objectId | The object ID of the user. | string |
Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Pattern = ^[A-Za-z0-9]{1,60}$ (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: redisEnterprise/databases |
properties | Properties of the access policy assignment. | AccessPolicyAssignmentProperties |
type | The resource type | "Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments@2024-09-01-preview" |