vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getNsxtEdgegatewayDhcpv6
Explore with Pulumi AI
Provides a data source to read DHCPv6 configuration for NSX-T Edge Gateways.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const testing_in_vdc = vcd.getNsxtEdgegatewayDhcpv6({
    org: "datacloud",
    edgeGatewayId: data.vcd_nsxt_edgegateway["testing-in-vdc"].id,
});
import pulumi
import pulumi_vcd as vcd
testing_in_vdc = vcd.get_nsxt_edgegateway_dhcpv6(org="datacloud",
    edge_gateway_id=data["vcd_nsxt_edgegateway"]["testing-in-vdc"]["id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vcd.LookupNsxtEdgegatewayDhcpv6(ctx, &vcd.LookupNsxtEdgegatewayDhcpv6Args{
			Org:           pulumi.StringRef("datacloud"),
			EdgeGatewayId: data.Vcd_nsxt_edgegateway.TestingInVdc.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() => 
{
    var testing_in_vdc = Vcd.GetNsxtEdgegatewayDhcpv6.Invoke(new()
    {
        Org = "datacloud",
        EdgeGatewayId = data.Vcd_nsxt_edgegateway.Testing_in_vdc.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetNsxtEdgegatewayDhcpv6Args;
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 testing-in-vdc = VcdFunctions.getNsxtEdgegatewayDhcpv6(GetNsxtEdgegatewayDhcpv6Args.builder()
            .org("datacloud")
            .edgeGatewayId(data.vcd_nsxt_edgegateway().testing-in-vdc().id())
            .build());
    }
}
variables:
  testing-in-vdc:
    fn::invoke:
      function: vcd:getNsxtEdgegatewayDhcpv6
      arguments:
        org: datacloud
        edgeGatewayId: ${data.vcd_nsxt_edgegateway"testing-in-vdc"[%!s(MISSING)].id}
Using getNsxtEdgegatewayDhcpv6
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 getNsxtEdgegatewayDhcpv6(args: GetNsxtEdgegatewayDhcpv6Args, opts?: InvokeOptions): Promise<GetNsxtEdgegatewayDhcpv6Result>
function getNsxtEdgegatewayDhcpv6Output(args: GetNsxtEdgegatewayDhcpv6OutputArgs, opts?: InvokeOptions): Output<GetNsxtEdgegatewayDhcpv6Result>def get_nsxt_edgegateway_dhcpv6(edge_gateway_id: Optional[str] = None,
                                id: Optional[str] = None,
                                org: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetNsxtEdgegatewayDhcpv6Result
def get_nsxt_edgegateway_dhcpv6_output(edge_gateway_id: Optional[pulumi.Input[str]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                org: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetNsxtEdgegatewayDhcpv6Result]func LookupNsxtEdgegatewayDhcpv6(ctx *Context, args *LookupNsxtEdgegatewayDhcpv6Args, opts ...InvokeOption) (*LookupNsxtEdgegatewayDhcpv6Result, error)
func LookupNsxtEdgegatewayDhcpv6Output(ctx *Context, args *LookupNsxtEdgegatewayDhcpv6OutputArgs, opts ...InvokeOption) LookupNsxtEdgegatewayDhcpv6ResultOutput> Note: This function is named LookupNsxtEdgegatewayDhcpv6 in the Go SDK.
public static class GetNsxtEdgegatewayDhcpv6 
{
    public static Task<GetNsxtEdgegatewayDhcpv6Result> InvokeAsync(GetNsxtEdgegatewayDhcpv6Args args, InvokeOptions? opts = null)
    public static Output<GetNsxtEdgegatewayDhcpv6Result> Invoke(GetNsxtEdgegatewayDhcpv6InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNsxtEdgegatewayDhcpv6Result> getNsxtEdgegatewayDhcpv6(GetNsxtEdgegatewayDhcpv6Args args, InvokeOptions options)
public static Output<GetNsxtEdgegatewayDhcpv6Result> getNsxtEdgegatewayDhcpv6(GetNsxtEdgegatewayDhcpv6Args args, InvokeOptions options)
fn::invoke:
  function: vcd:index/getNsxtEdgegatewayDhcpv6:getNsxtEdgegatewayDhcpv6
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EdgeGateway stringId 
- An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- Id string
- Org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- EdgeGateway stringId 
- An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- Id string
- Org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- edgeGateway StringId 
- An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id String
- org String
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- edgeGateway stringId 
- An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id string
- org string
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- edge_gateway_ strid 
- An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id str
- org str
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
- edgeGateway StringId 
- An ID of NSX-T Edge Gateway. Can be looked up using vcd.NsxtEdgegateway data source
- id String
- org String
- The name of organization to which the edge gateway belongs. Optional if defined at provider level.
getNsxtEdgegatewayDhcpv6 Result
The following output properties are available:
- DnsServers List<string>
- DomainNames List<string>
- EdgeGateway stringId 
- Id string
- Mode string
- Org string
- DnsServers []string
- DomainNames []string
- EdgeGateway stringId 
- Id string
- Mode string
- Org string
- dnsServers List<String>
- domainNames List<String>
- edgeGateway StringId 
- id String
- mode String
- org String
- dnsServers string[]
- domainNames string[]
- edgeGateway stringId 
- id string
- mode string
- org string
- dns_servers Sequence[str]
- domain_names Sequence[str]
- edge_gateway_ strid 
- id str
- mode str
- org str
- dnsServers List<String>
- domainNames List<String>
- edgeGateway StringId 
- id String
- mode String
- org String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the vcdTerraform Provider.