Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
Retrieves information about all the available roles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const availableRoles = proxmoxve.getRolesLegacy({});
import pulumi
import pulumi_proxmoxve as proxmoxve
available_roles = proxmoxve.get_roles_legacy()
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := proxmoxve.GetRolesLegacy(ctx, map[string]interface{}{}, 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 availableRoles = ProxmoxVE.Index.GetRolesLegacy.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.ProxmoxveFunctions;
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 availableRoles = ProxmoxveFunctions.getRolesLegacy(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
variables:
availableRoles:
fn::invoke:
function: proxmoxve:getRolesLegacy
arguments: {}
Using getRolesLegacy
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 getRolesLegacy(opts?: InvokeOptions): Promise<GetRolesLegacyResult>
function getRolesLegacyOutput(opts?: InvokeOptions): Output<GetRolesLegacyResult>def get_roles_legacy(opts: Optional[InvokeOptions] = None) -> GetRolesLegacyResult
def get_roles_legacy_output(opts: Optional[InvokeOptions] = None) -> Output[GetRolesLegacyResult]func GetRolesLegacy(ctx *Context, opts ...InvokeOption) (*GetRolesLegacyResult, error)
func GetRolesLegacyOutput(ctx *Context, opts ...InvokeOption) GetRolesLegacyResultOutput> Note: This function is named GetRolesLegacy in the Go SDK.
public static class GetRolesLegacy
{
public static Task<GetRolesLegacyResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetRolesLegacyResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetRolesLegacyResult> getRolesLegacy(InvokeOptions options)
public static Output<GetRolesLegacyResult> getRolesLegacy(InvokeOptions options)
fn::invoke:
function: proxmoxve:index/getRolesLegacy:getRolesLegacy
arguments:
# arguments dictionarygetRolesLegacy Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Privileges
List<Immutable
Array<string>> - The role privileges.
- Role
Ids List<string> - The role identifiers.
- Specials List<bool>
- Whether the role is special (built-in).
- Id string
- The provider-assigned unique ID for this managed resource.
- Privileges [][]string
- The role privileges.
- Role
Ids []string - The role identifiers.
- Specials []bool
- Whether the role is special (built-in).
- id String
- The provider-assigned unique ID for this managed resource.
- privileges List<List<String>>
- The role privileges.
- role
Ids List<String> - The role identifiers.
- specials List<Boolean>
- Whether the role is special (built-in).
- id string
- The provider-assigned unique ID for this managed resource.
- privileges string[][]
- The role privileges.
- role
Ids string[] - The role identifiers.
- specials boolean[]
- Whether the role is special (built-in).
- id str
- The provider-assigned unique ID for this managed resource.
- privileges Sequence[Sequence[str]]
- The role privileges.
- role_
ids Sequence[str] - The role identifiers.
- specials Sequence[bool]
- Whether the role is special (built-in).
- id String
- The provider-assigned unique ID for this managed resource.
- privileges List<List<String>>
- The role privileges.
- role
Ids List<String> - The role identifiers.
- specials List<Boolean>
- Whether the role is special (built-in).
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
