OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud
ovh.Me.getPaymentmeanBankAccount
Explore with Pulumi AI
Use this data source to retrieve information about a bank account payment mean associated with an OVHcloud account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const ba = ovh.Me.getPaymentmeanBankAccount({
useDefault: true,
});
import pulumi
import pulumi_ovh as ovh
ba = ovh.Me.get_paymentmean_bank_account(use_default=True)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Me.GetPaymentmeanBankAccount(ctx, &me.GetPaymentmeanBankAccountArgs{
UseDefault: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var ba = Ovh.Me.GetPaymentmeanBankAccount.Invoke(new()
{
UseDefault = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Me.MeFunctions;
import com.pulumi.ovh.Me.inputs.GetPaymentmeanBankAccountArgs;
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 = MeFunctions.getPaymentmeanBankAccount(GetPaymentmeanBankAccountArgs.builder()
.useDefault(true)
.build());
}
}
variables:
ba:
fn::invoke:
Function: ovh:Me:getPaymentmeanBankAccount
Arguments:
useDefault: true
Using getPaymentmeanBankAccount
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 getPaymentmeanBankAccount(args: GetPaymentmeanBankAccountArgs, opts?: InvokeOptions): Promise<GetPaymentmeanBankAccountResult>
function getPaymentmeanBankAccountOutput(args: GetPaymentmeanBankAccountOutputArgs, opts?: InvokeOptions): Output<GetPaymentmeanBankAccountResult>
def get_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) -> GetPaymentmeanBankAccountResult
def get_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[GetPaymentmeanBankAccountResult]
func GetPaymentmeanBankAccount(ctx *Context, args *GetPaymentmeanBankAccountArgs, opts ...InvokeOption) (*GetPaymentmeanBankAccountResult, error)
func GetPaymentmeanBankAccountOutput(ctx *Context, args *GetPaymentmeanBankAccountOutputArgs, opts ...InvokeOption) GetPaymentmeanBankAccountResultOutput
> Note: This function is named GetPaymentmeanBankAccount
in the Go SDK.
public static class GetPaymentmeanBankAccount
{
public static Task<GetPaymentmeanBankAccountResult> InvokeAsync(GetPaymentmeanBankAccountArgs args, InvokeOptions? opts = null)
public static Output<GetPaymentmeanBankAccountResult> Invoke(GetPaymentmeanBankAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPaymentmeanBankAccountResult> getPaymentmeanBankAccount(GetPaymentmeanBankAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:Me/getPaymentmeanBankAccount:getPaymentmeanBankAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Description
Regexp 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" - Use
Default bool - Retrieve bank account marked as default payment mean.
- Use
Oldest bool - Retrieve oldest bank account. project.
- Description
Regexp 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" - Use
Default bool - Retrieve bank account marked as default payment mean.
- Use
Oldest bool - Retrieve oldest bank account. project.
- description
Regexp 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" - use
Default Boolean - Retrieve bank account marked as default payment mean.
- use
Oldest Boolean - Retrieve oldest bank account. project.
- description
Regexp 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" - use
Default boolean - Retrieve bank account marked as default payment mean.
- use
Oldest 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.
- description
Regexp 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" - use
Default Boolean - Retrieve bank account marked as default payment mean.
- use
Oldest Boolean - Retrieve oldest bank account. project.
getPaymentmeanBankAccount 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
- Description
Regexp string - Use
Default bool - Use
Oldest 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
- Description
Regexp string - 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
- description
Regexp String - use
Default Boolean - use
Oldest 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
- description
Regexp string - use
Default boolean - use
Oldest 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
- description
Regexp String - use
Default Boolean - use
Oldest Boolean
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.