Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.Network.getTime
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski
Retrieves the current time for a specific node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@pulumi/proxmoxve";
const firstNodeTime = proxmoxve.Network.getTime({
nodeName: "first-node",
});
import pulumi
import pulumi_proxmoxve as proxmoxve
first_node_time = proxmoxve.Network.get_time(node_name="first-node")
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 {
_, err := Network.GetTime(ctx, &network.GetTimeArgs{
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.Network.GetTime.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.Network.NetworkFunctions;
import com.pulumi.proxmoxve.Network.inputs.GetTimeArgs;
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 = NetworkFunctions.getTime(GetTimeArgs.builder()
.nodeName("first-node")
.build());
}
}
variables:
firstNodeTime:
fn::invoke:
Function: proxmoxve:Network:getTime
Arguments:
nodeName: first-node
Using getTime
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 getTime(args: GetTimeArgs, opts?: InvokeOptions): Promise<GetTimeResult>
function getTimeOutput(args: GetTimeOutputArgs, opts?: InvokeOptions): Output<GetTimeResult>
def get_time(node_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTimeResult
def get_time_output(node_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTimeResult]
func GetTime(ctx *Context, args *GetTimeArgs, opts ...InvokeOption) (*GetTimeResult, error)
func GetTimeOutput(ctx *Context, args *GetTimeOutputArgs, opts ...InvokeOption) GetTimeResultOutput
> Note: This function is named GetTime
in the Go SDK.
public static class GetTime
{
public static Task<GetTimeResult> InvokeAsync(GetTimeArgs args, InvokeOptions? opts = null)
public static Output<GetTimeResult> Invoke(GetTimeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTimeResult> getTime(GetTimeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: proxmoxve:Network/getTime:getTime
arguments:
# arguments dictionary
The following arguments are supported:
- Node
Name string - A node name.
- Node
Name string - A node name.
- node
Name String - A node name.
- node
Name string - A node name.
- node_
name str - A node name.
- node
Name String - A node name.
getTime Result
The following output properties are available:
- 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.
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.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski