Ovh

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

getMePaymentmeanCreditCard

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

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var cc = Ovh.GetMePaymentmeanCreditCard.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.GetMePaymentmeanCreditCard(ctx, &GetMePaymentmeanCreditCardArgs{
			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.GetMePaymentmeanCreditCardArgs;
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 = OvhFunctions.getMePaymentmeanCreditCard(GetMePaymentmeanCreditCardArgs.builder()
            .useDefault(true)
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

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

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

Using getMePaymentmeanCreditCard

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 getMePaymentmeanCreditCard(args: GetMePaymentmeanCreditCardArgs, opts?: InvokeOptions): Promise<GetMePaymentmeanCreditCardResult>
function getMePaymentmeanCreditCardOutput(args: GetMePaymentmeanCreditCardOutputArgs, opts?: InvokeOptions): Output<GetMePaymentmeanCreditCardResult>
def get_me_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) -> GetMePaymentmeanCreditCardResult
def get_me_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[GetMePaymentmeanCreditCardResult]
func GetMePaymentmeanCreditCard(ctx *Context, args *GetMePaymentmeanCreditCardArgs, opts ...InvokeOption) (*GetMePaymentmeanCreditCardResult, error)
func GetMePaymentmeanCreditCardOutput(ctx *Context, args *GetMePaymentmeanCreditCardOutputArgs, opts ...InvokeOption) GetMePaymentmeanCreditCardResultOutput

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

public static class GetMePaymentmeanCreditCard 
{
    public static Task<GetMePaymentmeanCreditCardResult> InvokeAsync(GetMePaymentmeanCreditCardArgs args, InvokeOptions? opts = null)
    public static Output<GetMePaymentmeanCreditCardResult> Invoke(GetMePaymentmeanCreditCardInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMePaymentmeanCreditCardResult> getMePaymentmeanCreditCard(GetMePaymentmeanCreditCardArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getMePaymentmeanCreditCard:getMePaymentmeanCreditCard
  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.

getMePaymentmeanCreditCard 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
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.