1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Acme
  5. getAccount
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Acme.getAccount

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski

    Retrieves information about a specific ACME account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@pulumi/proxmoxve";
    
    const all = proxmoxve.Acme.getAccounts({});
    const example = all.then(all => .map(([, ]) => (proxmoxve.Acme.getAccount({
        name: __value,
    }))));
    export const dataProxmoxVirtualEnvironmentAcmeAccount = example;
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    all = proxmoxve.Acme.get_accounts()
    example = [proxmoxve.Acme.get_account(name=__value) for __key, __value in all.accounts]
    pulumi.export("dataProxmoxVirtualEnvironmentAcmeAccount", example)
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Acme"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := Acme.GetAccounts(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		example := "TODO: For expression"
    		ctx.Export("dataProxmoxVirtualEnvironmentAcmeAccount", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var all = ProxmoxVE.Acme.GetAccounts.Invoke();
    
        var example = .Select(__value => 
        {
            return ProxmoxVE.Acme.GetAccount.Invoke(new()
            {
                Name = __value,
            });
        }).ToList();
    
        return new Dictionary<string, object?>
        {
            ["dataProxmoxVirtualEnvironmentAcmeAccount"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.Acme.AcmeFunctions;
    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 all = AcmeFunctions.getAccounts();
    
            final var example = "TODO: ForExpression";
    
            ctx.export("dataProxmoxVirtualEnvironmentAcmeAccount", example);
        }
    }
    
    Coming soon!
    

    Using getAccount

    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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
    function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>
    def get_account(name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAccountResult
    def get_account_output(name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]
    func GetAccount(ctx *Context, args *GetAccountArgs, opts ...InvokeOption) (*GetAccountResult, error)
    func GetAccountOutput(ctx *Context, args *GetAccountOutputArgs, opts ...InvokeOption) GetAccountResultOutput

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

    public static class GetAccount 
    {
        public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: proxmoxve:Acme/getAccount:getAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The identifier of the ACME account to read.
    Name string
    The identifier of the ACME account to read.
    name String
    The identifier of the ACME account to read.
    name string
    The identifier of the ACME account to read.
    name str
    The identifier of the ACME account to read.
    name String
    The identifier of the ACME account to read.

    getAccount Result

    The following output properties are available:

    Account Pulumi.ProxmoxVE.Acme.Outputs.GetAccountAccount
    The ACME account information.
    Directory string
    The directory URL of the ACME account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The location URL of the ACME account.
    Tos string
    The URL of the terms of service of the ACME account.
    Name string
    The identifier of the ACME account to read.
    Account GetAccountAccount
    The ACME account information.
    Directory string
    The directory URL of the ACME account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The location URL of the ACME account.
    Tos string
    The URL of the terms of service of the ACME account.
    Name string
    The identifier of the ACME account to read.
    account GetAccountAccount
    The ACME account information.
    directory String
    The directory URL of the ACME account.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The location URL of the ACME account.
    tos String
    The URL of the terms of service of the ACME account.
    name String
    The identifier of the ACME account to read.
    account GetAccountAccount
    The ACME account information.
    directory string
    The directory URL of the ACME account.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The location URL of the ACME account.
    tos string
    The URL of the terms of service of the ACME account.
    name string
    The identifier of the ACME account to read.
    account acme.GetAccountAccount
    The ACME account information.
    directory str
    The directory URL of the ACME account.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The location URL of the ACME account.
    tos str
    The URL of the terms of service of the ACME account.
    name str
    The identifier of the ACME account to read.
    account Property Map
    The ACME account information.
    directory String
    The directory URL of the ACME account.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The location URL of the ACME account.
    tos String
    The URL of the terms of service of the ACME account.
    name String
    The identifier of the ACME account to read.

    Supporting Types

    GetAccountAccount

    Contacts List<string>
    An array of contact email addresses.
    CreatedAt string
    The timestamp of the account creation.
    Status string
    The status of the account. Can be one of valid, deactivated or revoked.
    Contacts []string
    An array of contact email addresses.
    CreatedAt string
    The timestamp of the account creation.
    Status string
    The status of the account. Can be one of valid, deactivated or revoked.
    contacts List<String>
    An array of contact email addresses.
    createdAt String
    The timestamp of the account creation.
    status String
    The status of the account. Can be one of valid, deactivated or revoked.
    contacts string[]
    An array of contact email addresses.
    createdAt string
    The timestamp of the account creation.
    status string
    The status of the account. Can be one of valid, deactivated or revoked.
    contacts Sequence[str]
    An array of contact email addresses.
    created_at str
    The timestamp of the account creation.
    status str
    The status of the account. Can be one of valid, deactivated or revoked.
    contacts List<String>
    An array of contact email addresses.
    createdAt String
    The timestamp of the account creation.
    status String
    The status of the account. Can be one of valid, deactivated or revoked.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski