vcd.NsxtNetworkDhcp
Explore with Pulumi AI
Create NsxtNetworkDhcp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsxtNetworkDhcp(name: string, args: NsxtNetworkDhcpArgs, opts?: CustomResourceOptions);
@overload
def NsxtNetworkDhcp(resource_name: str,
args: NsxtNetworkDhcpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NsxtNetworkDhcp(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_network_id: Optional[str] = None,
dns_servers: Optional[Sequence[str]] = None,
lease_time: Optional[float] = None,
listener_ip_address: Optional[str] = None,
mode: Optional[str] = None,
nsxt_network_dhcp_id: Optional[str] = None,
org: Optional[str] = None,
pools: Optional[Sequence[NsxtNetworkDhcpPoolArgs]] = None,
vdc: Optional[str] = None)
func NewNsxtNetworkDhcp(ctx *Context, name string, args NsxtNetworkDhcpArgs, opts ...ResourceOption) (*NsxtNetworkDhcp, error)
public NsxtNetworkDhcp(string name, NsxtNetworkDhcpArgs args, CustomResourceOptions? opts = null)
public NsxtNetworkDhcp(String name, NsxtNetworkDhcpArgs args)
public NsxtNetworkDhcp(String name, NsxtNetworkDhcpArgs args, CustomResourceOptions options)
type: vcd:NsxtNetworkDhcp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NsxtNetworkDhcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NsxtNetworkDhcpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NsxtNetworkDhcpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsxtNetworkDhcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsxtNetworkDhcpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nsxtNetworkDhcpResource = new Vcd.NsxtNetworkDhcp("nsxtNetworkDhcpResource", new()
{
OrgNetworkId = "string",
DnsServers = new[]
{
"string",
},
LeaseTime = 0,
ListenerIpAddress = "string",
Mode = "string",
NsxtNetworkDhcpId = "string",
Org = "string",
Pools = new[]
{
new Vcd.Inputs.NsxtNetworkDhcpPoolArgs
{
EndAddress = "string",
StartAddress = "string",
},
},
});
example, err := vcd.NewNsxtNetworkDhcp(ctx, "nsxtNetworkDhcpResource", &vcd.NsxtNetworkDhcpArgs{
OrgNetworkId: pulumi.String("string"),
DnsServers: pulumi.StringArray{
pulumi.String("string"),
},
LeaseTime: pulumi.Float64(0),
ListenerIpAddress: pulumi.String("string"),
Mode: pulumi.String("string"),
NsxtNetworkDhcpId: pulumi.String("string"),
Org: pulumi.String("string"),
Pools: vcd.NsxtNetworkDhcpPoolArray{
&vcd.NsxtNetworkDhcpPoolArgs{
EndAddress: pulumi.String("string"),
StartAddress: pulumi.String("string"),
},
},
})
var nsxtNetworkDhcpResource = new NsxtNetworkDhcp("nsxtNetworkDhcpResource", NsxtNetworkDhcpArgs.builder()
.orgNetworkId("string")
.dnsServers("string")
.leaseTime(0)
.listenerIpAddress("string")
.mode("string")
.nsxtNetworkDhcpId("string")
.org("string")
.pools(NsxtNetworkDhcpPoolArgs.builder()
.endAddress("string")
.startAddress("string")
.build())
.build());
nsxt_network_dhcp_resource = vcd.NsxtNetworkDhcp("nsxtNetworkDhcpResource",
org_network_id="string",
dns_servers=["string"],
lease_time=0,
listener_ip_address="string",
mode="string",
nsxt_network_dhcp_id="string",
org="string",
pools=[{
"end_address": "string",
"start_address": "string",
}])
const nsxtNetworkDhcpResource = new vcd.NsxtNetworkDhcp("nsxtNetworkDhcpResource", {
orgNetworkId: "string",
dnsServers: ["string"],
leaseTime: 0,
listenerIpAddress: "string",
mode: "string",
nsxtNetworkDhcpId: "string",
org: "string",
pools: [{
endAddress: "string",
startAddress: "string",
}],
});
type: vcd:NsxtNetworkDhcp
properties:
dnsServers:
- string
leaseTime: 0
listenerIpAddress: string
mode: string
nsxtNetworkDhcpId: string
org: string
orgNetworkId: string
pools:
- endAddress: string
startAddress: string
NsxtNetworkDhcp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NsxtNetworkDhcp resource accepts the following input properties:
- Org
Network stringId - ID of parent Org VDC Routed network.
- Dns
Servers List<string> - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- Lease
Time double - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- Listener
Ip stringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - Mode string
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- Nsxt
Network stringDhcp Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Pools
List<Nsxt
Network Dhcp Pool> - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - Vdc string
- The name of VDC to use, optional if defined at provider level
- Org
Network stringId - ID of parent Org VDC Routed network.
- Dns
Servers []string - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- Lease
Time float64 - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- Listener
Ip stringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - Mode string
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- Nsxt
Network stringDhcp Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Pools
[]Nsxt
Network Dhcp Pool Args - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - Vdc string
- The name of VDC to use, optional if defined at provider level
- org
Network StringId - ID of parent Org VDC Routed network.
- dns
Servers List<String> - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease
Time Double - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener
Ip StringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode String
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt
Network StringDhcp Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- pools
List<Nsxt
Network Dhcp Pool> - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc String
- The name of VDC to use, optional if defined at provider level
- org
Network stringId - ID of parent Org VDC Routed network.
- dns
Servers string[] - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease
Time number - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener
Ip stringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode string
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt
Network stringDhcp Id - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- pools
Nsxt
Network Dhcp Pool[] - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc string
- The name of VDC to use, optional if defined at provider level
- org_
network_ strid - ID of parent Org VDC Routed network.
- dns_
servers Sequence[str] - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease_
time float - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener_
ip_ straddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode str
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt_
network_ strdhcp_ id - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- pools
Sequence[Nsxt
Network Dhcp Pool Args] - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc str
- The name of VDC to use, optional if defined at provider level
- org
Network StringId - ID of parent Org VDC Routed network.
- dns
Servers List<String> - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease
Time Number - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener
Ip StringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode String
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt
Network StringDhcp Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- pools List<Property Map>
- One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc String
- The name of VDC to use, optional if defined at provider level
Outputs
All input properties are implicitly available as output properties. Additionally, the NsxtNetworkDhcp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NsxtNetworkDhcp Resource
Get an existing NsxtNetworkDhcp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NsxtNetworkDhcpState, opts?: CustomResourceOptions): NsxtNetworkDhcp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dns_servers: Optional[Sequence[str]] = None,
lease_time: Optional[float] = None,
listener_ip_address: Optional[str] = None,
mode: Optional[str] = None,
nsxt_network_dhcp_id: Optional[str] = None,
org: Optional[str] = None,
org_network_id: Optional[str] = None,
pools: Optional[Sequence[NsxtNetworkDhcpPoolArgs]] = None,
vdc: Optional[str] = None) -> NsxtNetworkDhcp
func GetNsxtNetworkDhcp(ctx *Context, name string, id IDInput, state *NsxtNetworkDhcpState, opts ...ResourceOption) (*NsxtNetworkDhcp, error)
public static NsxtNetworkDhcp Get(string name, Input<string> id, NsxtNetworkDhcpState? state, CustomResourceOptions? opts = null)
public static NsxtNetworkDhcp get(String name, Output<String> id, NsxtNetworkDhcpState state, CustomResourceOptions options)
resources: _: type: vcd:NsxtNetworkDhcp get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Dns
Servers List<string> - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- Lease
Time double - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- Listener
Ip stringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - Mode string
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- Nsxt
Network stringDhcp Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Org
Network stringId - ID of parent Org VDC Routed network.
- Pools
List<Nsxt
Network Dhcp Pool> - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - Vdc string
- The name of VDC to use, optional if defined at provider level
- Dns
Servers []string - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- Lease
Time float64 - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- Listener
Ip stringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - Mode string
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- Nsxt
Network stringDhcp Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Org
Network stringId - ID of parent Org VDC Routed network.
- Pools
[]Nsxt
Network Dhcp Pool Args - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - Vdc string
- The name of VDC to use, optional if defined at provider level
- dns
Servers List<String> - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease
Time Double - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener
Ip StringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode String
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt
Network StringDhcp Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org
Network StringId - ID of parent Org VDC Routed network.
- pools
List<Nsxt
Network Dhcp Pool> - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc String
- The name of VDC to use, optional if defined at provider level
- dns
Servers string[] - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease
Time number - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener
Ip stringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode string
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt
Network stringDhcp Id - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org
Network stringId - ID of parent Org VDC Routed network.
- pools
Nsxt
Network Dhcp Pool[] - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc string
- The name of VDC to use, optional if defined at provider level
- dns_
servers Sequence[str] - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease_
time float - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener_
ip_ straddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode str
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt_
network_ strdhcp_ id - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org_
network_ strid - ID of parent Org VDC Routed network.
- pools
Sequence[Nsxt
Network Dhcp Pool Args] - One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc str
- The name of VDC to use, optional if defined at provider level
- dns
Servers List<String> - The DNS server IPs to be assigned by this DHCP service. Maximum two values.
- lease
Time Number - Lease time in seconds. Minimum value is 60s and maximum is 4294967295s (~ 49 days).
- listener
Ip StringAddress - IP address of DHCP server in network. Must match
subnet. Only used when
mode=NETWORK
. - mode String
- One of
EDGE
,NETWORK
orRELAY
. Default isEDGE
EDGE
can be used with Routed Org VDC networks.NETWORK
can be used for Isolated and Routed Org VDC networks. It requireslistener_ip_address
to be set and Edge Cluster must be assigned to VDC.RELAY
can be used with Routed Org VDC networks, but requires DHCP forwarding configuration in NSX-T Edge Gateway.
- nsxt
Network StringDhcp Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- org
Network StringId - ID of parent Org VDC Routed network.
- pools List<Property Map>
- One or more blocks to define DHCP pool ranges. Must not be set when
mode=RELAY
. See Pools and example for usage details. - vdc String
- The name of VDC to use, optional if defined at provider level
Supporting Types
NsxtNetworkDhcpPool, NsxtNetworkDhcpPoolArgs
- End
Address string - End address of DHCP pool IP range
- Start
Address string - Start address of DHCP pool IP range
- End
Address string - End address of DHCP pool IP range
- Start
Address string - Start address of DHCP pool IP range
- end
Address String - End address of DHCP pool IP range
- start
Address String - Start address of DHCP pool IP range
- end
Address string - End address of DHCP pool IP range
- start
Address string - Start address of DHCP pool IP range
- end_
address str - End address of DHCP pool IP range
- start_
address str - Start address of DHCP pool IP range
- end
Address String - End address of DHCP pool IP range
- start
Address String - Start address of DHCP pool IP range
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.