1. Packages
  2. OVH
  3. API Docs
  4. Me
  5. getPaymentmeanBankAccount
OVHCloud v0.37.0 published on Wednesday, Feb 21, 2024 by OVHcloud

ovh.Me.getPaymentmeanBankAccount

Explore with Pulumi AI

ovh logo
OVHCloud v0.37.0 published on Wednesday, Feb 21, 2024 by OVHcloud

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

    Example Usage

    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 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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_ovh as ovh
    
    ba = ovh.Me.get_paymentmean_bank_account(use_default=True)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const ba = ovh.Me.getPaymentmeanBankAccount({
        useDefault: true,
    });
    
    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:

    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.

    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
    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
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.37.0 published on Wednesday, Feb 21, 2024 by OVHcloud