OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.CloudProject.getRedisUser
Explore with Pulumi AI
Use this data source to get information about a user of a redis cluster associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const redisuser = ovh.CloudProject.getRedisUser({
    serviceName: "XXX",
    clusterId: "YYY",
    name: "ZZZ",
});
export const redisuserCommands = redisuser.then(redisuser => redisuser.commands);
import pulumi
import pulumi_ovh as ovh
redisuser = ovh.CloudProject.get_redis_user(service_name="XXX",
    cluster_id="YYY",
    name="ZZZ")
pulumi.export("redisuserCommands", redisuser.commands)
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		redisuser, err := CloudProject.GetRedisUser(ctx, &cloudproject.GetRedisUserArgs{
			ServiceName: "XXX",
			ClusterId:   "YYY",
			Name:        "ZZZ",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("redisuserCommands", redisuser.Commands)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var redisuser = Ovh.CloudProject.GetRedisUser.Invoke(new()
    {
        ServiceName = "XXX",
        ClusterId = "YYY",
        Name = "ZZZ",
    });
    return new Dictionary<string, object?>
    {
        ["redisuserCommands"] = redisuser.Apply(getRedisUserResult => getRedisUserResult.Commands),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetRedisUserArgs;
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 redisuser = CloudProjectFunctions.getRedisUser(GetRedisUserArgs.builder()
            .serviceName("XXX")
            .clusterId("YYY")
            .name("ZZZ")
            .build());
        ctx.export("redisuserCommands", redisuser.applyValue(getRedisUserResult -> getRedisUserResult.commands()));
    }
}
variables:
  redisuser:
    fn::invoke:
      Function: ovh:CloudProject:getRedisUser
      Arguments:
        serviceName: XXX
        clusterId: YYY
        name: ZZZ
outputs:
  redisuserCommands: ${redisuser.commands}
Using getRedisUser
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 getRedisUser(args: GetRedisUserArgs, opts?: InvokeOptions): Promise<GetRedisUserResult>
function getRedisUserOutput(args: GetRedisUserOutputArgs, opts?: InvokeOptions): Output<GetRedisUserResult>def get_redis_user(cluster_id: Optional[str] = None,
                   name: Optional[str] = None,
                   service_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRedisUserResult
def get_redis_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[GetRedisUserResult]func GetRedisUser(ctx *Context, args *GetRedisUserArgs, opts ...InvokeOption) (*GetRedisUserResult, error)
func GetRedisUserOutput(ctx *Context, args *GetRedisUserOutputArgs, opts ...InvokeOption) GetRedisUserResultOutput> Note: This function is named GetRedisUser in the Go SDK.
public static class GetRedisUser 
{
    public static Task<GetRedisUserResult> InvokeAsync(GetRedisUserArgs args, InvokeOptions? opts = null)
    public static Output<GetRedisUserResult> Invoke(GetRedisUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRedisUserResult> getRedisUser(GetRedisUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:CloudProject/getRedisUser:getRedisUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster ID
 - Name string
 - Name of the user
 - Service
Name string - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- Cluster
Id string - Cluster ID
 - Name string
 - Name of the user
 - Service
Name string - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- cluster
Id String - Cluster ID
 - name String
 - Name of the user
 - service
Name String - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
- cluster
Id string - Cluster ID
 - name string
 - Name of the user
 - service
Name string - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment 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_SERVICEenvironment variable is used. 
- cluster
Id String - Cluster ID
 - name String
 - Name of the user
 - service
Name String - The id of the public cloud project. If omitted,
the 
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. 
getRedisUser Result
The following output properties are available:
- Categories List<string>
 - Categories of the user.
 - Channels List<string>
 - Channels of the user.
 - Cluster
Id string - See Argument Reference above.
 - Commands List<string>
 - Commands of the user.
 - Created
At 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.
 - Service
Name 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.
 - Cluster
Id string - See Argument Reference above.
 - Commands []string
 - Commands of the user.
 - Created
At 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.
 - Service
Name 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.
 - cluster
Id String - See Argument Reference above.
 - commands List<String>
 - Commands of the user.
 - created
At 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.
 - service
Name 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.
 - cluster
Id string - See Argument Reference above.
 - commands string[]
 - Commands of the user.
 - created
At 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.
 - service
Name 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.
 - cluster
Id String - See Argument Reference above.
 - commands List<String>
 - Commands of the user.
 - created
At 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.
 - service
Name 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 
ovhTerraform Provider.