Ovh

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

getMe

Use this data source to get information about the current OVH account.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var myaccount = Ovh.GetMe.Invoke();

});
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.GetMe(ctx, nil, 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 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 myaccount = OvhFunctions.getMe();

    }
}
import pulumi
import pulumi_ovh as ovh

myaccount = ovh.get_me()
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const myaccount = pulumi.output(ovh.getMe());
variables:
  myaccount:
    Fn::Invoke:
      Function: ovh:getMe
      Arguments: {}

Using getMe

function getMe(opts?: InvokeOptions): Promise<GetMeResult>
def get_me(opts: Optional[InvokeOptions] = None) -> GetMeResult
func GetMe(ctx *Context, opts ...InvokeOption) (*GetMeResult, error)

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

public static class GetMe 
{
    public static Task<GetMeResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeResult> getMe(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getMe:getMe
  Arguments:
    # Arguments dictionary

getMe Result

The following output properties are available:

Address string
Area string
BirthCity string
BirthDay string
City string
CompanyNationalIdentificationNumber string
CorporationType string
Country string
Currencies List<Lbrlabs.PulumiPackage.Ovh.Outputs.GetMeCurrency>
CustomerCode string
Email string
Fax string
Firstname string
Id string

The provider-assigned unique ID for this managed resource.

ItalianSdi string
Language string
Legalform string
Name string
NationalIdentificationNumber string
Nichandle string
Organisation string
OvhCompany string
OvhSubsidiary string
Phone string
PhoneCountry string
Sex string
SpareEmail string
State string
Vat string
Zip string
Address string
Area string
BirthCity string
BirthDay string
City string
CompanyNationalIdentificationNumber string
CorporationType string
Country string
Currencies []GetMeCurrency
CustomerCode string
Email string
Fax string
Firstname string
Id string

The provider-assigned unique ID for this managed resource.

ItalianSdi string
Language string
Legalform string
Name string
NationalIdentificationNumber string
Nichandle string
Organisation string
OvhCompany string
OvhSubsidiary string
Phone string
PhoneCountry string
Sex string
SpareEmail string
State string
Vat string
Zip string
address String
area String
birthCity String
birthDay String
city String
companyNationalIdentificationNumber String
corporationType String
country String
currencies List<GetMeCurrency>
customerCode String
email String
fax String
firstname String
id String

The provider-assigned unique ID for this managed resource.

italianSdi String
language String
legalform String
name String
nationalIdentificationNumber String
nichandle String
organisation String
ovhCompany String
ovhSubsidiary String
phone String
phoneCountry String
sex String
spareEmail String
state String
vat String
zip String
address string
area string
birthCity string
birthDay string
city string
companyNationalIdentificationNumber string
corporationType string
country string
currencies GetMeCurrency[]
customerCode string
email string
fax string
firstname string
id string

The provider-assigned unique ID for this managed resource.

italianSdi string
language string
legalform string
name string
nationalIdentificationNumber string
nichandle string
organisation string
ovhCompany string
ovhSubsidiary string
phone string
phoneCountry string
sex string
spareEmail string
state string
vat string
zip string
address String
area String
birthCity String
birthDay String
city String
companyNationalIdentificationNumber String
corporationType String
country String
currencies List<Property Map>
customerCode String
email String
fax String
firstname String
id String

The provider-assigned unique ID for this managed resource.

italianSdi String
language String
legalform String
name String
nationalIdentificationNumber String
nichandle String
organisation String
ovhCompany String
ovhSubsidiary String
phone String
phoneCountry String
sex String
spareEmail String
state String
vat String
zip String

Supporting Types

GetMeCurrency

Code string
Symbol string
Code string
Symbol string
code String
symbol String
code string
symbol string
code str
symbol str
code String
symbol 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.