1. Packages
  2. RedisCloud
  3. API Docs
  4. getAclUser
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

rediscloud.getAclUser

Explore with Pulumi AI

rediscloud logo
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

    The User data source allows access to an existing Rule within your Redis Enterprise Cloud Account.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rediscloud = Pulumi.Rediscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Rediscloud.GetAclUser.Invoke(new()
        {
            Name = "fast-admin-john",
        });
    
        return new Dictionary<string, object?>
        {
            ["rediscloudAclUser"] = example.Apply(getAclUserResult => getAclUserResult.Id),
        };
    });
    
    package main
    
    import (
    	"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := rediscloud.LookupAclUser(ctx, &rediscloud.LookupAclUserArgs{
    			Name: "fast-admin-john",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("rediscloudAclUser", example.Id)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rediscloud.RediscloudFunctions;
    import com.pulumi.rediscloud.inputs.GetAclUserArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = RediscloudFunctions.getAclUser(GetAclUserArgs.builder()
                .name("fast-admin-john")
                .build());
    
            ctx.export("rediscloudAclUser", example.applyValue(getAclUserResult -> getAclUserResult.id()));
        }
    }
    
    import pulumi
    import pulumi_rediscloud as rediscloud
    
    example = rediscloud.get_acl_user(name="fast-admin-john")
    pulumi.export("rediscloudAclUser", example.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rediscloud from "@pulumi/rediscloud";
    
    const example = rediscloud.getAclUser({
        name: "fast-admin-john",
    });
    export const rediscloudAclUser = example.then(example => example.id);
    
    variables:
      example:
        fn::invoke:
          Function: rediscloud:getAclUser
          Arguments:
            name: fast-admin-john
    outputs:
      rediscloudAclUser: ${example.id}
    

    Using getAclUser

    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 getAclUser(args: GetAclUserArgs, opts?: InvokeOptions): Promise<GetAclUserResult>
    function getAclUserOutput(args: GetAclUserOutputArgs, opts?: InvokeOptions): Output<GetAclUserResult>
    def get_acl_user(name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAclUserResult
    def get_acl_user_output(name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAclUserResult]
    func LookupAclUser(ctx *Context, args *LookupAclUserArgs, opts ...InvokeOption) (*LookupAclUserResult, error)
    func LookupAclUserOutput(ctx *Context, args *LookupAclUserOutputArgs, opts ...InvokeOption) LookupAclUserResultOutput

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

    public static class GetAclUser 
    {
        public static Task<GetAclUserResult> InvokeAsync(GetAclUserArgs args, InvokeOptions? opts = null)
        public static Output<GetAclUserResult> Invoke(GetAclUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAclUserResult> getAclUser(GetAclUserArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rediscloud:index/getAclUser:getAclUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the User to filter returned subscriptions
    Name string
    The name of the User to filter returned subscriptions
    name String
    The name of the User to filter returned subscriptions
    name string
    The name of the User to filter returned subscriptions
    name str
    The name of the User to filter returned subscriptions
    name String
    The name of the User to filter returned subscriptions

    getAclUser Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The User's name.
    Role string
    The name of the User's Role.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The User's name.
    Role string
    The name of the User's Role.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The User's name.
    role String
    The name of the User's Role.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The User's name.
    role string
    The name of the User's Role.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The User's name.
    role str
    The name of the User's Role.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The User's name.
    role String
    The name of the User's Role.

    Package Details

    Repository
    rediscloud RedisLabs/pulumi-rediscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rediscloud Terraform Provider.
    rediscloud logo
    Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs