nsxt.PolicyDhcpServer
Explore with Pulumi AI
Create PolicyDhcpServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyDhcpServer(name: string, args: PolicyDhcpServerArgs, opts?: CustomResourceOptions);
@overload
def PolicyDhcpServer(resource_name: str,
args: PolicyDhcpServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyDhcpServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
context: Optional[PolicyDhcpServerContextArgs] = None,
description: Optional[str] = None,
edge_cluster_path: Optional[str] = None,
lease_time: Optional[float] = None,
nsx_id: Optional[str] = None,
policy_dhcp_server_id: Optional[str] = None,
preferred_edge_paths: Optional[Sequence[str]] = None,
server_addresses: Optional[Sequence[str]] = None,
tags: Optional[Sequence[PolicyDhcpServerTagArgs]] = None)
func NewPolicyDhcpServer(ctx *Context, name string, args PolicyDhcpServerArgs, opts ...ResourceOption) (*PolicyDhcpServer, error)
public PolicyDhcpServer(string name, PolicyDhcpServerArgs args, CustomResourceOptions? opts = null)
public PolicyDhcpServer(String name, PolicyDhcpServerArgs args)
public PolicyDhcpServer(String name, PolicyDhcpServerArgs args, CustomResourceOptions options)
type: nsxt:PolicyDhcpServer
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 PolicyDhcpServerArgs
- 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 PolicyDhcpServerArgs
- 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 PolicyDhcpServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyDhcpServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyDhcpServerArgs
- 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 policyDhcpServerResource = new Nsxt.PolicyDhcpServer("policyDhcpServerResource", new()
{
DisplayName = "string",
Context = new Nsxt.Inputs.PolicyDhcpServerContextArgs
{
ProjectId = "string",
},
Description = "string",
EdgeClusterPath = "string",
LeaseTime = 0,
NsxId = "string",
PolicyDhcpServerId = "string",
PreferredEdgePaths = new[]
{
"string",
},
ServerAddresses = new[]
{
"string",
},
Tags = new[]
{
new Nsxt.Inputs.PolicyDhcpServerTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyDhcpServer(ctx, "policyDhcpServerResource", &nsxt.PolicyDhcpServerArgs{
DisplayName: pulumi.String("string"),
Context: &nsxt.PolicyDhcpServerContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
EdgeClusterPath: pulumi.String("string"),
LeaseTime: pulumi.Float64(0),
NsxId: pulumi.String("string"),
PolicyDhcpServerId: pulumi.String("string"),
PreferredEdgePaths: pulumi.StringArray{
pulumi.String("string"),
},
ServerAddresses: pulumi.StringArray{
pulumi.String("string"),
},
Tags: nsxt.PolicyDhcpServerTagArray{
&nsxt.PolicyDhcpServerTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyDhcpServerResource = new PolicyDhcpServer("policyDhcpServerResource", PolicyDhcpServerArgs.builder()
.displayName("string")
.context(PolicyDhcpServerContextArgs.builder()
.projectId("string")
.build())
.description("string")
.edgeClusterPath("string")
.leaseTime(0)
.nsxId("string")
.policyDhcpServerId("string")
.preferredEdgePaths("string")
.serverAddresses("string")
.tags(PolicyDhcpServerTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_dhcp_server_resource = nsxt.PolicyDhcpServer("policyDhcpServerResource",
display_name="string",
context={
"project_id": "string",
},
description="string",
edge_cluster_path="string",
lease_time=0,
nsx_id="string",
policy_dhcp_server_id="string",
preferred_edge_paths=["string"],
server_addresses=["string"],
tags=[{
"scope": "string",
"tag": "string",
}])
const policyDhcpServerResource = new nsxt.PolicyDhcpServer("policyDhcpServerResource", {
displayName: "string",
context: {
projectId: "string",
},
description: "string",
edgeClusterPath: "string",
leaseTime: 0,
nsxId: "string",
policyDhcpServerId: "string",
preferredEdgePaths: ["string"],
serverAddresses: ["string"],
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyDhcpServer
properties:
context:
projectId: string
description: string
displayName: string
edgeClusterPath: string
leaseTime: 0
nsxId: string
policyDhcpServerId: string
preferredEdgePaths:
- string
serverAddresses:
- string
tags:
- scope: string
tag: string
PolicyDhcpServer 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 PolicyDhcpServer resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Context
Policy
Dhcp Server Context - The context which the object belongs to
- Description string
- Description of the resource.
- Edge
Cluster stringPath - The Policy path to the edge cluster for this DHCP Server.
- Lease
Time double - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Dhcp stringServer Id - ID of the resource.
- Preferred
Edge List<string>Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- Server
Addresses List<string> - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- List<Policy
Dhcp Server Tag> - A list of scope + tag pairs to associate with this resource.
- Display
Name string - Display name of the resource.
- Context
Policy
Dhcp Server Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Edge
Cluster stringPath - The Policy path to the edge cluster for this DHCP Server.
- Lease
Time float64 - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Dhcp stringServer Id - ID of the resource.
- Preferred
Edge []stringPaths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- Server
Addresses []string - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- []Policy
Dhcp Server Tag Args - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- context
Policy
Dhcp Server Context - The context which the object belongs to
- description String
- Description of the resource.
- edge
Cluster StringPath - The Policy path to the edge cluster for this DHCP Server.
- lease
Time Double - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Dhcp StringServer Id - ID of the resource.
- preferred
Edge List<String>Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- server
Addresses List<String> - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- List<Policy
Dhcp Server Tag> - A list of scope + tag pairs to associate with this resource.
- display
Name string - Display name of the resource.
- context
Policy
Dhcp Server Context - The context which the object belongs to
- description string
- Description of the resource.
- edge
Cluster stringPath - The Policy path to the edge cluster for this DHCP Server.
- lease
Time number - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Dhcp stringServer Id - ID of the resource.
- preferred
Edge string[]Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- server
Addresses string[] - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- Policy
Dhcp Server Tag[] - A list of scope + tag pairs to associate with this resource.
- display_
name str - Display name of the resource.
- context
Policy
Dhcp Server Context Args - The context which the object belongs to
- description str
- Description of the resource.
- edge_
cluster_ strpath - The Policy path to the edge cluster for this DHCP Server.
- lease_
time float - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
dhcp_ strserver_ id - ID of the resource.
- preferred_
edge_ Sequence[str]paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- server_
addresses Sequence[str] - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- Sequence[Policy
Dhcp Server Tag Args] - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- edge
Cluster StringPath - The Policy path to the edge cluster for this DHCP Server.
- lease
Time Number - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Dhcp StringServer Id - ID of the resource.
- preferred
Edge List<String>Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- server
Addresses List<String> - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyDhcpServer resource produces the following output properties:
Look up Existing PolicyDhcpServer Resource
Get an existing PolicyDhcpServer 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?: PolicyDhcpServerState, opts?: CustomResourceOptions): PolicyDhcpServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[PolicyDhcpServerContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
edge_cluster_path: Optional[str] = None,
lease_time: Optional[float] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_dhcp_server_id: Optional[str] = None,
preferred_edge_paths: Optional[Sequence[str]] = None,
revision: Optional[float] = None,
server_addresses: Optional[Sequence[str]] = None,
tags: Optional[Sequence[PolicyDhcpServerTagArgs]] = None) -> PolicyDhcpServer
func GetPolicyDhcpServer(ctx *Context, name string, id IDInput, state *PolicyDhcpServerState, opts ...ResourceOption) (*PolicyDhcpServer, error)
public static PolicyDhcpServer Get(string name, Input<string> id, PolicyDhcpServerState? state, CustomResourceOptions? opts = null)
public static PolicyDhcpServer get(String name, Output<String> id, PolicyDhcpServerState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyDhcpServer 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.
- Context
Policy
Dhcp Server Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Edge
Cluster stringPath - The Policy path to the edge cluster for this DHCP Server.
- Lease
Time double - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Dhcp stringServer Id - ID of the resource.
- Preferred
Edge List<string>Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Server
Addresses List<string> - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- List<Policy
Dhcp Server Tag> - A list of scope + tag pairs to associate with this resource.
- Context
Policy
Dhcp Server Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Edge
Cluster stringPath - The Policy path to the edge cluster for this DHCP Server.
- Lease
Time float64 - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Dhcp stringServer Id - ID of the resource.
- Preferred
Edge []stringPaths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Server
Addresses []string - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- []Policy
Dhcp Server Tag Args - A list of scope + tag pairs to associate with this resource.
- context
Policy
Dhcp Server Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- edge
Cluster StringPath - The Policy path to the edge cluster for this DHCP Server.
- lease
Time Double - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Dhcp StringServer Id - ID of the resource.
- preferred
Edge List<String>Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- server
Addresses List<String> - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- List<Policy
Dhcp Server Tag> - A list of scope + tag pairs to associate with this resource.
- context
Policy
Dhcp Server Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- edge
Cluster stringPath - The Policy path to the edge cluster for this DHCP Server.
- lease
Time number - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- policy
Dhcp stringServer Id - ID of the resource.
- preferred
Edge string[]Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- server
Addresses string[] - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- Policy
Dhcp Server Tag[] - A list of scope + tag pairs to associate with this resource.
- context
Policy
Dhcp Server Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- edge_
cluster_ strpath - The Policy path to the edge cluster for this DHCP Server.
- lease_
time float - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- policy_
dhcp_ strserver_ id - ID of the resource.
- preferred_
edge_ Sequence[str]paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- server_
addresses Sequence[str] - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- Sequence[Policy
Dhcp Server Tag Args] - A list of scope + tag pairs to associate with this resource.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- edge
Cluster StringPath - The Policy path to the edge cluster for this DHCP Server.
- lease
Time Number - IP address lease time in seconds. Valid values from
60
to4294967295
. Default is86400
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Dhcp StringServer Id - ID of the resource.
- preferred
Edge List<String>Paths - Policy paths to edge nodes. The first edge node is assigned as active edge, and second one as standby edge.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- server
Addresses List<String> - DHCP server address in CIDR format. At most 2 supported; one IPv4 and one IPv6 address. Server address can also be specified on segment subnet level.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicyDhcpServerContext, PolicyDhcpServerContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicyDhcpServerTag, PolicyDhcpServerTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.