Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
Provides a data source to read DHCP pools for NSX-T Org VDC networks.
Example Usage
1
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const parent = vcd.getNetworkRoutedV2({
org: "my-org",
vdc: "my-vdc",
name: "my-parent-network",
});
const pools = parent.then(parent => vcd.getNsxtNetworkDhcp({
org: "my-org",
orgNetworkId: parent.id,
}));
import pulumi
import pulumi_vcd as vcd
parent = vcd.get_network_routed_v2(org="my-org",
vdc="my-vdc",
name="my-parent-network")
pools = vcd.get_nsxt_network_dhcp(org="my-org",
org_network_id=parent.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 {
parent, err := vcd.LookupNetworkRoutedV2(ctx, &vcd.LookupNetworkRoutedV2Args{
Org: pulumi.StringRef("my-org"),
Vdc: pulumi.StringRef("my-vdc"),
Name: pulumi.StringRef("my-parent-network"),
}, nil)
if err != nil {
return err
}
_, err = vcd.LookupNsxtNetworkDhcp(ctx, &vcd.LookupNsxtNetworkDhcpArgs{
Org: pulumi.StringRef("my-org"),
OrgNetworkId: parent.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 parent = Vcd.GetNetworkRoutedV2.Invoke(new()
{
Org = "my-org",
Vdc = "my-vdc",
Name = "my-parent-network",
});
var pools = Vcd.GetNsxtNetworkDhcp.Invoke(new()
{
Org = "my-org",
OrgNetworkId = parent.Apply(getNetworkRoutedV2Result => getNetworkRoutedV2Result.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.GetNetworkRoutedV2Args;
import com.pulumi.vcd.inputs.GetNsxtNetworkDhcpArgs;
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 parent = VcdFunctions.getNetworkRoutedV2(GetNetworkRoutedV2Args.builder()
.org("my-org")
.vdc("my-vdc")
.name("my-parent-network")
.build());
final var pools = VcdFunctions.getNsxtNetworkDhcp(GetNsxtNetworkDhcpArgs.builder()
.org("my-org")
.orgNetworkId(parent.applyValue(getNetworkRoutedV2Result -> getNetworkRoutedV2Result.id()))
.build());
}
}
variables:
parent:
fn::invoke:
function: vcd:getNetworkRoutedV2
arguments:
org: my-org
vdc: my-vdc
name: my-parent-network
pools:
fn::invoke:
function: vcd:getNsxtNetworkDhcp
arguments:
org: my-org
orgNetworkId: ${parent.id}
Using getNsxtNetworkDhcp
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 getNsxtNetworkDhcp(args: GetNsxtNetworkDhcpArgs, opts?: InvokeOptions): Promise<GetNsxtNetworkDhcpResult>
function getNsxtNetworkDhcpOutput(args: GetNsxtNetworkDhcpOutputArgs, opts?: InvokeOptions): Output<GetNsxtNetworkDhcpResult>def get_nsxt_network_dhcp(dns_servers: Optional[Sequence[str]] = None,
id: Optional[str] = None,
org: Optional[str] = None,
org_network_id: Optional[str] = None,
vdc: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxtNetworkDhcpResult
def get_nsxt_network_dhcp_output(dns_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
org_network_id: Optional[pulumi.Input[str]] = None,
vdc: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxtNetworkDhcpResult]func LookupNsxtNetworkDhcp(ctx *Context, args *LookupNsxtNetworkDhcpArgs, opts ...InvokeOption) (*LookupNsxtNetworkDhcpResult, error)
func LookupNsxtNetworkDhcpOutput(ctx *Context, args *LookupNsxtNetworkDhcpOutputArgs, opts ...InvokeOption) LookupNsxtNetworkDhcpResultOutput> Note: This function is named LookupNsxtNetworkDhcp in the Go SDK.
public static class GetNsxtNetworkDhcp
{
public static Task<GetNsxtNetworkDhcpResult> InvokeAsync(GetNsxtNetworkDhcpArgs args, InvokeOptions? opts = null)
public static Output<GetNsxtNetworkDhcpResult> Invoke(GetNsxtNetworkDhcpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNsxtNetworkDhcpResult> getNsxtNetworkDhcp(GetNsxtNetworkDhcpArgs args, InvokeOptions options)
public static Output<GetNsxtNetworkDhcpResult> getNsxtNetworkDhcp(GetNsxtNetworkDhcpArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxtNetworkDhcp:getNsxtNetworkDhcp
arguments:
# arguments dictionaryThe following arguments are supported:
- Org
Network stringId - ID of parent Org VDC Routed network
- Dns
Servers List<string> - Id string
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Vdc string
- Org
Network stringId - ID of parent Org VDC Routed network
- Dns
Servers []string - Id string
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Vdc string
- org
Network StringId - ID of parent Org VDC Routed network
- dns
Servers List<String> - id String
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc String
- org
Network stringId - ID of parent Org VDC Routed network
- dns
Servers string[] - id string
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc string
- org_
network_ strid - ID of parent Org VDC Routed network
- dns_
servers Sequence[str] - id str
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc str
- org
Network StringId - ID of parent Org VDC Routed network
- dns
Servers List<String> - id String
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- vdc String
getNsxtNetworkDhcp Result
The following output properties are available:
- Id string
- Lease
Time double - Listener
Ip stringAddress - Mode string
- Org
Network stringId - Pools
List<Get
Nsxt Network Dhcp Pool> - Dns
Servers List<string> - Org string
- Vdc string
- Id string
- Lease
Time float64 - Listener
Ip stringAddress - Mode string
- Org
Network stringId - Pools
[]Get
Nsxt Network Dhcp Pool - Dns
Servers []string - Org string
- Vdc string
- id String
- lease
Time Double - listener
Ip StringAddress - mode String
- org
Network StringId - pools
List<Get
Nsxt Network Dhcp Pool> - dns
Servers List<String> - org String
- vdc String
- id string
- lease
Time number - listener
Ip stringAddress - mode string
- org
Network stringId - pools
Get
Nsxt Network Dhcp Pool[] - dns
Servers string[] - org string
- vdc string
- id str
- lease_
time float - listener_
ip_ straddress - mode str
- org_
network_ strid - pools
Sequence[Get
Nsxt Network Dhcp Pool] - dns_
servers Sequence[str] - org str
- vdc str
- id String
- lease
Time Number - listener
Ip StringAddress - mode String
- org
Network StringId - pools List<Property Map>
- dns
Servers List<String> - org String
- vdc String
Supporting Types
GetNsxtNetworkDhcpPool
- 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
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcdTerraform Provider.
Viewing docs for vcd 3.14.1
published on Monday, Apr 14, 2025 by vmware
published on Monday, Apr 14, 2025 by vmware
