1. Packages
  2. Vcd Provider
  3. API Docs
  4. getOrgVdcNsxtNetworkProfile
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.getOrgVdcNsxtNetworkProfile

Explore with Pulumi AI

Provides a data source to read Network Profile for NSX-T VDCs.

Supported in provider v3.11+ and VCD 10.4.0+ with NSX-T.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";

const nsxt = vcd.getOrgVdcNsxtNetworkProfile({
    org: "my-org",
    vdc: "my-vdc",
});
Copy
import pulumi
import pulumi_vcd as vcd

nsxt = vcd.get_org_vdc_nsxt_network_profile(org="my-org",
    vdc="my-vdc")
Copy
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.LookupOrgVdcNsxtNetworkProfile(ctx, &vcd.LookupOrgVdcNsxtNetworkProfileArgs{
			Org: pulumi.StringRef("my-org"),
			Vdc: pulumi.StringRef("my-vdc"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;

return await Deployment.RunAsync(() => 
{
    var nsxt = Vcd.GetOrgVdcNsxtNetworkProfile.Invoke(new()
    {
        Org = "my-org",
        Vdc = "my-vdc",
    });

});
Copy
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.GetOrgVdcNsxtNetworkProfileArgs;
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 nsxt = VcdFunctions.getOrgVdcNsxtNetworkProfile(GetOrgVdcNsxtNetworkProfileArgs.builder()
            .org("my-org")
            .vdc("my-vdc")
            .build());

    }
}
Copy
variables:
  nsxt:
    fn::invoke:
      function: vcd:getOrgVdcNsxtNetworkProfile
      arguments:
        org: my-org
        vdc: my-vdc
Copy

Using getOrgVdcNsxtNetworkProfile

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 getOrgVdcNsxtNetworkProfile(args: GetOrgVdcNsxtNetworkProfileArgs, opts?: InvokeOptions): Promise<GetOrgVdcNsxtNetworkProfileResult>
function getOrgVdcNsxtNetworkProfileOutput(args: GetOrgVdcNsxtNetworkProfileOutputArgs, opts?: InvokeOptions): Output<GetOrgVdcNsxtNetworkProfileResult>
Copy
def get_org_vdc_nsxt_network_profile(id: Optional[str] = None,
                                     org: Optional[str] = None,
                                     vdc: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetOrgVdcNsxtNetworkProfileResult
def get_org_vdc_nsxt_network_profile_output(id: Optional[pulumi.Input[str]] = None,
                                     org: Optional[pulumi.Input[str]] = None,
                                     vdc: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetOrgVdcNsxtNetworkProfileResult]
Copy
func LookupOrgVdcNsxtNetworkProfile(ctx *Context, args *LookupOrgVdcNsxtNetworkProfileArgs, opts ...InvokeOption) (*LookupOrgVdcNsxtNetworkProfileResult, error)
func LookupOrgVdcNsxtNetworkProfileOutput(ctx *Context, args *LookupOrgVdcNsxtNetworkProfileOutputArgs, opts ...InvokeOption) LookupOrgVdcNsxtNetworkProfileResultOutput
Copy

> Note: This function is named LookupOrgVdcNsxtNetworkProfile in the Go SDK.

public static class GetOrgVdcNsxtNetworkProfile 
{
    public static Task<GetOrgVdcNsxtNetworkProfileResult> InvokeAsync(GetOrgVdcNsxtNetworkProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetOrgVdcNsxtNetworkProfileResult> Invoke(GetOrgVdcNsxtNetworkProfileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrgVdcNsxtNetworkProfileResult> getOrgVdcNsxtNetworkProfile(GetOrgVdcNsxtNetworkProfileArgs args, InvokeOptions options)
public static Output<GetOrgVdcNsxtNetworkProfileResult> getOrgVdcNsxtNetworkProfile(GetOrgVdcNsxtNetworkProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vcd:index/getOrgVdcNsxtNetworkProfile:getOrgVdcNsxtNetworkProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
Org string
The name of organization to use, optional if defined at provider level
Vdc string
The name of VDC to use, optional if defined at provider level
Id string
Org string
The name of organization to use, optional if defined at provider level
Vdc string
The name of VDC to use, optional if defined at provider level
id String
org String
The name of organization to use, optional if defined at provider level
vdc String
The name of VDC to use, optional if defined at provider level
id string
org string
The name of organization to use, optional if defined at provider level
vdc string
The name of VDC to use, optional if defined at provider level
id str
org str
The name of organization to use, optional if defined at provider level
vdc str
The name of VDC to use, optional if defined at provider level
id String
org String
The name of organization to use, optional if defined at provider level
vdc String
The name of VDC to use, optional if defined at provider level

getOrgVdcNsxtNetworkProfile Result

The following output properties are available:

EdgeClusterId string
An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
Id string
VappNetworksDefaultSegmentProfileTemplateId string
Default Segment Profile ID for all vApp networks withing this VDC
VdcNetworksDefaultSegmentProfileTemplateId string
Default Segment Profile ID for all Org VDC networks withing this VDC
Org string
Vdc string
EdgeClusterId string
An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
Id string
VappNetworksDefaultSegmentProfileTemplateId string
Default Segment Profile ID for all vApp networks withing this VDC
VdcNetworksDefaultSegmentProfileTemplateId string
Default Segment Profile ID for all Org VDC networks withing this VDC
Org string
Vdc string
edgeClusterId String
An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
id String
vappNetworksDefaultSegmentProfileTemplateId String
Default Segment Profile ID for all vApp networks withing this VDC
vdcNetworksDefaultSegmentProfileTemplateId String
Default Segment Profile ID for all Org VDC networks withing this VDC
org String
vdc String
edgeClusterId string
An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
id string
vappNetworksDefaultSegmentProfileTemplateId string
Default Segment Profile ID for all vApp networks withing this VDC
vdcNetworksDefaultSegmentProfileTemplateId string
Default Segment Profile ID for all Org VDC networks withing this VDC
org string
vdc string
edge_cluster_id str
An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
id str
vapp_networks_default_segment_profile_template_id str
Default Segment Profile ID for all vApp networks withing this VDC
vdc_networks_default_segment_profile_template_id str
Default Segment Profile ID for all Org VDC networks withing this VDC
org str
vdc str
edgeClusterId String
An ID of NSX-T Edge Cluster which should provide vApp Networking Services or DHCP for Isolated Networks. This value might be unavailable in data source if user has insufficient rights.
id String
vappNetworksDefaultSegmentProfileTemplateId String
Default Segment Profile ID for all vApp networks withing this VDC
vdcNetworksDefaultSegmentProfileTemplateId String
Default Segment Profile ID for all Org VDC networks withing this VDC
org String
vdc String

Package Details

Repository
vcd vmware/terraform-provider-vcd
License
Notes
This Pulumi package is based on the vcd Terraform Provider.