nsxt.getTransportZone
Explore with Pulumi AI
This data source provides information about Transport Zones (TZ) configured in NSX. A Transport Zone defines the scope to which a network can extend in NSX. For example an overlay based Transport Zone is associated with both hypervisors and logical switches and defines which hypervisors will be able to serve the defined logical switch. Virtual machines on the hypervisor associated with a Transport Zone can be attached to logical switches in that same Transport Zone.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nsxt from "@pulumi/nsxt";
const overlayTransportZone = nsxt.getTransportZone({
displayName: "1-transportzone-87",
});
import pulumi
import pulumi_nsxt as nsxt
overlay_transport_zone = nsxt.get_transport_zone(display_name="1-transportzone-87")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/nsxt/v3/nsxt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nsxt.GetTransportZone(ctx, &nsxt.GetTransportZoneArgs{
DisplayName: pulumi.StringRef("1-transportzone-87"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nsxt = Pulumi.Nsxt;
return await Deployment.RunAsync(() =>
{
var overlayTransportZone = Nsxt.GetTransportZone.Invoke(new()
{
DisplayName = "1-transportzone-87",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nsxt.NsxtFunctions;
import com.pulumi.nsxt.inputs.GetTransportZoneArgs;
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 overlayTransportZone = NsxtFunctions.getTransportZone(GetTransportZoneArgs.builder()
.displayName("1-transportzone-87")
.build());
}
}
variables:
overlayTransportZone:
fn::invoke:
function: nsxt:getTransportZone
arguments:
displayName: 1-transportzone-87
Using getTransportZone
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 getTransportZone(args: GetTransportZoneArgs, opts?: InvokeOptions): Promise<GetTransportZoneResult>
function getTransportZoneOutput(args: GetTransportZoneOutputArgs, opts?: InvokeOptions): Output<GetTransportZoneResult>
def get_transport_zone(description: Optional[str] = None,
display_name: Optional[str] = None,
host_switch_name: Optional[str] = None,
id: Optional[str] = None,
transport_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTransportZoneResult
def get_transport_zone_output(description: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
host_switch_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
transport_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTransportZoneResult]
func GetTransportZone(ctx *Context, args *GetTransportZoneArgs, opts ...InvokeOption) (*GetTransportZoneResult, error)
func GetTransportZoneOutput(ctx *Context, args *GetTransportZoneOutputArgs, opts ...InvokeOption) GetTransportZoneResultOutput
> Note: This function is named GetTransportZone
in the Go SDK.
public static class GetTransportZone
{
public static Task<GetTransportZoneResult> InvokeAsync(GetTransportZoneArgs args, InvokeOptions? opts = null)
public static Output<GetTransportZoneResult> Invoke(GetTransportZoneInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTransportZoneResult> getTransportZone(GetTransportZoneArgs args, InvokeOptions options)
public static Output<GetTransportZoneResult> getTransportZone(GetTransportZoneArgs args, InvokeOptions options)
fn::invoke:
function: nsxt:index/getTransportZone:getTransportZone
arguments:
# arguments dictionary
The following arguments are supported:
- Description string
- The description of the Transport Zone.
- Display
Name string - The Display Name prefix of the Transport Zone to retrieve.
- Host
Switch stringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- Id string
- The ID of Transport Zone to retrieve.
- Transport
Type string - The transport type of this transport zone (OVERLAY or VLAN).
- Description string
- The description of the Transport Zone.
- Display
Name string - The Display Name prefix of the Transport Zone to retrieve.
- Host
Switch stringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- Id string
- The ID of Transport Zone to retrieve.
- Transport
Type string - The transport type of this transport zone (OVERLAY or VLAN).
- description String
- The description of the Transport Zone.
- display
Name String - The Display Name prefix of the Transport Zone to retrieve.
- host
Switch StringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id String
- The ID of Transport Zone to retrieve.
- transport
Type String - The transport type of this transport zone (OVERLAY or VLAN).
- description string
- The description of the Transport Zone.
- display
Name string - The Display Name prefix of the Transport Zone to retrieve.
- host
Switch stringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id string
- The ID of Transport Zone to retrieve.
- transport
Type string - The transport type of this transport zone (OVERLAY or VLAN).
- description str
- The description of the Transport Zone.
- display_
name str - The Display Name prefix of the Transport Zone to retrieve.
- host_
switch_ strname - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id str
- The ID of Transport Zone to retrieve.
- transport_
type str - The transport type of this transport zone (OVERLAY or VLAN).
- description String
- The description of the Transport Zone.
- display
Name String - The Display Name prefix of the Transport Zone to retrieve.
- host
Switch StringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id String
- The ID of Transport Zone to retrieve.
- transport
Type String - The transport type of this transport zone (OVERLAY or VLAN).
getTransportZone Result
The following output properties are available:
- Description string
- The description of the Transport Zone.
- Display
Name string - Host
Switch stringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- Id string
- Transport
Type string - The transport type of this transport zone (OVERLAY or VLAN).
- Description string
- The description of the Transport Zone.
- Display
Name string - Host
Switch stringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- Id string
- Transport
Type string - The transport type of this transport zone (OVERLAY or VLAN).
- description String
- The description of the Transport Zone.
- display
Name String - host
Switch StringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id String
- transport
Type String - The transport type of this transport zone (OVERLAY or VLAN).
- description string
- The description of the Transport Zone.
- display
Name string - host
Switch stringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id string
- transport
Type string - The transport type of this transport zone (OVERLAY or VLAN).
- description str
- The description of the Transport Zone.
- display_
name str - host_
switch_ strname - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id str
- transport_
type str - The transport type of this transport zone (OVERLAY or VLAN).
- description String
- The description of the Transport Zone.
- display
Name String - host
Switch StringName - The name of the N-VDS (host switch) on all Transport Nodes in this Transport Zone that will be used to run NSX network traffic.
- id String
- transport
Type String - The transport type of this transport zone (OVERLAY or VLAN).
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.