OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.CloudProject.getM3dbUser
Explore with Pulumi AI
Use this data source to get information about a user of a M3DB cluster associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const m3dbuser = ovh.CloudProject.getM3dbUser({
    serviceName: "XXX",
    clusterId: "YYY",
    name: "ZZZ",
});
export const m3dbuserGroup = m3dbuser.then(m3dbuser => m3dbuser.group);
import pulumi
import pulumi_ovh as ovh
m3dbuser = ovh.CloudProject.get_m3db_user(service_name="XXX",
    cluster_id="YYY",
    name="ZZZ")
pulumi.export("m3dbuserGroup", m3dbuser.group)
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 {
		m3dbuser, err := CloudProject.GetM3dbUser(ctx, &cloudproject.GetM3dbUserArgs{
			ServiceName: "XXX",
			ClusterId:   "YYY",
			Name:        "ZZZ",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("m3dbuserGroup", m3dbuser.Group)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var m3dbuser = Ovh.CloudProject.GetM3dbUser.Invoke(new()
    {
        ServiceName = "XXX",
        ClusterId = "YYY",
        Name = "ZZZ",
    });
    return new Dictionary<string, object?>
    {
        ["m3dbuserGroup"] = m3dbuser.Apply(getM3dbUserResult => getM3dbUserResult.Group),
    };
});
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.GetM3dbUserArgs;
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 m3dbuser = CloudProjectFunctions.getM3dbUser(GetM3dbUserArgs.builder()
            .serviceName("XXX")
            .clusterId("YYY")
            .name("ZZZ")
            .build());
        ctx.export("m3dbuserGroup", m3dbuser.applyValue(getM3dbUserResult -> getM3dbUserResult.group()));
    }
}
variables:
  m3dbuser:
    fn::invoke:
      Function: ovh:CloudProject:getM3dbUser
      Arguments:
        serviceName: XXX
        clusterId: YYY
        name: ZZZ
outputs:
  m3dbuserGroup: ${m3dbuser.group}
Using getM3dbUser
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 getM3dbUser(args: GetM3dbUserArgs, opts?: InvokeOptions): Promise<GetM3dbUserResult>
function getM3dbUserOutput(args: GetM3dbUserOutputArgs, opts?: InvokeOptions): Output<GetM3dbUserResult>def get_m3db_user(cluster_id: Optional[str] = None,
                  name: Optional[str] = None,
                  service_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetM3dbUserResult
def get_m3db_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[GetM3dbUserResult]func GetM3dbUser(ctx *Context, args *GetM3dbUserArgs, opts ...InvokeOption) (*GetM3dbUserResult, error)
func GetM3dbUserOutput(ctx *Context, args *GetM3dbUserOutputArgs, opts ...InvokeOption) GetM3dbUserResultOutput> Note: This function is named GetM3dbUser in the Go SDK.
public static class GetM3dbUser 
{
    public static Task<GetM3dbUserResult> InvokeAsync(GetM3dbUserArgs args, InvokeOptions? opts = null)
    public static Output<GetM3dbUserResult> Invoke(GetM3dbUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetM3dbUserResult> getM3dbUser(GetM3dbUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: ovh:CloudProject/getM3dbUser:getM3dbUser
  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. 
getM3dbUser Result
The following output properties are available:
- Cluster
Id string - See Argument Reference above.
 - Created
At string - Date of the creation of the user.
 - Group string
 - See Argument Reference above.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 - See Argument Reference above.
 - Service
Name string - Current status of the user.
 - Status string
 - Current status of the user.
 
- Cluster
Id string - See Argument Reference above.
 - Created
At string - Date of the creation of the user.
 - Group string
 - See Argument Reference above.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Name string
 - See Argument Reference above.
 - Service
Name string - Current status of the user.
 - Status string
 - Current status of the user.
 
- cluster
Id String - See Argument Reference above.
 - created
At String - Date of the creation of the user.
 - group String
 - See Argument Reference above.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - name String
 - See Argument Reference above.
 - service
Name String - Current status of the user.
 - status String
 - Current status of the user.
 
- cluster
Id string - See Argument Reference above.
 - created
At string - Date of the creation of the user.
 - group string
 - See Argument Reference above.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - name string
 - See Argument Reference above.
 - service
Name string - Current status of the user.
 - status string
 - Current status of the user.
 
- cluster_
id str - See Argument Reference above.
 - created_
at str - Date of the creation of the user.
 - group str
 - See Argument Reference above.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - name str
 - See Argument Reference above.
 - service_
name str - Current status of the user.
 - status str
 - Current status of the user.
 
- cluster
Id String - See Argument Reference above.
 - created
At String - Date of the creation of the user.
 - group String
 - See Argument Reference above.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - 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.