azure-native.redisenterprise.getAccessPolicyAssignment
Explore with Pulumi AI
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:
- Access
Policy stringAssignment Name - The name of the Redis Enterprise database access policy assignment.
- Cluster
Name string - The name of the Redis Enterprise cluster.
- Database
Name string - The name of the Redis Enterprise database.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Access
Policy stringAssignment Name - The name of the Redis Enterprise database access policy assignment.
- Cluster
Name string - The name of the Redis Enterprise cluster.
- Database
Name string - The name of the Redis Enterprise database.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- access
Policy StringAssignment Name - The name of the Redis Enterprise database access policy assignment.
- cluster
Name String - The name of the Redis Enterprise cluster.
- database
Name String - The name of the Redis Enterprise database.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- access
Policy stringAssignment Name - The name of the Redis Enterprise database access policy assignment.
- cluster
Name string - The name of the Redis Enterprise cluster.
- database
Name string - The name of the Redis Enterprise database.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- access_
policy_ strassignment_ name - 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_ strname - The name of the resource group. The name is case insensitive.
- access
Policy StringAssignment Name - The name of the Redis Enterprise database access policy assignment.
- cluster
Name String - The name of the Redis Enterprise cluster.
- database
Name String - The name of the Redis Enterprise database.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
getAccessPolicyAssignment Result
The following output properties are available:
- Access
Policy stringName - Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
- Azure
Api stringVersion - 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
- Provisioning
State 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.
Azure Native. Redis Enterprise. Outputs. Access Policy Assignment Properties Response User - The user associated with the access policy.
- Access
Policy stringName - Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
- Azure
Api stringVersion - 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
- Provisioning
State 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
Access
Policy Assignment Properties Response User - The user associated with the access policy.
- access
Policy StringName - Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
- azure
Api StringVersion - 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
- provisioning
State 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
Access
Policy Assignment Properties Response User - The user associated with the access policy.
- access
Policy stringName - Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
- azure
Api stringVersion - 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
- provisioning
State 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
Access
Policy Assignment Properties Response User - The user associated with the access policy.
- access_
policy_ strname - Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
- azure_
api_ strversion - 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
Access
Policy Assignment Properties Response User - The user associated with the access policy.
- access
Policy StringName - Name of access policy under specific access policy assignment. Only "default" policy is supported for now.
- azure
Api StringVersion - 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
- provisioning
State 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
- Object
Id string - The object ID of the user.
- Object
Id string - The object ID of the user.
- object
Id String - The object ID of the user.
- object
Id string - The object ID of the user.
- object_
id str - The object ID of the user.
- object
Id String - The object ID of the user.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0