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 NSX-T Org VDC network DHCP bindings.
This data source requires VCD 10.3.1+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const pools = vcd.getNsxtNetworkDhcp({
org: "cloud",
orgNetworkId: data.vcd_network_routed_v2.parent.id,
});
const binding1 = pools.then(pools => vcd.getNsxtNetworkDhcpBinding({
org: "cloud",
orgNetworkId: pools.id,
name: "Binding-one",
}));
import pulumi
import pulumi_vcd as vcd
pools = vcd.get_nsxt_network_dhcp(org="cloud",
org_network_id=data["vcd_network_routed_v2"]["parent"]["id"])
binding1 = vcd.get_nsxt_network_dhcp_binding(org="cloud",
org_network_id=pools.id,
name="Binding-one")
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 {
pools, err := vcd.LookupNsxtNetworkDhcp(ctx, &vcd.LookupNsxtNetworkDhcpArgs{
Org: pulumi.StringRef("cloud"),
OrgNetworkId: data.Vcd_network_routed_v2.Parent.Id,
}, nil)
if err != nil {
return err
}
_, err = vcd.LookupNsxtNetworkDhcpBinding(ctx, &vcd.LookupNsxtNetworkDhcpBindingArgs{
Org: pulumi.StringRef("cloud"),
OrgNetworkId: pools.Id,
Name: "Binding-one",
}, 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 pools = Vcd.GetNsxtNetworkDhcp.Invoke(new()
{
Org = "cloud",
OrgNetworkId = data.Vcd_network_routed_v2.Parent.Id,
});
var binding1 = Vcd.GetNsxtNetworkDhcpBinding.Invoke(new()
{
Org = "cloud",
OrgNetworkId = pools.Apply(getNsxtNetworkDhcpResult => getNsxtNetworkDhcpResult.Id),
Name = "Binding-one",
});
});
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.GetNsxtNetworkDhcpArgs;
import com.pulumi.vcd.inputs.GetNsxtNetworkDhcpBindingArgs;
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 pools = VcdFunctions.getNsxtNetworkDhcp(GetNsxtNetworkDhcpArgs.builder()
.org("cloud")
.orgNetworkId(data.vcd_network_routed_v2().parent().id())
.build());
final var binding1 = VcdFunctions.getNsxtNetworkDhcpBinding(GetNsxtNetworkDhcpBindingArgs.builder()
.org("cloud")
.orgNetworkId(pools.applyValue(getNsxtNetworkDhcpResult -> getNsxtNetworkDhcpResult.id()))
.name("Binding-one")
.build());
}
}
variables:
pools:
fn::invoke:
function: vcd:getNsxtNetworkDhcp
arguments:
org: cloud
orgNetworkId: ${data.vcd_network_routed_v2.parent.id}
binding1:
fn::invoke:
function: vcd:getNsxtNetworkDhcpBinding
arguments:
org: cloud
orgNetworkId: ${pools.id}
name: Binding-one
Using getNsxtNetworkDhcpBinding
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 getNsxtNetworkDhcpBinding(args: GetNsxtNetworkDhcpBindingArgs, opts?: InvokeOptions): Promise<GetNsxtNetworkDhcpBindingResult>
function getNsxtNetworkDhcpBindingOutput(args: GetNsxtNetworkDhcpBindingOutputArgs, opts?: InvokeOptions): Output<GetNsxtNetworkDhcpBindingResult>def get_nsxt_network_dhcp_binding(id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
org_network_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxtNetworkDhcpBindingResult
def get_nsxt_network_dhcp_binding_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
org_network_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxtNetworkDhcpBindingResult]func LookupNsxtNetworkDhcpBinding(ctx *Context, args *LookupNsxtNetworkDhcpBindingArgs, opts ...InvokeOption) (*LookupNsxtNetworkDhcpBindingResult, error)
func LookupNsxtNetworkDhcpBindingOutput(ctx *Context, args *LookupNsxtNetworkDhcpBindingOutputArgs, opts ...InvokeOption) LookupNsxtNetworkDhcpBindingResultOutput> Note: This function is named LookupNsxtNetworkDhcpBinding in the Go SDK.
public static class GetNsxtNetworkDhcpBinding
{
public static Task<GetNsxtNetworkDhcpBindingResult> InvokeAsync(GetNsxtNetworkDhcpBindingArgs args, InvokeOptions? opts = null)
public static Output<GetNsxtNetworkDhcpBindingResult> Invoke(GetNsxtNetworkDhcpBindingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNsxtNetworkDhcpBindingResult> getNsxtNetworkDhcpBinding(GetNsxtNetworkDhcpBindingArgs args, InvokeOptions options)
public static Output<GetNsxtNetworkDhcpBindingResult> getNsxtNetworkDhcpBinding(GetNsxtNetworkDhcpBindingArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxtNetworkDhcpBinding:getNsxtNetworkDhcpBinding
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- A name of DHCP binding
- Org
Network stringId - The ID of an Org VDC network. Note
.idfield ofvcd.NetworkIsolatedV2,vcd.NetworkRoutedV2orvcd.NsxtNetworkDhcpcan be referenced here - Id string
- Org string
- The name of organization. Optional if defined at provider level
- Name string
- A name of DHCP binding
- Org
Network stringId - The ID of an Org VDC network. Note
.idfield ofvcd.NetworkIsolatedV2,vcd.NetworkRoutedV2orvcd.NsxtNetworkDhcpcan be referenced here - Id string
- Org string
- The name of organization. Optional if defined at provider level
- name String
- A name of DHCP binding
- org
Network StringId - The ID of an Org VDC network. Note
.idfield ofvcd.NetworkIsolatedV2,vcd.NetworkRoutedV2orvcd.NsxtNetworkDhcpcan be referenced here - id String
- org String
- The name of organization. Optional if defined at provider level
- name string
- A name of DHCP binding
- org
Network stringId - The ID of an Org VDC network. Note
.idfield ofvcd.NetworkIsolatedV2,vcd.NetworkRoutedV2orvcd.NsxtNetworkDhcpcan be referenced here - id string
- org string
- The name of organization. Optional if defined at provider level
- name str
- A name of DHCP binding
- org_
network_ strid - The ID of an Org VDC network. Note
.idfield ofvcd.NetworkIsolatedV2,vcd.NetworkRoutedV2orvcd.NsxtNetworkDhcpcan be referenced here - id str
- org str
- The name of organization. Optional if defined at provider level
- name String
- A name of DHCP binding
- org
Network StringId - The ID of an Org VDC network. Note
.idfield ofvcd.NetworkIsolatedV2,vcd.NetworkRoutedV2orvcd.NsxtNetworkDhcpcan be referenced here - id String
- org String
- The name of organization. Optional if defined at provider level
getNsxtNetworkDhcpBinding Result
The following output properties are available:
- Binding
Type string - Description string
- Dhcp
V4Configs List<GetNsxt Network Dhcp Binding Dhcp V4Config> - Dhcp
V6Configs List<GetNsxt Network Dhcp Binding Dhcp V6Config> - Dns
Servers List<string> - Id string
- Ip
Address string - Lease
Time double - Mac
Address string - Name string
- Org
Network stringId - Org string
- Binding
Type string - Description string
- Dhcp
V4Configs []GetNsxt Network Dhcp Binding Dhcp V4Config - Dhcp
V6Configs []GetNsxt Network Dhcp Binding Dhcp V6Config - Dns
Servers []string - Id string
- Ip
Address string - Lease
Time float64 - Mac
Address string - Name string
- Org
Network stringId - Org string
- binding
Type String - description String
- dhcp
V4Configs List<GetNsxt Network Dhcp Binding Dhcp V4Config> - dhcp
V6Configs List<GetNsxt Network Dhcp Binding Dhcp V6Config> - dns
Servers List<String> - id String
- ip
Address String - lease
Time Double - mac
Address String - name String
- org
Network StringId - org String
- binding
Type string - description string
- dhcp
V4Configs GetNsxt Network Dhcp Binding Dhcp V4Config[] - dhcp
V6Configs GetNsxt Network Dhcp Binding Dhcp V6Config[] - dns
Servers string[] - id string
- ip
Address string - lease
Time number - mac
Address string - name string
- org
Network stringId - org string
- binding_
type str - description str
- dhcp_
v4_ Sequence[Getconfigs Nsxt Network Dhcp Binding Dhcp V4Config] - dhcp_
v6_ Sequence[Getconfigs Nsxt Network Dhcp Binding Dhcp V6Config] - dns_
servers Sequence[str] - id str
- ip_
address str - lease_
time float - mac_
address str - name str
- org_
network_ strid - org str
- binding
Type String - description String
- dhcp
V4Configs List<Property Map> - dhcp
V6Configs List<Property Map> - dns
Servers List<String> - id String
- ip
Address String - lease
Time Number - mac
Address String - name String
- org
Network StringId - org String
Supporting Types
GetNsxtNetworkDhcpBindingDhcpV4Config
- Gateway
Ip stringAddress - Hostname string
- Gateway
Ip stringAddress - Hostname string
- gateway
Ip StringAddress - hostname String
- gateway
Ip stringAddress - hostname string
- gateway_
ip_ straddress - hostname str
- gateway
Ip StringAddress - hostname String
GetNsxtNetworkDhcpBindingDhcpV6Config
- Dns
Servers List<string> - Sntp
Servers List<string>
- Dns
Servers []string - Sntp
Servers []string
- dns
Servers List<String> - sntp
Servers List<String>
- dns
Servers string[] - sntp
Servers string[]
- dns_
servers Sequence[str] - sntp_
servers Sequence[str]
- dns
Servers List<String> - sntp
Servers List<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
