Ovh

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

getMePaymentmeanBankAccount

Use this data source to retrieve information about a bank account payment mean associated with an OVH account.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var ba = Ovh.GetMePaymentmeanBankAccount.Invoke(new()
    {
        UseDefault = true,
    });

});
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.GetMePaymentmeanBankAccount(ctx, &GetMePaymentmeanBankAccountArgs{
			UseDefault: pulumi.BoolRef(true),
		}, 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.GetMePaymentmeanBankAccountArgs;
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 ba = OvhFunctions.getMePaymentmeanBankAccount(GetMePaymentmeanBankAccountArgs.builder()
            .useDefault(true)
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

ba = ovh.get_me_paymentmean_bank_account(use_default=True)
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const ba = pulumi.output(ovh.getMePaymentmeanBankAccount({
    useDefault: true,
}));
variables:
  ba:
    Fn::Invoke:
      Function: ovh:getMePaymentmeanBankAccount
      Arguments:
        useDefault: true

Using getMePaymentmeanBankAccount

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 getMePaymentmeanBankAccount(args: GetMePaymentmeanBankAccountArgs, opts?: InvokeOptions): Promise<GetMePaymentmeanBankAccountResult>
function getMePaymentmeanBankAccountOutput(args: GetMePaymentmeanBankAccountOutputArgs, opts?: InvokeOptions): Output<GetMePaymentmeanBankAccountResult>
def get_me_paymentmean_bank_account(description_regexp: Optional[str] = None,
                                    state: Optional[str] = None,
                                    use_default: Optional[bool] = None,
                                    use_oldest: Optional[bool] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetMePaymentmeanBankAccountResult
def get_me_paymentmean_bank_account_output(description_regexp: Optional[pulumi.Input[str]] = None,
                                    state: Optional[pulumi.Input[str]] = None,
                                    use_default: Optional[pulumi.Input[bool]] = None,
                                    use_oldest: Optional[pulumi.Input[bool]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetMePaymentmeanBankAccountResult]
func GetMePaymentmeanBankAccount(ctx *Context, args *GetMePaymentmeanBankAccountArgs, opts ...InvokeOption) (*GetMePaymentmeanBankAccountResult, error)
func GetMePaymentmeanBankAccountOutput(ctx *Context, args *GetMePaymentmeanBankAccountOutputArgs, opts ...InvokeOption) GetMePaymentmeanBankAccountResultOutput

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

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

The following arguments are supported:

DescriptionRegexp string

a regexp used to filter bank accounts on their description attributes.

State string

Filter bank accounts on their state attribute. Can be "blockedForIncidents", "valid", "pendingValidation"

UseDefault bool

Retrieve bank account marked as default payment mean.

UseOldest bool

Retrieve oldest bank account. project.

DescriptionRegexp string

a regexp used to filter bank accounts on their description attributes.

State string

Filter bank accounts on their state attribute. Can be "blockedForIncidents", "valid", "pendingValidation"

UseDefault bool

Retrieve bank account marked as default payment mean.

UseOldest bool

Retrieve oldest bank account. project.

descriptionRegexp String

a regexp used to filter bank accounts on their description attributes.

state String

Filter bank accounts on their state attribute. Can be "blockedForIncidents", "valid", "pendingValidation"

useDefault Boolean

Retrieve bank account marked as default payment mean.

useOldest Boolean

Retrieve oldest bank account. project.

descriptionRegexp string

a regexp used to filter bank accounts on their description attributes.

state string

Filter bank accounts on their state attribute. Can be "blockedForIncidents", "valid", "pendingValidation"

useDefault boolean

Retrieve bank account marked as default payment mean.

useOldest boolean

Retrieve oldest bank account. project.

description_regexp str

a regexp used to filter bank accounts on their description attributes.

state str

Filter bank accounts on their state attribute. Can be "blockedForIncidents", "valid", "pendingValidation"

use_default bool

Retrieve bank account marked as default payment mean.

use_oldest bool

Retrieve oldest bank account. project.

descriptionRegexp String

a regexp used to filter bank accounts on their description attributes.

state String

Filter bank accounts on their state attribute. Can be "blockedForIncidents", "valid", "pendingValidation"

useDefault Boolean

Retrieve bank account marked as default payment mean.

useOldest Boolean

Retrieve oldest bank account. project.

getMePaymentmeanBankAccount Result

The following output properties are available:

Default bool

a boolean which tells if the retrieved bank account is marked as the default payment mean

Description string

the description attribute of the bank account

Id string

The provider-assigned unique ID for this managed resource.

State string
DescriptionRegexp string
UseDefault bool
UseOldest bool
Default bool

a boolean which tells if the retrieved bank account is marked as the default payment mean

Description string

the description attribute of the bank account

Id string

The provider-assigned unique ID for this managed resource.

State string
DescriptionRegexp string
UseDefault bool
UseOldest bool
default_ Boolean

a boolean which tells if the retrieved bank account is marked as the default payment mean

description String

the description attribute of the bank account

id String

The provider-assigned unique ID for this managed resource.

state String
descriptionRegexp String
useDefault Boolean
useOldest Boolean
default boolean

a boolean which tells if the retrieved bank account is marked as the default payment mean

description string

the description attribute of the bank account

id string

The provider-assigned unique ID for this managed resource.

state string
descriptionRegexp string
useDefault boolean
useOldest boolean
default bool

a boolean which tells if the retrieved bank account is marked as the default payment mean

description str

the description attribute of the bank account

id str

The provider-assigned unique ID for this managed resource.

state str
description_regexp str
use_default bool
use_oldest bool
default Boolean

a boolean which tells if the retrieved bank account is marked as the default payment mean

description String

the description attribute of the bank account

id String

The provider-assigned unique ID for this managed resource.

state String
descriptionRegexp String
useDefault Boolean
useOldest Boolean

Package Details

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

This Pulumi package is based on the ovh Terraform Provider.