nsxt.VpcDhcpV4StaticBinding
Explore with Pulumi AI
Create VpcDhcpV4StaticBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcDhcpV4StaticBinding(name: string, args: VpcDhcpV4StaticBindingArgs, opts?: CustomResourceOptions);
@overload
def VpcDhcpV4StaticBinding(resource_name: str,
args: VpcDhcpV4StaticBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcDhcpV4StaticBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
parent_path: Optional[str] = None,
description: Optional[str] = None,
gateway_address: Optional[str] = None,
host_name: Optional[str] = None,
ip_address: Optional[str] = None,
lease_time: Optional[float] = None,
mac_address: Optional[str] = None,
nsx_id: Optional[str] = None,
options: Optional[VpcDhcpV4StaticBindingOptionsArgs] = None,
tags: Optional[Sequence[VpcDhcpV4StaticBindingTagArgs]] = None,
vpc_dhcp_v4_static_binding_id: Optional[str] = None)
func NewVpcDhcpV4StaticBinding(ctx *Context, name string, args VpcDhcpV4StaticBindingArgs, opts ...ResourceOption) (*VpcDhcpV4StaticBinding, error)
public VpcDhcpV4StaticBinding(string name, VpcDhcpV4StaticBindingArgs args, CustomResourceOptions? opts = null)
public VpcDhcpV4StaticBinding(String name, VpcDhcpV4StaticBindingArgs args)
public VpcDhcpV4StaticBinding(String name, VpcDhcpV4StaticBindingArgs args, CustomResourceOptions options)
type: nsxt:VpcDhcpV4StaticBinding
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 VpcDhcpV4StaticBindingArgs
- 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 VpcDhcpV4StaticBindingArgs
- 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 VpcDhcpV4StaticBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcDhcpV4StaticBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcDhcpV4StaticBindingArgs
- 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 vpcDhcpV4StaticBindingResource = new Nsxt.VpcDhcpV4StaticBinding("vpcDhcpV4StaticBindingResource", new()
{
DisplayName = "string",
ParentPath = "string",
Description = "string",
GatewayAddress = "string",
HostName = "string",
IpAddress = "string",
LeaseTime = 0,
MacAddress = "string",
NsxId = "string",
Options = new Nsxt.Inputs.VpcDhcpV4StaticBindingOptionsArgs
{
Option121 = new Nsxt.Inputs.VpcDhcpV4StaticBindingOptionsOption121Args
{
StaticRoutes = new[]
{
new Nsxt.Inputs.VpcDhcpV4StaticBindingOptionsOption121StaticRouteArgs
{
Network = "string",
NextHop = "string",
},
},
},
Others = new[]
{
new Nsxt.Inputs.VpcDhcpV4StaticBindingOptionsOtherArgs
{
Code = 0,
Values = new[]
{
"string",
},
},
},
},
Tags = new[]
{
new Nsxt.Inputs.VpcDhcpV4StaticBindingTagArgs
{
Scope = "string",
Tag = "string",
},
},
VpcDhcpV4StaticBindingId = "string",
});
example, err := nsxt.NewVpcDhcpV4StaticBinding(ctx, "vpcDhcpV4StaticBindingResource", &nsxt.VpcDhcpV4StaticBindingArgs{
DisplayName: pulumi.String("string"),
ParentPath: pulumi.String("string"),
Description: pulumi.String("string"),
GatewayAddress: pulumi.String("string"),
HostName: pulumi.String("string"),
IpAddress: pulumi.String("string"),
LeaseTime: pulumi.Float64(0),
MacAddress: pulumi.String("string"),
NsxId: pulumi.String("string"),
Options: &nsxt.VpcDhcpV4StaticBindingOptionsArgs{
Option121: &nsxt.VpcDhcpV4StaticBindingOptionsOption121Args{
StaticRoutes: nsxt.VpcDhcpV4StaticBindingOptionsOption121StaticRouteArray{
&nsxt.VpcDhcpV4StaticBindingOptionsOption121StaticRouteArgs{
Network: pulumi.String("string"),
NextHop: pulumi.String("string"),
},
},
},
Others: nsxt.VpcDhcpV4StaticBindingOptionsOtherArray{
&nsxt.VpcDhcpV4StaticBindingOptionsOtherArgs{
Code: pulumi.Float64(0),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Tags: nsxt.VpcDhcpV4StaticBindingTagArray{
&nsxt.VpcDhcpV4StaticBindingTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
VpcDhcpV4StaticBindingId: pulumi.String("string"),
})
var vpcDhcpV4StaticBindingResource = new VpcDhcpV4StaticBinding("vpcDhcpV4StaticBindingResource", VpcDhcpV4StaticBindingArgs.builder()
.displayName("string")
.parentPath("string")
.description("string")
.gatewayAddress("string")
.hostName("string")
.ipAddress("string")
.leaseTime(0.0)
.macAddress("string")
.nsxId("string")
.options(VpcDhcpV4StaticBindingOptionsArgs.builder()
.option121(VpcDhcpV4StaticBindingOptionsOption121Args.builder()
.staticRoutes(VpcDhcpV4StaticBindingOptionsOption121StaticRouteArgs.builder()
.network("string")
.nextHop("string")
.build())
.build())
.others(VpcDhcpV4StaticBindingOptionsOtherArgs.builder()
.code(0.0)
.values("string")
.build())
.build())
.tags(VpcDhcpV4StaticBindingTagArgs.builder()
.scope("string")
.tag("string")
.build())
.vpcDhcpV4StaticBindingId("string")
.build());
vpc_dhcp_v4_static_binding_resource = nsxt.VpcDhcpV4StaticBinding("vpcDhcpV4StaticBindingResource",
display_name="string",
parent_path="string",
description="string",
gateway_address="string",
host_name="string",
ip_address="string",
lease_time=0,
mac_address="string",
nsx_id="string",
options={
"option121": {
"static_routes": [{
"network": "string",
"next_hop": "string",
}],
},
"others": [{
"code": 0,
"values": ["string"],
}],
},
tags=[{
"scope": "string",
"tag": "string",
}],
vpc_dhcp_v4_static_binding_id="string")
const vpcDhcpV4StaticBindingResource = new nsxt.VpcDhcpV4StaticBinding("vpcDhcpV4StaticBindingResource", {
displayName: "string",
parentPath: "string",
description: "string",
gatewayAddress: "string",
hostName: "string",
ipAddress: "string",
leaseTime: 0,
macAddress: "string",
nsxId: "string",
options: {
option121: {
staticRoutes: [{
network: "string",
nextHop: "string",
}],
},
others: [{
code: 0,
values: ["string"],
}],
},
tags: [{
scope: "string",
tag: "string",
}],
vpcDhcpV4StaticBindingId: "string",
});
type: nsxt:VpcDhcpV4StaticBinding
properties:
description: string
displayName: string
gatewayAddress: string
hostName: string
ipAddress: string
leaseTime: 0
macAddress: string
nsxId: string
options:
option121:
staticRoutes:
- network: string
nextHop: string
others:
- code: 0
values:
- string
parentPath: string
tags:
- scope: string
tag: string
vpcDhcpV4StaticBindingId: string
VpcDhcpV4StaticBinding 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 VpcDhcpV4StaticBinding resource accepts the following input properties:
- Display
Name string - Display name for this resource
- Parent
Path string - Policy path of the parent
- Description string
- Description for this resource
- Gateway
Address string - Host
Name string - Ip
Address string - Lease
Time double - Mac
Address string - Nsx
Id string - NSX ID for this resource
- Options
Vpc
Dhcp V4Static Binding Options - List<Vpc
Dhcp V4Static Binding Tag> - Set of opaque identifiers meaningful to the user
- Vpc
Dhcp stringV4Static Binding Id
- Display
Name string - Display name for this resource
- Parent
Path string - Policy path of the parent
- Description string
- Description for this resource
- Gateway
Address string - Host
Name string - Ip
Address string - Lease
Time float64 - Mac
Address string - Nsx
Id string - NSX ID for this resource
- Options
Vpc
Dhcp V4Static Binding Options Args - []Vpc
Dhcp V4Static Binding Tag Args - Set of opaque identifiers meaningful to the user
- Vpc
Dhcp stringV4Static Binding Id
- display
Name String - Display name for this resource
- parent
Path String - Policy path of the parent
- description String
- Description for this resource
- gateway
Address String - host
Name String - ip
Address String - lease
Time Double - mac
Address String - nsx
Id String - NSX ID for this resource
- options
Vpc
Dhcp V4Static Binding Options - List<Vpc
Dhcp V4Static Binding Tag> - Set of opaque identifiers meaningful to the user
- vpc
Dhcp StringV4Static Binding Id
- display
Name string - Display name for this resource
- parent
Path string - Policy path of the parent
- description string
- Description for this resource
- gateway
Address string - host
Name string - ip
Address string - lease
Time number - mac
Address string - nsx
Id string - NSX ID for this resource
- options
Vpc
Dhcp V4Static Binding Options - Vpc
Dhcp V4Static Binding Tag[] - Set of opaque identifiers meaningful to the user
- vpc
Dhcp stringV4Static Binding Id
- display_
name str - Display name for this resource
- parent_
path str - Policy path of the parent
- description str
- Description for this resource
- gateway_
address str - host_
name str - ip_
address str - lease_
time float - mac_
address str - nsx_
id str - NSX ID for this resource
- options
Vpc
Dhcp V4Static Binding Options Args - Sequence[Vpc
Dhcp V4Static Binding Tag Args] - Set of opaque identifiers meaningful to the user
- vpc_
dhcp_ strv4_ static_ binding_ id
- display
Name String - Display name for this resource
- parent
Path String - Policy path of the parent
- description String
- Description for this resource
- gateway
Address String - host
Name String - ip
Address String - lease
Time Number - mac
Address String - nsx
Id String - NSX ID for this resource
- options Property Map
- List<Property Map>
- Set of opaque identifiers meaningful to the user
- vpc
Dhcp StringV4Static Binding Id
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcDhcpV4StaticBinding resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- Policy path for this resource
- Revision double
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- Policy path for this resource
- Revision float64
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- Policy path for this resource
- revision Double
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- Policy path for this resource
- revision number
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- id str
- The provider-assigned unique ID for this managed resource.
- path str
- Policy path for this resource
- revision float
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- Policy path for this resource
- revision Number
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
Look up Existing VpcDhcpV4StaticBinding Resource
Get an existing VpcDhcpV4StaticBinding 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?: VpcDhcpV4StaticBindingState, opts?: CustomResourceOptions): VpcDhcpV4StaticBinding
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
gateway_address: Optional[str] = None,
host_name: Optional[str] = None,
ip_address: Optional[str] = None,
lease_time: Optional[float] = None,
mac_address: Optional[str] = None,
nsx_id: Optional[str] = None,
options: Optional[VpcDhcpV4StaticBindingOptionsArgs] = None,
parent_path: Optional[str] = None,
path: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[VpcDhcpV4StaticBindingTagArgs]] = None,
vpc_dhcp_v4_static_binding_id: Optional[str] = None) -> VpcDhcpV4StaticBinding
func GetVpcDhcpV4StaticBinding(ctx *Context, name string, id IDInput, state *VpcDhcpV4StaticBindingState, opts ...ResourceOption) (*VpcDhcpV4StaticBinding, error)
public static VpcDhcpV4StaticBinding Get(string name, Input<string> id, VpcDhcpV4StaticBindingState? state, CustomResourceOptions? opts = null)
public static VpcDhcpV4StaticBinding get(String name, Output<String> id, VpcDhcpV4StaticBindingState state, CustomResourceOptions options)
resources: _: type: nsxt:VpcDhcpV4StaticBinding 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.
- Description string
- Description for this resource
- Display
Name string - Display name for this resource
- Gateway
Address string - Host
Name string - Ip
Address string - Lease
Time double - Mac
Address string - Nsx
Id string - NSX ID for this resource
- Options
Vpc
Dhcp V4Static Binding Options - Parent
Path string - Policy path of the parent
- Path string
- Policy path for this resource
- Revision double
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- List<Vpc
Dhcp V4Static Binding Tag> - Set of opaque identifiers meaningful to the user
- Vpc
Dhcp stringV4Static Binding Id
- Description string
- Description for this resource
- Display
Name string - Display name for this resource
- Gateway
Address string - Host
Name string - Ip
Address string - Lease
Time float64 - Mac
Address string - Nsx
Id string - NSX ID for this resource
- Options
Vpc
Dhcp V4Static Binding Options Args - Parent
Path string - Policy path of the parent
- Path string
- Policy path for this resource
- Revision float64
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- []Vpc
Dhcp V4Static Binding Tag Args - Set of opaque identifiers meaningful to the user
- Vpc
Dhcp stringV4Static Binding Id
- description String
- Description for this resource
- display
Name String - Display name for this resource
- gateway
Address String - host
Name String - ip
Address String - lease
Time Double - mac
Address String - nsx
Id String - NSX ID for this resource
- options
Vpc
Dhcp V4Static Binding Options - parent
Path String - Policy path of the parent
- path String
- Policy path for this resource
- revision Double
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- List<Vpc
Dhcp V4Static Binding Tag> - Set of opaque identifiers meaningful to the user
- vpc
Dhcp StringV4Static Binding Id
- description string
- Description for this resource
- display
Name string - Display name for this resource
- gateway
Address string - host
Name string - ip
Address string - lease
Time number - mac
Address string - nsx
Id string - NSX ID for this resource
- options
Vpc
Dhcp V4Static Binding Options - parent
Path string - Policy path of the parent
- path string
- Policy path for this resource
- revision number
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- Vpc
Dhcp V4Static Binding Tag[] - Set of opaque identifiers meaningful to the user
- vpc
Dhcp stringV4Static Binding Id
- description str
- Description for this resource
- display_
name str - Display name for this resource
- gateway_
address str - host_
name str - ip_
address str - lease_
time float - mac_
address str - nsx_
id str - NSX ID for this resource
- options
Vpc
Dhcp V4Static Binding Options Args - parent_
path str - Policy path of the parent
- path str
- Policy path for this resource
- revision float
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- Sequence[Vpc
Dhcp V4Static Binding Tag Args] - Set of opaque identifiers meaningful to the user
- vpc_
dhcp_ strv4_ static_ binding_ id
- description String
- Description for this resource
- display
Name String - Display name for this resource
- gateway
Address String - host
Name String - ip
Address String - lease
Time Number - mac
Address String - nsx
Id String - NSX ID for this resource
- options Property Map
- parent
Path String - Policy path of the parent
- path String
- Policy path for this resource
- revision Number
- The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
- List<Property Map>
- Set of opaque identifiers meaningful to the user
- vpc
Dhcp StringV4Static Binding Id
Supporting Types
VpcDhcpV4StaticBindingOptions, VpcDhcpV4StaticBindingOptionsArgs
VpcDhcpV4StaticBindingOptionsOption121, VpcDhcpV4StaticBindingOptionsOption121Args
VpcDhcpV4StaticBindingOptionsOption121StaticRoute, VpcDhcpV4StaticBindingOptionsOption121StaticRouteArgs
VpcDhcpV4StaticBindingOptionsOther, VpcDhcpV4StaticBindingOptionsOtherArgs
VpcDhcpV4StaticBindingTag, VpcDhcpV4StaticBindingTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.