1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Acme
  5. getAccounts
Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Acme.getAccounts

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski

    Retrieves the list of ACME accounts.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@pulumi/proxmoxve";
    
    const example = proxmoxve.Acme.getAccounts({});
    export const dataProxmoxVirtualEnvironmentAcmeAccounts = example.then(example => example.accounts);
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    example = proxmoxve.Acme.get_accounts()
    pulumi.export("dataProxmoxVirtualEnvironmentAcmeAccounts", example.accounts)
    
    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 {
    		example, err := Acme.GetAccounts(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("dataProxmoxVirtualEnvironmentAcmeAccounts", example.Accounts)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ProxmoxVE.Acme.GetAccounts.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["dataProxmoxVirtualEnvironmentAcmeAccounts"] = example.Apply(getAccountsResult => getAccountsResult.Accounts),
        };
    });
    
    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 example = AcmeFunctions.getAccounts();
    
            ctx.export("dataProxmoxVirtualEnvironmentAcmeAccounts", example.applyValue(getAccountsResult -> getAccountsResult.accounts()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: proxmoxve:Acme:getAccounts
          Arguments: {}
    outputs:
      dataProxmoxVirtualEnvironmentAcmeAccounts: ${example.accounts}
    

    Using getAccounts

    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 getAccounts(opts?: InvokeOptions): Promise<GetAccountsResult>
    function getAccountsOutput(opts?: InvokeOptions): Output<GetAccountsResult>
    def get_accounts(opts: Optional[InvokeOptions] = None) -> GetAccountsResult
    def get_accounts_output(opts: Optional[InvokeOptions] = None) -> Output[GetAccountsResult]
    func GetAccounts(ctx *Context, opts ...InvokeOption) (*GetAccountsResult, error)
    func GetAccountsOutput(ctx *Context, opts ...InvokeOption) GetAccountsResultOutput

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

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

    getAccounts Result

    The following output properties are available:

    Accounts List<string>
    The identifiers of the ACME accounts.
    Id string
    The provider-assigned unique ID for this managed resource.
    Accounts []string
    The identifiers of the ACME accounts.
    Id string
    The provider-assigned unique ID for this managed resource.
    accounts List<String>
    The identifiers of the ACME accounts.
    id String
    The provider-assigned unique ID for this managed resource.
    accounts string[]
    The identifiers of the ACME accounts.
    id string
    The provider-assigned unique ID for this managed resource.
    accounts Sequence[str]
    The identifiers of the ACME accounts.
    id str
    The provider-assigned unique ID for this managed resource.
    accounts List<String>
    The identifiers of the ACME accounts.
    id String
    The provider-assigned unique ID for this managed resource.

    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.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski