1. Packages
  2. OVH
  3. API Docs
  4. Me
  5. getPaymentmeanCreditCard
OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud

ovh.Me.getPaymentmeanCreditCard

Explore with Pulumi AI

ovh logo
OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const cc = ovh.Me.getPaymentmeanCreditCard({
        useDefault: true,
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    cc = ovh.Me.get_paymentmean_credit_card(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.GetPaymentmeanCreditCard(ctx, &me.GetPaymentmeanCreditCardArgs{
    			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 cc = Ovh.Me.GetPaymentmeanCreditCard.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.GetPaymentmeanCreditCardArgs;
    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 cc = MeFunctions.getPaymentmeanCreditCard(GetPaymentmeanCreditCardArgs.builder()
                .useDefault(true)
                .build());
    
        }
    }
    
    variables:
      cc:
        fn::invoke:
          Function: ovh:Me:getPaymentmeanCreditCard
          Arguments:
            useDefault: true
    

    Using getPaymentmeanCreditCard

    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 getPaymentmeanCreditCard(args: GetPaymentmeanCreditCardArgs, opts?: InvokeOptions): Promise<GetPaymentmeanCreditCardResult>
    function getPaymentmeanCreditCardOutput(args: GetPaymentmeanCreditCardOutputArgs, opts?: InvokeOptions): Output<GetPaymentmeanCreditCardResult>
    def get_paymentmean_credit_card(description_regexp: Optional[str] = None,
                                    states: Optional[Sequence[str]] = None,
                                    use_default: Optional[bool] = None,
                                    use_last_to_expire: Optional[bool] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetPaymentmeanCreditCardResult
    def get_paymentmean_credit_card_output(description_regexp: Optional[pulumi.Input[str]] = None,
                                    states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                    use_default: Optional[pulumi.Input[bool]] = None,
                                    use_last_to_expire: Optional[pulumi.Input[bool]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetPaymentmeanCreditCardResult]
    func GetPaymentmeanCreditCard(ctx *Context, args *GetPaymentmeanCreditCardArgs, opts ...InvokeOption) (*GetPaymentmeanCreditCardResult, error)
    func GetPaymentmeanCreditCardOutput(ctx *Context, args *GetPaymentmeanCreditCardOutputArgs, opts ...InvokeOption) GetPaymentmeanCreditCardResultOutput

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

    public static class GetPaymentmeanCreditCard 
    {
        public static Task<GetPaymentmeanCreditCardResult> InvokeAsync(GetPaymentmeanCreditCardArgs args, InvokeOptions? opts = null)
        public static Output<GetPaymentmeanCreditCardResult> Invoke(GetPaymentmeanCreditCardInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPaymentmeanCreditCardResult> getPaymentmeanCreditCard(GetPaymentmeanCreditCardArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Me/getPaymentmeanCreditCard:getPaymentmeanCreditCard
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DescriptionRegexp string
    a regexp used to filter credit cards on their description attributes.
    States List<string>
    Filter credit cards on their state attribute. Can be "expired", "valid", "tooManyFailures"
    UseDefault bool
    Retrieve credit card marked as default payment mean.
    UseLastToExpire bool
    Retrieve the credit card that will be the last to expire according to its expiration date.
    DescriptionRegexp string
    a regexp used to filter credit cards on their description attributes.
    States []string
    Filter credit cards on their state attribute. Can be "expired", "valid", "tooManyFailures"
    UseDefault bool
    Retrieve credit card marked as default payment mean.
    UseLastToExpire bool
    Retrieve the credit card that will be the last to expire according to its expiration date.
    descriptionRegexp String
    a regexp used to filter credit cards on their description attributes.
    states List<String>
    Filter credit cards on their state attribute. Can be "expired", "valid", "tooManyFailures"
    useDefault Boolean
    Retrieve credit card marked as default payment mean.
    useLastToExpire Boolean
    Retrieve the credit card that will be the last to expire according to its expiration date.
    descriptionRegexp string
    a regexp used to filter credit cards on their description attributes.
    states string[]
    Filter credit cards on their state attribute. Can be "expired", "valid", "tooManyFailures"
    useDefault boolean
    Retrieve credit card marked as default payment mean.
    useLastToExpire boolean
    Retrieve the credit card that will be the last to expire according to its expiration date.
    description_regexp str
    a regexp used to filter credit cards on their description attributes.
    states Sequence[str]
    Filter credit cards on their state attribute. Can be "expired", "valid", "tooManyFailures"
    use_default bool
    Retrieve credit card marked as default payment mean.
    use_last_to_expire bool
    Retrieve the credit card that will be the last to expire according to its expiration date.
    descriptionRegexp String
    a regexp used to filter credit cards on their description attributes.
    states List<String>
    Filter credit cards on their state attribute. Can be "expired", "valid", "tooManyFailures"
    useDefault Boolean
    Retrieve credit card marked as default payment mean.
    useLastToExpire Boolean
    Retrieve the credit card that will be the last to expire according to its expiration date.

    getPaymentmeanCreditCard Result

    The following output properties are available:

    Default bool
    a boolean which tells if the retrieved credit card is marked as the default payment mean
    Description string
    the description attribute of the credit card
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    the state attribute of the credit card
    DescriptionRegexp string
    States List<string>
    UseDefault bool
    UseLastToExpire bool
    Default bool
    a boolean which tells if the retrieved credit card is marked as the default payment mean
    Description string
    the description attribute of the credit card
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    the state attribute of the credit card
    DescriptionRegexp string
    States []string
    UseDefault bool
    UseLastToExpire bool
    default_ Boolean
    a boolean which tells if the retrieved credit card is marked as the default payment mean
    description String
    the description attribute of the credit card
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    the state attribute of the credit card
    descriptionRegexp String
    states List<String>
    useDefault Boolean
    useLastToExpire Boolean
    default boolean
    a boolean which tells if the retrieved credit card is marked as the default payment mean
    description string
    the description attribute of the credit card
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    the state attribute of the credit card
    descriptionRegexp string
    states string[]
    useDefault boolean
    useLastToExpire boolean
    default bool
    a boolean which tells if the retrieved credit card is marked as the default payment mean
    description str
    the description attribute of the credit card
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    the state attribute of the credit card
    description_regexp str
    states Sequence[str]
    use_default bool
    use_last_to_expire bool
    default Boolean
    a boolean which tells if the retrieved credit card is marked as the default payment mean
    description String
    the description attribute of the credit card
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    the state attribute of the credit card
    descriptionRegexp String
    states List<String>
    useDefault Boolean
    useLastToExpire 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.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud