1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Acme
  5. getAccounts
Proxmox Virtual Environment (Proxmox VE) v6.18.1 published on Tuesday, Jan 7, 2025 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Acme.getAccounts

Explore with Pulumi AI

Proxmox Virtual Environment (Proxmox VE) v6.18.1 published on Tuesday, Jan 7, 2025 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);
Copy
import pulumi
import pulumi_proxmoxve as proxmoxve

example = proxmoxve.Acme.get_accounts()
pulumi.export("dataProxmoxVirtualEnvironmentAcmeAccounts", example.accounts)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: proxmoxve:Acme:getAccounts
      arguments: {}
outputs:
  dataProxmoxVirtualEnvironmentAcmeAccounts: ${example.accounts}
Copy

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

> 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)
}
Copy
public static CompletableFuture<GetAccountsResult> getAccounts(InvokeOptions options)
public static Output<GetAccountsResult> getAccounts(InvokeOptions options)
Copy
fn::invoke:
  function: proxmoxve:Acme/getAccounts:getAccounts
  arguments:
    # arguments dictionary
Copy

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.
Proxmox Virtual Environment (Proxmox VE) v6.18.1 published on Tuesday, Jan 7, 2025 by Daniel Muehlbachler-Pietrzykowski