vcd.getExternalNetworkV2
Explore with Pulumi AI
Provides a VMware Cloud Director External Network data source (version 2). New version of this data source uses new VCD API and is capable of handling NSX-T backed external networks as well as port group backed ones.
Note: This resource uses new VMware Cloud Director OpenAPI and requires at least VCD 10.0+. It supports both NSX-T and NSX-V backed networks (NSX-T 3.0+ requires VCD 10.1.1+)
Supported in provider v3.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const extNet = vcd.getExternalNetworkV2({
name: "my-nsxt-net",
});
import pulumi
import pulumi_vcd as vcd
ext_net = vcd.get_external_network_v2(name="my-nsxt-net")
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.LookupExternalNetworkV2(ctx, &vcd.LookupExternalNetworkV2Args{
Name: "my-nsxt-net",
}, 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 extNet = Vcd.GetExternalNetworkV2.Invoke(new()
{
Name = "my-nsxt-net",
});
});
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.GetExternalNetworkV2Args;
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 extNet = VcdFunctions.getExternalNetworkV2(GetExternalNetworkV2Args.builder()
.name("my-nsxt-net")
.build());
}
}
variables:
extNet:
fn::invoke:
function: vcd:getExternalNetworkV2
arguments:
name: my-nsxt-net
Using getExternalNetworkV2
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 getExternalNetworkV2(args: GetExternalNetworkV2Args, opts?: InvokeOptions): Promise<GetExternalNetworkV2Result>
function getExternalNetworkV2Output(args: GetExternalNetworkV2OutputArgs, opts?: InvokeOptions): Output<GetExternalNetworkV2Result>
def get_external_network_v2(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalNetworkV2Result
def get_external_network_v2_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalNetworkV2Result]
func LookupExternalNetworkV2(ctx *Context, args *LookupExternalNetworkV2Args, opts ...InvokeOption) (*LookupExternalNetworkV2Result, error)
func LookupExternalNetworkV2Output(ctx *Context, args *LookupExternalNetworkV2OutputArgs, opts ...InvokeOption) LookupExternalNetworkV2ResultOutput
> Note: This function is named LookupExternalNetworkV2
in the Go SDK.
public static class GetExternalNetworkV2
{
public static Task<GetExternalNetworkV2Result> InvokeAsync(GetExternalNetworkV2Args args, InvokeOptions? opts = null)
public static Output<GetExternalNetworkV2Result> Invoke(GetExternalNetworkV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExternalNetworkV2Result> getExternalNetworkV2(GetExternalNetworkV2Args args, InvokeOptions options)
public static Output<GetExternalNetworkV2Result> getExternalNetworkV2(GetExternalNetworkV2Args args, InvokeOptions options)
fn::invoke:
function: vcd:index/getExternalNetworkV2:getExternalNetworkV2
arguments:
# arguments dictionary
The following arguments are supported:
getExternalNetworkV2 Result
The following output properties are available:
- dedicated_
org_ strid - description str
- id str
- ip_
scopes Sequence[GetExternal Network V2Ip Scope] - name str
- nat_
and_ strfirewall_ service_ intention - nsxt_
networks Sequence[GetExternal Network V2Nsxt Network] - route_
advertisement_ strintention - use_
ip_ boolspaces - vsphere_
networks Sequence[GetExternal Network V2Vsphere Network]
- dedicated
Org StringId - description String
- id String
- ip
Scopes List<Property Map> - name String
- nat
And StringFirewall Service Intention - nsxt
Networks List<Property Map> - route
Advertisement StringIntention - use
Ip BooleanSpaces - vsphere
Networks List<Property Map>
Supporting Types
GetExternalNetworkV2IpScope
- Dns1 string
- Dns2 string
- Dns
Suffix string - Enabled bool
- Gateway string
- Prefix
Length double - Static
Ip List<GetPools External Network V2Ip Scope Static Ip Pool>
- Dns1 string
- Dns2 string
- Dns
Suffix string - Enabled bool
- Gateway string
- Prefix
Length float64 - Static
Ip []GetPools External Network V2Ip Scope Static Ip Pool
- dns1 String
- dns2 String
- dns
Suffix String - enabled Boolean
- gateway String
- prefix
Length Double - static
Ip List<GetPools External Network V2Ip Scope Static Ip Pool>
- dns1 string
- dns2 string
- dns
Suffix string - enabled boolean
- gateway string
- prefix
Length number - static
Ip GetPools External Network V2Ip Scope Static Ip Pool[]
- dns1 str
- dns2 str
- dns_
suffix str - enabled bool
- gateway str
- prefix_
length float - static_
ip_ Sequence[Getpools External Network V2Ip Scope Static Ip Pool]
- dns1 String
- dns2 String
- dns
Suffix String - enabled Boolean
- gateway String
- prefix
Length Number - static
Ip List<Property Map>Pools
GetExternalNetworkV2IpScopeStaticIpPool
- End
Address string - Start
Address string
- End
Address string - Start
Address string
- end
Address String - start
Address String
- end
Address string - start
Address string
- end_
address str - start_
address str
- end
Address String - start
Address String
GetExternalNetworkV2NsxtNetwork
- Nsxt
Manager stringId - Nsxt
Segment stringName - Nsxt
Tier0Router stringId
- Nsxt
Manager stringId - Nsxt
Segment stringName - Nsxt
Tier0Router stringId
- nsxt
Manager StringId - nsxt
Segment StringName - nsxt
Tier0Router StringId
- nsxt
Manager stringId - nsxt
Segment stringName - nsxt
Tier0Router stringId
- nsxt
Manager StringId - nsxt
Segment StringName - nsxt
Tier0Router StringId
GetExternalNetworkV2VsphereNetwork
- Portgroup
Id string - Vcenter
Id string
- Portgroup
Id string - Vcenter
Id string
- portgroup
Id String - vcenter
Id String
- portgroup
Id string - vcenter
Id string
- portgroup_
id str - vcenter_
id str
- portgroup
Id String - vcenter
Id String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.