1. Packages
  2. Packages
  3. Proxmox Virtual Environment (Proxmox VE)
  4. API Docs
  5. TimeLegacy
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

    Manages the time for a specific node.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
    
    const firstNodeTime = new proxmoxve.TimeLegacy("first_node_time", {
        nodeName: "first-node",
        timeZone: "UTC",
    });
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    first_node_time = proxmoxve.TimeLegacy("first_node_time",
        node_name="first-node",
        time_zone="UTC")
    
    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.NewTimeLegacy(ctx, "first_node_time", &proxmoxve.TimeLegacyArgs{
    			NodeName: pulumi.String("first-node"),
    			TimeZone: pulumi.String("UTC"),
    		})
    		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 = new ProxmoxVE.Index.TimeLegacy("first_node_time", new()
        {
            NodeName = "first-node",
            TimeZone = "UTC",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import io.muehlbachler.pulumi.proxmoxve.TimeLegacy;
    import io.muehlbachler.pulumi.proxmoxve.TimeLegacyArgs;
    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) {
            var firstNodeTime = new TimeLegacy("firstNodeTime", TimeLegacyArgs.builder()
                .nodeName("first-node")
                .timeZone("UTC")
                .build());
    
        }
    }
    
    resources:
      firstNodeTime:
        type: proxmoxve:TimeLegacy
        name: first_node_time
        properties:
          nodeName: first-node
          timeZone: UTC
    

    Create TimeLegacy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TimeLegacy(name: string, args: TimeLegacyArgs, opts?: CustomResourceOptions);
    @overload
    def TimeLegacy(resource_name: str,
                   args: TimeLegacyArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TimeLegacy(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   node_name: Optional[str] = None,
                   time_zone: Optional[str] = None)
    func NewTimeLegacy(ctx *Context, name string, args TimeLegacyArgs, opts ...ResourceOption) (*TimeLegacy, error)
    public TimeLegacy(string name, TimeLegacyArgs args, CustomResourceOptions? opts = null)
    public TimeLegacy(String name, TimeLegacyArgs args)
    public TimeLegacy(String name, TimeLegacyArgs args, CustomResourceOptions options)
    
    type: proxmoxve:TimeLegacy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TimeLegacyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TimeLegacyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TimeLegacyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TimeLegacyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TimeLegacyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var timeLegacyResource = new ProxmoxVE.TimeLegacy("timeLegacyResource", new()
    {
        NodeName = "string",
        TimeZone = "string",
    });
    
    example, err := proxmoxve.NewTimeLegacy(ctx, "timeLegacyResource", &proxmoxve.TimeLegacyArgs{
    	NodeName: pulumi.String("string"),
    	TimeZone: pulumi.String("string"),
    })
    
    var timeLegacyResource = new TimeLegacy("timeLegacyResource", TimeLegacyArgs.builder()
        .nodeName("string")
        .timeZone("string")
        .build());
    
    time_legacy_resource = proxmoxve.TimeLegacy("timeLegacyResource",
        node_name="string",
        time_zone="string")
    
    const timeLegacyResource = new proxmoxve.TimeLegacy("timeLegacyResource", {
        nodeName: "string",
        timeZone: "string",
    });
    
    type: proxmoxve:TimeLegacy
    properties:
        nodeName: string
        timeZone: string
    

    TimeLegacy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TimeLegacy resource accepts the following input properties:

    NodeName string
    A node name.
    TimeZone string
    The node's time zone.
    NodeName string
    A node name.
    TimeZone string
    The node's time zone.
    nodeName String
    A node name.
    timeZone String
    The node's time zone.
    nodeName string
    A node name.
    timeZone string
    The node's time zone.
    node_name str
    A node name.
    time_zone str
    The node's time zone.
    nodeName String
    A node name.
    timeZone String
    The node's time zone.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TimeLegacy resource produces the following output properties:

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

    Look up Existing TimeLegacy Resource

    Get an existing TimeLegacy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TimeLegacyState, opts?: CustomResourceOptions): TimeLegacy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            local_time: Optional[str] = None,
            node_name: Optional[str] = None,
            time_zone: Optional[str] = None,
            utc_time: Optional[str] = None) -> TimeLegacy
    func GetTimeLegacy(ctx *Context, name string, id IDInput, state *TimeLegacyState, opts ...ResourceOption) (*TimeLegacy, error)
    public static TimeLegacy Get(string name, Input<string> id, TimeLegacyState? state, CustomResourceOptions? opts = null)
    public static TimeLegacy get(String name, Output<String> id, TimeLegacyState state, CustomResourceOptions options)
    resources:  _:    type: proxmoxve:TimeLegacy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    LocalTime string
    The node's local time.
    NodeName string
    A node name.
    TimeZone string
    The node's time zone.
    UtcTime string
    The node's time formatted as UTC.
    LocalTime string
    The node's local time.
    NodeName string
    A node name.
    TimeZone string
    The node's time zone.
    UtcTime string
    The node's time formatted as UTC.
    localTime String
    The node's local time.
    nodeName String
    A node name.
    timeZone String
    The node's time zone.
    utcTime String
    The node's time formatted as UTC.
    localTime string
    The node's local time.
    nodeName string
    A node name.
    timeZone string
    The node's time zone.
    utcTime string
    The node's time formatted as UTC.
    local_time str
    The node's local time.
    node_name str
    A node name.
    time_zone str
    The node's time zone.
    utc_time str
    The node's time formatted as UTC.
    localTime String
    The node's local time.
    nodeName String
    A node name.
    timeZone String
    The node's time zone.
    utcTime String
    The node's time formatted as UTC.

    Import

    Instances can be imported using the nodeName, e.g.,

    $ pulumi import proxmoxve:index/timeLegacy:TimeLegacy first_node first-node
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.