Proxmox Virtual Environment (Proxmox VE) v6.10.1 published on Friday, Jun 28, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.Permission.getPools
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.10.1 published on Friday, Jun 28, 2024 by Daniel Muehlbachler-Pietrzykowski
Retrieves the identifiers for all the available resource pools.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@pulumi/proxmoxve";
const availablePools = proxmoxve.Permission.getPools({});
import pulumi
import pulumi_proxmoxve as proxmoxve
available_pools = proxmoxve.Permission.get_pools()
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Permission"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Permission.GetPools(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var availablePools = ProxmoxVE.Permission.GetPools.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.Permission.PermissionFunctions;
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 availablePools = PermissionFunctions.getPools();
}
}
variables:
availablePools:
fn::invoke:
Function: proxmoxve:Permission:getPools
Arguments: {}
Using getPools
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 getPools(opts?: InvokeOptions): Promise<GetPoolsResult>
function getPoolsOutput(opts?: InvokeOptions): Output<GetPoolsResult>
def get_pools(opts: Optional[InvokeOptions] = None) -> GetPoolsResult
def get_pools_output(opts: Optional[InvokeOptions] = None) -> Output[GetPoolsResult]
func GetPools(ctx *Context, opts ...InvokeOption) (*GetPoolsResult, error)
func GetPoolsOutput(ctx *Context, opts ...InvokeOption) GetPoolsResultOutput
> Note: This function is named GetPools
in the Go SDK.
public static class GetPools
{
public static Task<GetPoolsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetPoolsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetPoolsResult> getPools(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: proxmoxve:Permission/getPools:getPools
arguments:
# arguments dictionary
getPools Result
The following output properties are available:
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.10.1 published on Friday, Jun 28, 2024 by Daniel Muehlbachler-Pietrzykowski