OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.Me.getPaymentmeanCreditCard
Explore with Pulumi AI
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:
- Description
Regexp 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" - Use
Default bool - Retrieve credit card marked as default payment mean.
- Use
Last boolTo Expire - Retrieve the credit card that will be the last to expire according to its expiration date.
- Description
Regexp 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" - Use
Default bool - Retrieve credit card marked as default payment mean.
- Use
Last boolTo Expire - Retrieve the credit card that will be the last to expire according to its expiration date.
- description
Regexp 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" - use
Default Boolean - Retrieve credit card marked as default payment mean.
- use
Last BooleanTo Expire - Retrieve the credit card that will be the last to expire according to its expiration date.
- description
Regexp 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" - use
Default boolean - Retrieve credit card marked as default payment mean.
- use
Last booleanTo Expire - 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_ boolto_ expire - Retrieve the credit card that will be the last to expire according to its expiration date.
- description
Regexp 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" - use
Default Boolean - Retrieve credit card marked as default payment mean.
- use
Last BooleanTo Expire - 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
- Description
Regexp string - States List<string>
- Use
Default bool - Use
Last boolTo Expire
- 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
- Description
Regexp string - States []string
- Use
Default bool - Use
Last boolTo Expire
- 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
- description
Regexp String - states List<String>
- use
Default Boolean - use
Last BooleanTo Expire
- 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
- description
Regexp string - states string[]
- use
Default boolean - use
Last booleanTo Expire
- 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_ boolto_ expire
- 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
- description
Regexp String - states List<String>
- use
Default Boolean - use
Last BooleanTo Expire
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.