1. Packages
  2. Azure Native
  3. API Docs
  4. redisenterprise
  5. getAccessPolicyAssignment
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.redisenterprise.getAccessPolicyAssignment

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

    Gets information about access policy assignment for database.

    Uses Azure REST API version 2024-09-01-preview.

    Other available API versions: 2025-04-01, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native redisenterprise [ApiVersion]. See the version guide for details.

    Using getAccessPolicyAssignment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAccessPolicyAssignment(args: GetAccessPolicyAssignmentArgs, opts?: InvokeOptions): Promise<GetAccessPolicyAssignmentResult>
    function getAccessPolicyAssignmentOutput(args: GetAccessPolicyAssignmentOutputArgs, opts?: InvokeOptions): Output<GetAccessPolicyAssignmentResult>
    def get_access_policy_assignment(access_policy_assignment_name: Optional[str] = None,
                                     cluster_name: Optional[str] = None,
                                     database_name: Optional[str] = None,
                                     resource_group_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAccessPolicyAssignmentResult
    def get_access_policy_assignment_output(access_policy_assignment_name: Optional[pulumi.Input[str]] = None,
                                     cluster_name: Optional[pulumi.Input[str]] = None,
                                     database_name: Optional[pulumi.Input[str]] = None,
                                     resource_group_name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetAccessPolicyAssignmentResult]
    func LookupAccessPolicyAssignment(ctx *Context, args *LookupAccessPolicyAssignmentArgs, opts ...InvokeOption) (*LookupAccessPolicyAssignmentResult, error)
    func LookupAccessPolicyAssignmentOutput(ctx *Context, args *LookupAccessPolicyAssignmentOutputArgs, opts ...InvokeOption) LookupAccessPolicyAssignmentResultOutput

    > Note: This function is named LookupAccessPolicyAssignment in the Go SDK.

    public static class GetAccessPolicyAssignment 
    {
        public static Task<GetAccessPolicyAssignmentResult> InvokeAsync(GetAccessPolicyAssignmentArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessPolicyAssignmentResult> Invoke(GetAccessPolicyAssignmentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccessPolicyAssignmentResult> getAccessPolicyAssignment(GetAccessPolicyAssignmentArgs args, InvokeOptions options)
    public static Output<GetAccessPolicyAssignmentResult> getAccessPolicyAssignment(GetAccessPolicyAssignmentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:redisenterprise:getAccessPolicyAssignment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessPolicyAssignmentName string
    The name of the Redis Enterprise database access policy assignment.
    ClusterName string
    The name of the Redis Enterprise cluster.
    DatabaseName string
    The name of the Redis Enterprise database.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AccessPolicyAssignmentName string
    The name of the Redis Enterprise database access policy assignment.
    ClusterName string
    The name of the Redis Enterprise cluster.
    DatabaseName string
    The name of the Redis Enterprise database.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    accessPolicyAssignmentName String
    The name of the Redis Enterprise database access policy assignment.
    clusterName String
    The name of the Redis Enterprise cluster.
    databaseName String
    The name of the Redis Enterprise database.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    accessPolicyAssignmentName string
    The name of the Redis Enterprise database access policy assignment.
    clusterName string
    The name of the Redis Enterprise cluster.
    databaseName string
    The name of the Redis Enterprise database.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    access_policy_assignment_name str
    The name of the Redis Enterprise database access policy assignment.
    cluster_name str
    The name of the Redis Enterprise cluster.
    database_name str
    The name of the Redis Enterprise database.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    accessPolicyAssignmentName String
    The name of the Redis Enterprise database access policy assignment.
    clusterName String
    The name of the Redis Enterprise cluster.
    databaseName String
    The name of the Redis Enterprise database.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.

    getAccessPolicyAssignment Result

    The following output properties are available:

    AccessPolicyName string
    Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    ProvisioningState string
    Current provisioning status of the access policy assignment.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    User Pulumi.AzureNative.RedisEnterprise.Outputs.AccessPolicyAssignmentPropertiesResponseUser
    The user associated with the access policy.
    AccessPolicyName string
    Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    ProvisioningState string
    Current provisioning status of the access policy assignment.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    User AccessPolicyAssignmentPropertiesResponseUser
    The user associated with the access policy.
    accessPolicyName String
    Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    provisioningState String
    Current provisioning status of the access policy assignment.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    user AccessPolicyAssignmentPropertiesResponseUser
    The user associated with the access policy.
    accessPolicyName string
    Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
    azureApiVersion string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name string
    The name of the resource
    provisioningState string
    Current provisioning status of the access policy assignment.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    user AccessPolicyAssignmentPropertiesResponseUser
    The user associated with the access policy.
    access_policy_name str
    Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
    azure_api_version str
    The Azure API version of the resource.
    id str
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name str
    The name of the resource
    provisioning_state str
    Current provisioning status of the access policy assignment.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    user AccessPolicyAssignmentPropertiesResponseUser
    The user associated with the access policy.
    accessPolicyName String
    Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    provisioningState String
    Current provisioning status of the access policy assignment.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    user Property Map
    The user associated with the access policy.

    Supporting Types

    AccessPolicyAssignmentPropertiesResponseUser

    ObjectId string
    The object ID of the user.
    ObjectId string
    The object ID of the user.
    objectId String
    The object ID of the user.
    objectId string
    The object ID of the user.
    object_id str
    The object ID of the user.
    objectId String
    The object ID of the user.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi