Proxmox Virtual Environment (Proxmox VE) v6.10.1 published on Friday, Jun 28, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.Network.getVersion
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.10.1 published on Friday, Jun 28, 2024 by Daniel Muehlbachler-Pietrzykowski
Retrieves API version details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@pulumi/proxmoxve";
const example = proxmoxve.Network.getVersion({});
export const dataProxmoxVirtualEnvironmentVersion = {
    release: example.then(example => example.release),
    repository_id: example.then(example => example.repositoryId),
    version: example.then(example => example.version),
};
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.Network.get_version()
pulumi.export("dataProxmoxVirtualEnvironmentVersion", {
    "release": example.release,
    "repository_id": example.repository_id,
    "version": example.version,
})
package main
import (
	"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := Network.GetVersion(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("dataProxmoxVirtualEnvironmentVersion", map[string]interface{}{
			"release":       example.Release,
			"repository_id": example.RepositoryId,
			"version":       example.Version,
		})
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() => 
{
    var example = ProxmoxVE.Network.GetVersion.Invoke();
    return new Dictionary<string, object?>
    {
        ["dataProxmoxVirtualEnvironmentVersion"] = 
        {
            { "release", example.Apply(getVersionResult => getVersionResult.Release) },
            { "repository_id", example.Apply(getVersionResult => getVersionResult.RepositoryId) },
            { "version", example.Apply(getVersionResult => getVersionResult.Version) },
        },
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.Network.NetworkFunctions;
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 = NetworkFunctions.getVersion();
        ctx.export("dataProxmoxVirtualEnvironmentVersion", %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference));
    }
}
variables:
  example:
    fn::invoke:
      Function: proxmoxve:Network:getVersion
      Arguments: {}
outputs:
  dataProxmoxVirtualEnvironmentVersion:
    release: ${example.release}
    repository_id: ${example.repositoryId}
    version: ${example.version}
Using getVersion
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 getVersion(opts?: InvokeOptions): Promise<GetVersionResult>
function getVersionOutput(opts?: InvokeOptions): Output<GetVersionResult>def get_version(opts: Optional[InvokeOptions] = None) -> GetVersionResult
def get_version_output(opts: Optional[InvokeOptions] = None) -> Output[GetVersionResult]func GetVersion(ctx *Context, opts ...InvokeOption) (*GetVersionResult, error)
func GetVersionOutput(ctx *Context, opts ...InvokeOption) GetVersionResultOutput> Note: This function is named GetVersion in the Go SDK.
public static class GetVersion 
{
    public static Task<GetVersionResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetVersionResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetVersionResult> getVersion(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: proxmoxve:Network/getVersion:getVersion
  arguments:
    # arguments dictionarygetVersion Result
The following output properties are available:
- Id string
 - Placeholder identifier attribute.
 - Release string
 - The current Proxmox VE point release in 
x.yformat. - Repository
Id string - The short git revision from which this version was build.
 - Version string
 - The full pve-manager package version of this node.
 
- Id string
 - Placeholder identifier attribute.
 - Release string
 - The current Proxmox VE point release in 
x.yformat. - Repository
Id string - The short git revision from which this version was build.
 - Version string
 - The full pve-manager package version of this node.
 
- id String
 - Placeholder identifier attribute.
 - release String
 - The current Proxmox VE point release in 
x.yformat. - repository
Id String - The short git revision from which this version was build.
 - version String
 - The full pve-manager package version of this node.
 
- id string
 - Placeholder identifier attribute.
 - release string
 - The current Proxmox VE point release in 
x.yformat. - repository
Id string - The short git revision from which this version was build.
 - version string
 - The full pve-manager package version of this node.
 
- id str
 - Placeholder identifier attribute.
 - release str
 - The current Proxmox VE point release in 
x.yformat. - repository_
id str - The short git revision from which this version was build.
 - version str
 - The full pve-manager package version of this node.
 
- id String
 - Placeholder identifier attribute.
 - release String
 - The current Proxmox VE point release in 
x.yformat. - repository
Id String - The short git revision from which this version was build.
 - version String
 - The full pve-manager package version of this node.
 
Package Details
- Repository
 - proxmoxve muhlba91/pulumi-proxmoxve
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
proxmoxTerraform Provider. 
Proxmox Virtual Environment (Proxmox VE) v6.10.1 published on Friday, Jun 28, 2024 by Daniel Muehlbachler-Pietrzykowski