Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski
proxmoxve.Network.getDNS
Explore with Pulumi AI
Proxmox Virtual Environment (Proxmox VE) v6.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski
Retrieves the DNS configuration for a specific node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@pulumi/proxmoxve";
const firstNode = proxmoxve.Network.getDNS({
nodeName: "first-node",
});
import pulumi
import pulumi_proxmoxve as proxmoxve
first_node = proxmoxve.Network.get_dns(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.GetDNS(ctx, &network.GetDNSArgs{
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 firstNode = ProxmoxVE.Network.GetDNS.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.GetDNSArgs;
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 firstNode = NetworkFunctions.getDNS(GetDNSArgs.builder()
.nodeName("first-node")
.build());
}
}
variables:
firstNode:
fn::invoke:
Function: proxmoxve:Network:getDNS
Arguments:
nodeName: first-node
Using getDNS
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 getDNS(args: GetDNSArgs, opts?: InvokeOptions): Promise<GetDNSResult>
function getDNSOutput(args: GetDNSOutputArgs, opts?: InvokeOptions): Output<GetDNSResult>
def get_dns(node_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDNSResult
def get_dns_output(node_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDNSResult]
func GetDNS(ctx *Context, args *GetDNSArgs, opts ...InvokeOption) (*GetDNSResult, error)
func GetDNSOutput(ctx *Context, args *GetDNSOutputArgs, opts ...InvokeOption) GetDNSResultOutput
> Note: This function is named GetDNS
in the Go SDK.
public static class GetDNS
{
public static Task<GetDNSResult> InvokeAsync(GetDNSArgs args, InvokeOptions? opts = null)
public static Output<GetDNSResult> Invoke(GetDNSInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDNSResult> getDNS(GetDNSArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: proxmoxve:Network/getDNS:getDNS
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.
getDNS Result
The following output properties are available:
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.15.3 published on Monday, Nov 11, 2024 by Daniel Muehlbachler-Pietrzykowski