vcd.getNsxtEdgegateway
Explore with Pulumi AI
Provides a VMware Cloud Director NSX-T edge gateway data source. This can be used to read NSX-T edge gateway configurations.
Supported in provider v3.1+.
Example Usage
NSX-T Edge Gateway Belonging To VDC Group)
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const group1 = vcd.getVdcGroup({
name: "existing-group",
});
const t1 = group1.then(group1 => vcd.getNsxtEdgegateway({
org: "myorg",
ownerId: group1.id,
name: "nsxt-edge-gateway",
}));
import pulumi
import pulumi_vcd as vcd
group1 = vcd.get_vdc_group(name="existing-group")
t1 = vcd.get_nsxt_edgegateway(org="myorg",
owner_id=group1.id,
name="nsxt-edge-gateway")
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 {
group1, err := vcd.LookupVdcGroup(ctx, &vcd.LookupVdcGroupArgs{
Name: pulumi.StringRef("existing-group"),
}, nil)
if err != nil {
return err
}
_, err = vcd.LookupNsxtEdgegateway(ctx, &vcd.LookupNsxtEdgegatewayArgs{
Org: pulumi.StringRef("myorg"),
OwnerId: pulumi.StringRef(group1.Id),
Name: "nsxt-edge-gateway",
}, 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 group1 = Vcd.GetVdcGroup.Invoke(new()
{
Name = "existing-group",
});
var t1 = Vcd.GetNsxtEdgegateway.Invoke(new()
{
Org = "myorg",
OwnerId = group1.Apply(getVdcGroupResult => getVdcGroupResult.Id),
Name = "nsxt-edge-gateway",
});
});
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.GetVdcGroupArgs;
import com.pulumi.vcd.inputs.GetNsxtEdgegatewayArgs;
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 group1 = VcdFunctions.getVdcGroup(GetVdcGroupArgs.builder()
.name("existing-group")
.build());
final var t1 = VcdFunctions.getNsxtEdgegateway(GetNsxtEdgegatewayArgs.builder()
.org("myorg")
.ownerId(group1.applyValue(getVdcGroupResult -> getVdcGroupResult.id()))
.name("nsxt-edge-gateway")
.build());
}
}
variables:
group1:
fn::invoke:
function: vcd:getVdcGroup
arguments:
name: existing-group
t1:
fn::invoke:
function: vcd:getNsxtEdgegateway
arguments:
org: myorg
ownerId: ${group1.id}
name: nsxt-edge-gateway
NSX-T Edge Gateway Belonging To VDC)
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const vdc1 = vcd.getOrgVdc({
name: "existing-vdc",
});
const t1 = vdc1.then(vdc1 => vcd.getNsxtEdgegateway({
org: "myorg",
ownerId: vdc1.id,
name: "nsxt-edge-gateway",
}));
import pulumi
import pulumi_vcd as vcd
vdc1 = vcd.get_org_vdc(name="existing-vdc")
t1 = vcd.get_nsxt_edgegateway(org="myorg",
owner_id=vdc1.id,
name="nsxt-edge-gateway")
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 {
vdc1, err := vcd.LookupOrgVdc(ctx, &vcd.LookupOrgVdcArgs{
Name: "existing-vdc",
}, nil)
if err != nil {
return err
}
_, err = vcd.LookupNsxtEdgegateway(ctx, &vcd.LookupNsxtEdgegatewayArgs{
Org: pulumi.StringRef("myorg"),
OwnerId: pulumi.StringRef(vdc1.Id),
Name: "nsxt-edge-gateway",
}, 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 vdc1 = Vcd.GetOrgVdc.Invoke(new()
{
Name = "existing-vdc",
});
var t1 = Vcd.GetNsxtEdgegateway.Invoke(new()
{
Org = "myorg",
OwnerId = vdc1.Apply(getOrgVdcResult => getOrgVdcResult.Id),
Name = "nsxt-edge-gateway",
});
});
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.GetOrgVdcArgs;
import com.pulumi.vcd.inputs.GetNsxtEdgegatewayArgs;
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 vdc1 = VcdFunctions.getOrgVdc(GetOrgVdcArgs.builder()
.name("existing-vdc")
.build());
final var t1 = VcdFunctions.getNsxtEdgegateway(GetNsxtEdgegatewayArgs.builder()
.org("myorg")
.ownerId(vdc1.applyValue(getOrgVdcResult -> getOrgVdcResult.id()))
.name("nsxt-edge-gateway")
.build());
}
}
variables:
vdc1:
fn::invoke:
function: vcd:getOrgVdc
arguments:
name: existing-vdc
t1:
fn::invoke:
function: vcd:getNsxtEdgegateway
arguments:
org: myorg
ownerId: ${vdc1.id}
name: nsxt-edge-gateway
Using getNsxtEdgegateway
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 getNsxtEdgegateway(args: GetNsxtEdgegatewayArgs, opts?: InvokeOptions): Promise<GetNsxtEdgegatewayResult>
function getNsxtEdgegatewayOutput(args: GetNsxtEdgegatewayOutputArgs, opts?: InvokeOptions): Output<GetNsxtEdgegatewayResult>
def get_nsxt_edgegateway(edge_cluster_id: Optional[str] = None,
id: Optional[str] = None,
ip_count_read_limit: Optional[float] = None,
name: Optional[str] = None,
org: Optional[str] = None,
owner_id: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxtEdgegatewayResult
def get_nsxt_edgegateway_output(edge_cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
ip_count_read_limit: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
owner_id: Optional[pulumi.Input[str]] = None,
vdc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxtEdgegatewayResult]
func LookupNsxtEdgegateway(ctx *Context, args *LookupNsxtEdgegatewayArgs, opts ...InvokeOption) (*LookupNsxtEdgegatewayResult, error)
func LookupNsxtEdgegatewayOutput(ctx *Context, args *LookupNsxtEdgegatewayOutputArgs, opts ...InvokeOption) LookupNsxtEdgegatewayResultOutput
> Note: This function is named LookupNsxtEdgegateway
in the Go SDK.
public static class GetNsxtEdgegateway
{
public static Task<GetNsxtEdgegatewayResult> InvokeAsync(GetNsxtEdgegatewayArgs args, InvokeOptions? opts = null)
public static Output<GetNsxtEdgegatewayResult> Invoke(GetNsxtEdgegatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNsxtEdgegatewayResult> getNsxtEdgegateway(GetNsxtEdgegatewayArgs args, InvokeOptions options)
public static Output<GetNsxtEdgegatewayResult> getNsxtEdgegateway(GetNsxtEdgegatewayArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxtEdgegateway:getNsxtEdgegateway
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- NSX-T Edge Gateway name.
- Edge
Cluster stringId - Id string
- Ip
Count doubleRead Limit - Sets a limit of IPs to count for
used_ip_count
andunused_ip_count
attributes to avoid exhausting compute resource while counting IPs in large IPv6 subnets. It does not affect operation of Edge Gateway configuration, only IP count reporting. Defaults to1000000
. While it is unlikely that a single Edge Gateway can effectively manage more IPs, one can specify0
for unlimited value. - Org string
- The name of organization to which the NSX-T Edge Gateway belongs. Optional if defined at provider level.
- Owner
Id string The ID of VDC or VDC Group. Note: Data sources vcd.VdcGroup or vcd.OrgVdc can be used to lookup IDs by name.
Only one of
vdc
orowner_id
can be specified.owner_id
takes precedence overvdc
definition at provider level.- Vdc string
- Deprecated - please use
owner_id
field. The name of VDC that owns the NSX-T Edge Gateway. Optional if defined at provider level.
- Name string
- NSX-T Edge Gateway name.
- Edge
Cluster stringId - Id string
- Ip
Count float64Read Limit - Sets a limit of IPs to count for
used_ip_count
andunused_ip_count
attributes to avoid exhausting compute resource while counting IPs in large IPv6 subnets. It does not affect operation of Edge Gateway configuration, only IP count reporting. Defaults to1000000
. While it is unlikely that a single Edge Gateway can effectively manage more IPs, one can specify0
for unlimited value. - Org string
- The name of organization to which the NSX-T Edge Gateway belongs. Optional if defined at provider level.
- Owner
Id string The ID of VDC or VDC Group. Note: Data sources vcd.VdcGroup or vcd.OrgVdc can be used to lookup IDs by name.
Only one of
vdc
orowner_id
can be specified.owner_id
takes precedence overvdc
definition at provider level.- Vdc string
- Deprecated - please use
owner_id
field. The name of VDC that owns the NSX-T Edge Gateway. Optional if defined at provider level.
- name String
- NSX-T Edge Gateway name.
- edge
Cluster StringId - id String
- ip
Count DoubleRead Limit - Sets a limit of IPs to count for
used_ip_count
andunused_ip_count
attributes to avoid exhausting compute resource while counting IPs in large IPv6 subnets. It does not affect operation of Edge Gateway configuration, only IP count reporting. Defaults to1000000
. While it is unlikely that a single Edge Gateway can effectively manage more IPs, one can specify0
for unlimited value. - org String
- The name of organization to which the NSX-T Edge Gateway belongs. Optional if defined at provider level.
- owner
Id String The ID of VDC or VDC Group. Note: Data sources vcd.VdcGroup or vcd.OrgVdc can be used to lookup IDs by name.
Only one of
vdc
orowner_id
can be specified.owner_id
takes precedence overvdc
definition at provider level.- vdc String
- Deprecated - please use
owner_id
field. The name of VDC that owns the NSX-T Edge Gateway. Optional if defined at provider level.
- name string
- NSX-T Edge Gateway name.
- edge
Cluster stringId - id string
- ip
Count numberRead Limit - Sets a limit of IPs to count for
used_ip_count
andunused_ip_count
attributes to avoid exhausting compute resource while counting IPs in large IPv6 subnets. It does not affect operation of Edge Gateway configuration, only IP count reporting. Defaults to1000000
. While it is unlikely that a single Edge Gateway can effectively manage more IPs, one can specify0
for unlimited value. - org string
- The name of organization to which the NSX-T Edge Gateway belongs. Optional if defined at provider level.
- owner
Id string The ID of VDC or VDC Group. Note: Data sources vcd.VdcGroup or vcd.OrgVdc can be used to lookup IDs by name.
Only one of
vdc
orowner_id
can be specified.owner_id
takes precedence overvdc
definition at provider level.- vdc string
- Deprecated - please use
owner_id
field. The name of VDC that owns the NSX-T Edge Gateway. Optional if defined at provider level.
- name str
- NSX-T Edge Gateway name.
- edge_
cluster_ strid - id str
- ip_
count_ floatread_ limit - Sets a limit of IPs to count for
used_ip_count
andunused_ip_count
attributes to avoid exhausting compute resource while counting IPs in large IPv6 subnets. It does not affect operation of Edge Gateway configuration, only IP count reporting. Defaults to1000000
. While it is unlikely that a single Edge Gateway can effectively manage more IPs, one can specify0
for unlimited value. - org str
- The name of organization to which the NSX-T Edge Gateway belongs. Optional if defined at provider level.
- owner_
id str The ID of VDC or VDC Group. Note: Data sources vcd.VdcGroup or vcd.OrgVdc can be used to lookup IDs by name.
Only one of
vdc
orowner_id
can be specified.owner_id
takes precedence overvdc
definition at provider level.- vdc str
- Deprecated - please use
owner_id
field. The name of VDC that owns the NSX-T Edge Gateway. Optional if defined at provider level.
- name String
- NSX-T Edge Gateway name.
- edge
Cluster StringId - id String
- ip
Count NumberRead Limit - Sets a limit of IPs to count for
used_ip_count
andunused_ip_count
attributes to avoid exhausting compute resource while counting IPs in large IPv6 subnets. It does not affect operation of Edge Gateway configuration, only IP count reporting. Defaults to1000000
. While it is unlikely that a single Edge Gateway can effectively manage more IPs, one can specify0
for unlimited value. - org String
- The name of organization to which the NSX-T Edge Gateway belongs. Optional if defined at provider level.
- owner
Id String The ID of VDC or VDC Group. Note: Data sources vcd.VdcGroup or vcd.OrgVdc can be used to lookup IDs by name.
Only one of
vdc
orowner_id
can be specified.owner_id
takes precedence overvdc
definition at provider level.- vdc String
- Deprecated - please use
owner_id
field. The name of VDC that owns the NSX-T Edge Gateway. Optional if defined at provider level.
getNsxtEdgegateway Result
The following output properties are available:
- Dedicate
External boolNetwork - Deployment
Mode string - Description string
- External
Network doubleAllocated Ip Count - External
Network stringId - External
Networks List<GetNsxt Edgegateway External Network> - Id string
- Name string
- Non
Distributed boolRouting Enabled - Owner
Id string - Primary
Ip string - Subnet
With List<GetIp Counts Nsxt Edgegateway Subnet With Ip Count> - Subnet
With List<GetTotal Ip Counts Nsxt Edgegateway Subnet With Total Ip Count> - Subnets
List<Get
Nsxt Edgegateway Subnet> - Total
Allocated doubleIp Count - Unused
Ip doubleCount - Use
Ip boolSpaces - Used
Ip doubleCount - Vdc string
- Edge
Cluster stringId - Ip
Count doubleRead Limit - Org string
- Dedicate
External boolNetwork - Deployment
Mode string - Description string
- External
Network float64Allocated Ip Count - External
Network stringId - External
Networks []GetNsxt Edgegateway External Network - Id string
- Name string
- Non
Distributed boolRouting Enabled - Owner
Id string - Primary
Ip string - Subnet
With []GetIp Counts Nsxt Edgegateway Subnet With Ip Count - Subnet
With []GetTotal Ip Counts Nsxt Edgegateway Subnet With Total Ip Count - Subnets
[]Get
Nsxt Edgegateway Subnet - Total
Allocated float64Ip Count - Unused
Ip float64Count - Use
Ip boolSpaces - Used
Ip float64Count - Vdc string
- Edge
Cluster stringId - Ip
Count float64Read Limit - Org string
- dedicate
External BooleanNetwork - deployment
Mode String - description String
- external
Network DoubleAllocated Ip Count - external
Network StringId - external
Networks List<GetNsxt Edgegateway External Network> - id String
- name String
- non
Distributed BooleanRouting Enabled - owner
Id String - primary
Ip String - subnet
With List<GetIp Counts Nsxt Edgegateway Subnet With Ip Count> - subnet
With List<GetTotal Ip Counts Nsxt Edgegateway Subnet With Total Ip Count> - subnets
List<Get
Nsxt Edgegateway Subnet> - total
Allocated DoubleIp Count - unused
Ip DoubleCount - use
Ip BooleanSpaces - used
Ip DoubleCount - vdc String
- edge
Cluster StringId - ip
Count DoubleRead Limit - org String
- dedicate
External booleanNetwork - deployment
Mode string - description string
- external
Network numberAllocated Ip Count - external
Network stringId - external
Networks GetNsxt Edgegateway External Network[] - id string
- name string
- non
Distributed booleanRouting Enabled - owner
Id string - primary
Ip string - subnet
With GetIp Counts Nsxt Edgegateway Subnet With Ip Count[] - subnet
With GetTotal Ip Counts Nsxt Edgegateway Subnet With Total Ip Count[] - subnets
Get
Nsxt Edgegateway Subnet[] - total
Allocated numberIp Count - unused
Ip numberCount - use
Ip booleanSpaces - used
Ip numberCount - vdc string
- edge
Cluster stringId - ip
Count numberRead Limit - org string
- dedicate_
external_ boolnetwork - deployment_
mode str - description str
- external_
network_ floatallocated_ ip_ count - external_
network_ strid - external_
networks Sequence[GetNsxt Edgegateway External Network] - id str
- name str
- non_
distributed_ boolrouting_ enabled - owner_
id str - primary_
ip str - subnet_
with_ Sequence[Getip_ counts Nsxt Edgegateway Subnet With Ip Count] - subnet_
with_ Sequence[Gettotal_ ip_ counts Nsxt Edgegateway Subnet With Total Ip Count] - subnets
Sequence[Get
Nsxt Edgegateway Subnet] - total_
allocated_ floatip_ count - unused_
ip_ floatcount - use_
ip_ boolspaces - used_
ip_ floatcount - vdc str
- edge_
cluster_ strid - ip_
count_ floatread_ limit - org str
- dedicate
External BooleanNetwork - deployment
Mode String - description String
- external
Network NumberAllocated Ip Count - external
Network StringId - external
Networks List<Property Map> - id String
- name String
- non
Distributed BooleanRouting Enabled - owner
Id String - primary
Ip String - subnet
With List<Property Map>Ip Counts - subnet
With List<Property Map>Total Ip Counts - subnets List<Property Map>
- total
Allocated NumberIp Count - unused
Ip NumberCount - use
Ip BooleanSpaces - used
Ip NumberCount - vdc String
- edge
Cluster StringId - ip
Count NumberRead Limit - org String
Supporting Types
GetNsxtEdgegatewayExternalNetwork
- Allocated
Ip doubleCount - External
Network stringId - Gateway string
- Prefix
Length double - Primary
Ip string
- Allocated
Ip float64Count - External
Network stringId - Gateway string
- Prefix
Length float64 - Primary
Ip string
- allocated
Ip DoubleCount - external
Network StringId - gateway String
- prefix
Length Double - primary
Ip String
- allocated
Ip numberCount - external
Network stringId - gateway string
- prefix
Length number - primary
Ip string
- allocated_
ip_ floatcount - external_
network_ strid - gateway str
- prefix_
length float - primary_
ip str
- allocated
Ip NumberCount - external
Network StringId - gateway String
- prefix
Length Number - primary
Ip String
GetNsxtEdgegatewaySubnet
- Allocated
Ips List<GetNsxt Edgegateway Subnet Allocated Ip> - Gateway string
- Prefix
Length double - Primary
Ip string
- Allocated
Ips []GetNsxt Edgegateway Subnet Allocated Ip - Gateway string
- Prefix
Length float64 - Primary
Ip string
- allocated
Ips List<GetNsxt Edgegateway Subnet Allocated Ip> - gateway String
- prefix
Length Double - primary
Ip String
- allocated
Ips GetNsxt Edgegateway Subnet Allocated Ip[] - gateway string
- prefix
Length number - primary
Ip string
- allocated
Ips List<Property Map> - gateway String
- prefix
Length Number - primary
Ip String
GetNsxtEdgegatewaySubnetAllocatedIp
- 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
GetNsxtEdgegatewaySubnetWithIpCount
- Allocated
Ip doubleCount - Gateway string
- Prefix
Length double - Primary
Ip string
- Allocated
Ip float64Count - Gateway string
- Prefix
Length float64 - Primary
Ip string
- allocated
Ip DoubleCount - gateway String
- prefix
Length Double - primary
Ip String
- allocated
Ip numberCount - gateway string
- prefix
Length number - primary
Ip string
- allocated_
ip_ floatcount - gateway str
- prefix_
length float - primary_
ip str
- allocated
Ip NumberCount - gateway String
- prefix
Length Number - primary
Ip String
GetNsxtEdgegatewaySubnetWithTotalIpCount
- Gateway string
- Prefix
Length double - Primary
Ip string
- Gateway string
- Prefix
Length float64 - Primary
Ip string
- gateway String
- prefix
Length Double - primary
Ip String
- gateway string
- prefix
Length number - primary
Ip string
- gateway str
- prefix_
length float - primary_
ip str
- gateway String
- prefix
Length Number - primary
Ip String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.