1. Packages
  2. OVH
  3. API Docs
  4. getCloudProjectDatabaseValkeyUser
OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud

ovh.getCloudProjectDatabaseValkeyUser

Start a Neo task
Explain and create an ovh.getCloudProjectDatabaseValkeyUser resource
ovh logo
OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud

    Use this data source to get information about a user of a valkey cluster associated with a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const valkeyUser = ovh.getCloudProjectDatabaseValkeyUser({
        serviceName: "XXX",
        clusterId: "YYY",
        name: "ZZZ",
    });
    export const valkeyUserCommands = valkeyUser.then(valkeyUser => valkeyUser.commands);
    
    import pulumi
    import pulumi_ovh as ovh
    
    valkey_user = ovh.get_cloud_project_database_valkey_user(service_name="XXX",
        cluster_id="YYY",
        name="ZZZ")
    pulumi.export("valkeyUserCommands", valkey_user.commands)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		valkeyUser, err := ovh.LookupCloudProjectDatabaseValkeyUser(ctx, &ovh.LookupCloudProjectDatabaseValkeyUserArgs{
    			ServiceName: "XXX",
    			ClusterId:   "YYY",
    			Name:        "ZZZ",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("valkeyUserCommands", valkeyUser.Commands)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var valkeyUser = Ovh.GetCloudProjectDatabaseValkeyUser.Invoke(new()
        {
            ServiceName = "XXX",
            ClusterId = "YYY",
            Name = "ZZZ",
        });
    
        return new Dictionary<string, object?>
        {
            ["valkeyUserCommands"] = valkeyUser.Apply(getCloudProjectDatabaseValkeyUserResult => getCloudProjectDatabaseValkeyUserResult.Commands),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudProjectDatabaseValkeyUserArgs;
    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 valkeyUser = OvhFunctions.getCloudProjectDatabaseValkeyUser(GetCloudProjectDatabaseValkeyUserArgs.builder()
                .serviceName("XXX")
                .clusterId("YYY")
                .name("ZZZ")
                .build());
    
            ctx.export("valkeyUserCommands", valkeyUser.commands());
        }
    }
    
    variables:
      valkeyUser:
        fn::invoke:
          function: ovh:getCloudProjectDatabaseValkeyUser
          arguments:
            serviceName: XXX
            clusterId: YYY
            name: ZZZ
    outputs:
      valkeyUserCommands: ${valkeyUser.commands}
    

    Using getCloudProjectDatabaseValkeyUser

    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 getCloudProjectDatabaseValkeyUser(args: GetCloudProjectDatabaseValkeyUserArgs, opts?: InvokeOptions): Promise<GetCloudProjectDatabaseValkeyUserResult>
    function getCloudProjectDatabaseValkeyUserOutput(args: GetCloudProjectDatabaseValkeyUserOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectDatabaseValkeyUserResult>
    def get_cloud_project_database_valkey_user(cluster_id: Optional[str] = None,
                                               name: Optional[str] = None,
                                               service_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetCloudProjectDatabaseValkeyUserResult
    def get_cloud_project_database_valkey_user_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                               name: Optional[pulumi.Input[str]] = None,
                                               service_name: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectDatabaseValkeyUserResult]
    func LookupCloudProjectDatabaseValkeyUser(ctx *Context, args *LookupCloudProjectDatabaseValkeyUserArgs, opts ...InvokeOption) (*LookupCloudProjectDatabaseValkeyUserResult, error)
    func LookupCloudProjectDatabaseValkeyUserOutput(ctx *Context, args *LookupCloudProjectDatabaseValkeyUserOutputArgs, opts ...InvokeOption) LookupCloudProjectDatabaseValkeyUserResultOutput

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

    public static class GetCloudProjectDatabaseValkeyUser 
    {
        public static Task<GetCloudProjectDatabaseValkeyUserResult> InvokeAsync(GetCloudProjectDatabaseValkeyUserArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudProjectDatabaseValkeyUserResult> Invoke(GetCloudProjectDatabaseValkeyUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudProjectDatabaseValkeyUserResult> getCloudProjectDatabaseValkeyUser(GetCloudProjectDatabaseValkeyUserArgs args, InvokeOptions options)
    public static Output<GetCloudProjectDatabaseValkeyUserResult> getCloudProjectDatabaseValkeyUser(GetCloudProjectDatabaseValkeyUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudProjectDatabaseValkeyUser:getCloudProjectDatabaseValkeyUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID
    Name string
    Name of the user
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ClusterId string
    Cluster ID
    Name string
    Name of the user
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId String
    Cluster ID
    name String
    Name of the user
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId string
    Cluster ID
    name string
    Name of the user
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    cluster_id str
    Cluster ID
    name str
    Name of the user
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId String
    Cluster ID
    name String
    Name of the user
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getCloudProjectDatabaseValkeyUser Result

    The following output properties are available:

    Categories List<string>
    Categories of the user.
    Channels List<string>
    Channels of the user.
    ClusterId string
    See Argument Reference above.
    Commands List<string>
    Commands of the user.
    CreatedAt string
    Date of the creation of the user.
    Id string
    The provider-assigned unique ID for this managed resource.
    Keys List<string>
    Keys of the user.
    Name string
    See Argument Reference above.
    ServiceName string
    Current status of the user.
    Status string
    Current status of the user.
    Categories []string
    Categories of the user.
    Channels []string
    Channels of the user.
    ClusterId string
    See Argument Reference above.
    Commands []string
    Commands of the user.
    CreatedAt string
    Date of the creation of the user.
    Id string
    The provider-assigned unique ID for this managed resource.
    Keys []string
    Keys of the user.
    Name string
    See Argument Reference above.
    ServiceName string
    Current status of the user.
    Status string
    Current status of the user.
    categories List<String>
    Categories of the user.
    channels List<String>
    Channels of the user.
    clusterId String
    See Argument Reference above.
    commands List<String>
    Commands of the user.
    createdAt String
    Date of the creation of the user.
    id String
    The provider-assigned unique ID for this managed resource.
    keys List<String>
    Keys of the user.
    name String
    See Argument Reference above.
    serviceName String
    Current status of the user.
    status String
    Current status of the user.
    categories string[]
    Categories of the user.
    channels string[]
    Channels of the user.
    clusterId string
    See Argument Reference above.
    commands string[]
    Commands of the user.
    createdAt string
    Date of the creation of the user.
    id string
    The provider-assigned unique ID for this managed resource.
    keys string[]
    Keys of the user.
    name string
    See Argument Reference above.
    serviceName string
    Current status of the user.
    status string
    Current status of the user.
    categories Sequence[str]
    Categories of the user.
    channels Sequence[str]
    Channels of the user.
    cluster_id str
    See Argument Reference above.
    commands Sequence[str]
    Commands of the user.
    created_at str
    Date of the creation of the user.
    id str
    The provider-assigned unique ID for this managed resource.
    keys Sequence[str]
    Keys of the user.
    name str
    See Argument Reference above.
    service_name str
    Current status of the user.
    status str
    Current status of the user.
    categories List<String>
    Categories of the user.
    channels List<String>
    Channels of the user.
    clusterId String
    See Argument Reference above.
    commands List<String>
    Commands of the user.
    createdAt String
    Date of the creation of the user.
    id String
    The provider-assigned unique ID for this managed resource.
    keys List<String>
    Keys of the user.
    name String
    See Argument Reference above.
    serviceName String
    Current status of the user.
    status String
    Current status of the user.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.8.0 published on Wednesday, Sep 24, 2025 by OVHcloud
      Meet Neo: Your AI Platform Teammate