Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getMeIdentityUser

Use this data source to retrieve information about an identity user.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var myUser = Ovh.GetMeIdentityUser.Invoke(new()
    {
        User = "my_user_login",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/go/ovh"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.LookupMeIdentityUser(ctx, &GetMeIdentityUserArgs{
			User: "my_user_login",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetMeIdentityUserArgs;
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 myUser = OvhFunctions.getMeIdentityUser(GetMeIdentityUserArgs.builder()
            .user("my_user_login")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

my_user = ovh.get_me_identity_user(user="my_user_login")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const myUser = pulumi.output(ovh.getMeIdentityUser({
    user: "my_user_login",
}));
variables:
  myUser:
    Fn::Invoke:
      Function: ovh:getMeIdentityUser
      Arguments:
        user: my_user_login

Using getMeIdentityUser

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 getMeIdentityUser(args: GetMeIdentityUserArgs, opts?: InvokeOptions): Promise<GetMeIdentityUserResult>
function getMeIdentityUserOutput(args: GetMeIdentityUserOutputArgs, opts?: InvokeOptions): Output<GetMeIdentityUserResult>
def get_me_identity_user(user: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetMeIdentityUserResult
def get_me_identity_user_output(user: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetMeIdentityUserResult]
func LookupMeIdentityUser(ctx *Context, args *LookupMeIdentityUserArgs, opts ...InvokeOption) (*LookupMeIdentityUserResult, error)
func LookupMeIdentityUserOutput(ctx *Context, args *LookupMeIdentityUserOutputArgs, opts ...InvokeOption) LookupMeIdentityUserResultOutput

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

public static class GetMeIdentityUser 
{
    public static Task<GetMeIdentityUserResult> InvokeAsync(GetMeIdentityUserArgs args, InvokeOptions? opts = null)
    public static Output<GetMeIdentityUserResult> Invoke(GetMeIdentityUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeIdentityUserResult> getMeIdentityUser(GetMeIdentityUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getMeIdentityUser:getMeIdentityUser
  Arguments:
    # Arguments dictionary

The following arguments are supported:

User string

User's login.

User string

User's login.

user String

User's login.

user string

User's login.

user str

User's login.

user String

User's login.

getMeIdentityUser Result

The following output properties are available:

Creation string

Creation date of this user.

Description string

User description.

Email string

User's email.

Group string

User's group.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdate string

Last update of this user.

Login string

User's login suffix.

PasswordLastUpdate string

When the user changed his password for the last time.

Status string

Current user's status.

User string
Creation string

Creation date of this user.

Description string

User description.

Email string

User's email.

Group string

User's group.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdate string

Last update of this user.

Login string

User's login suffix.

PasswordLastUpdate string

When the user changed his password for the last time.

Status string

Current user's status.

User string
creation String

Creation date of this user.

description String

User description.

email String

User's email.

group String

User's group.

id String

The provider-assigned unique ID for this managed resource.

lastUpdate String

Last update of this user.

login String

User's login suffix.

passwordLastUpdate String

When the user changed his password for the last time.

status String

Current user's status.

user String
creation string

Creation date of this user.

description string

User description.

email string

User's email.

group string

User's group.

id string

The provider-assigned unique ID for this managed resource.

lastUpdate string

Last update of this user.

login string

User's login suffix.

passwordLastUpdate string

When the user changed his password for the last time.

status string

Current user's status.

user string
creation str

Creation date of this user.

description str

User description.

email str

User's email.

group str

User's group.

id str

The provider-assigned unique ID for this managed resource.

last_update str

Last update of this user.

login str

User's login suffix.

password_last_update str

When the user changed his password for the last time.

status str

Current user's status.

user str
creation String

Creation date of this user.

description String

User description.

email String

User's email.

group String

User's group.

id String

The provider-assigned unique ID for this managed resource.

lastUpdate String

Last update of this user.

login String

User's login suffix.

passwordLastUpdate String

When the user changed his password for the last time.

status String

Current user's status.

user String

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.