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 dictionary
The following arguments are supported:
- Edge
Gateway 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 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 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 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.
- edge
Gateway 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:
- Dns
Servers List<string> - Domain
Names List<string> - Edge
Gateway stringId - Id string
- Mode string
- Org string
- Dns
Servers []string - Domain
Names []string - Edge
Gateway stringId - Id string
- Mode string
- Org string
- dns
Servers List<String> - domain
Names List<String> - edge
Gateway StringId - id String
- mode String
- org String
- dns
Servers string[] - domain
Names string[] - edge
Gateway stringId - id string
- mode string
- org string
- dns_
servers Sequence[str] - domain_
names Sequence[str] - edge_
gateway_ strid - id str
- mode str
- org str
- dns
Servers List<String> - domain
Names List<String> - edge
Gateway StringId - id String
- mode String
- org String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.