1. Packages
  2. Packages
  3. Proxmox Virtual Environment (Proxmox VE)
  4. API Docs
  5. getTimeLegacy
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski

    Retrieves the current time for a specific node.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
    
    const firstNodeTime = proxmoxve.getTimeLegacy({
        nodeName: "first-node",
    });
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    first_node_time = proxmoxve.get_time_legacy(node_name="first-node")
    
    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.GetTimeLegacy(ctx, &proxmoxve.LookupTimeLegacyArgs{
    			NodeName: "first-node",
    		}, 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 firstNodeTime = ProxmoxVE.Index.GetTimeLegacy.Invoke(new()
        {
            NodeName = "first-node",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.ProxmoxveFunctions;
    import com.pulumi.proxmoxve.inputs.GetTimeLegacyArgs;
    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 firstNodeTime = ProxmoxveFunctions.getTimeLegacy(GetTimeLegacyArgs.builder()
                .nodeName("first-node")
                .build());
    
        }
    }
    
    variables:
      firstNodeTime:
        fn::invoke:
          function: proxmoxve:getTimeLegacy
          arguments:
            nodeName: first-node
    

    Using getTimeLegacy

    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 getTimeLegacy(args: GetTimeLegacyArgs, opts?: InvokeOptions): Promise<GetTimeLegacyResult>
    function getTimeLegacyOutput(args: GetTimeLegacyOutputArgs, opts?: InvokeOptions): Output<GetTimeLegacyResult>
    def get_time_legacy(node_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTimeLegacyResult
    def get_time_legacy_output(node_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTimeLegacyResult]
    func LookupTimeLegacy(ctx *Context, args *LookupTimeLegacyArgs, opts ...InvokeOption) (*LookupTimeLegacyResult, error)
    func LookupTimeLegacyOutput(ctx *Context, args *LookupTimeLegacyOutputArgs, opts ...InvokeOption) LookupTimeLegacyResultOutput

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

    public static class GetTimeLegacy 
    {
        public static Task<GetTimeLegacyResult> InvokeAsync(GetTimeLegacyArgs args, InvokeOptions? opts = null)
        public static Output<GetTimeLegacyResult> Invoke(GetTimeLegacyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTimeLegacyResult> getTimeLegacy(GetTimeLegacyArgs args, InvokeOptions options)
    public static Output<GetTimeLegacyResult> getTimeLegacy(GetTimeLegacyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:index/getTimeLegacy:getTimeLegacy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NodeName string
    A node name.
    NodeName string
    A node name.
    nodeName String
    A node name.
    nodeName string
    A node name.
    node_name str
    A node name.
    nodeName String
    A node name.

    getTimeLegacy Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LocalTime string
    The node's local time.
    NodeName string
    TimeZone string
    The node's time zone.
    UtcTime string
    The node's local time formatted as UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalTime string
    The node's local time.
    NodeName string
    TimeZone string
    The node's time zone.
    UtcTime string
    The node's local time formatted as UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    localTime String
    The node's local time.
    nodeName String
    timeZone String
    The node's time zone.
    utcTime String
    The node's local time formatted as UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    localTime string
    The node's local time.
    nodeName string
    timeZone string
    The node's time zone.
    utcTime string
    The node's local time formatted as UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    local_time str
    The node's local time.
    node_name str
    time_zone str
    The node's time zone.
    utc_time str
    The node's local time formatted as UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    localTime String
    The node's local time.
    nodeName String
    timeZone String
    The node's time zone.
    utcTime String
    The node's local time formatted as UTC.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
    published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.