1. Packages
  2. Nsxt Provider
  3. API Docs
  4. VpcDhcpV4StaticBinding
nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware

nsxt.VpcDhcpV4StaticBinding

Explore with Pulumi AI

nsxt logo
nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware

    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:

    DisplayName string
    Display name for this resource
    ParentPath string
    Policy path of the parent
    Description string
    Description for this resource
    GatewayAddress string
    HostName string
    IpAddress string
    LeaseTime double
    MacAddress string
    NsxId string
    NSX ID for this resource
    Options VpcDhcpV4StaticBindingOptions
    Tags List<VpcDhcpV4StaticBindingTag>
    Set of opaque identifiers meaningful to the user
    VpcDhcpV4StaticBindingId string
    DisplayName string
    Display name for this resource
    ParentPath string
    Policy path of the parent
    Description string
    Description for this resource
    GatewayAddress string
    HostName string
    IpAddress string
    LeaseTime float64
    MacAddress string
    NsxId string
    NSX ID for this resource
    Options VpcDhcpV4StaticBindingOptionsArgs
    Tags []VpcDhcpV4StaticBindingTagArgs
    Set of opaque identifiers meaningful to the user
    VpcDhcpV4StaticBindingId string
    displayName String
    Display name for this resource
    parentPath String
    Policy path of the parent
    description String
    Description for this resource
    gatewayAddress String
    hostName String
    ipAddress String
    leaseTime Double
    macAddress String
    nsxId String
    NSX ID for this resource
    options VpcDhcpV4StaticBindingOptions
    tags List<VpcDhcpV4StaticBindingTag>
    Set of opaque identifiers meaningful to the user
    vpcDhcpV4StaticBindingId String
    displayName string
    Display name for this resource
    parentPath string
    Policy path of the parent
    description string
    Description for this resource
    gatewayAddress string
    hostName string
    ipAddress string
    leaseTime number
    macAddress string
    nsxId string
    NSX ID for this resource
    options VpcDhcpV4StaticBindingOptions
    tags VpcDhcpV4StaticBindingTag[]
    Set of opaque identifiers meaningful to the user
    vpcDhcpV4StaticBindingId string
    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 VpcDhcpV4StaticBindingOptionsArgs
    tags Sequence[VpcDhcpV4StaticBindingTagArgs]
    Set of opaque identifiers meaningful to the user
    vpc_dhcp_v4_static_binding_id str
    displayName String
    Display name for this resource
    parentPath String
    Policy path of the parent
    description String
    Description for this resource
    gatewayAddress String
    hostName String
    ipAddress String
    leaseTime Number
    macAddress String
    nsxId String
    NSX ID for this resource
    options Property Map
    tags List<Property Map>
    Set of opaque identifiers meaningful to the user
    vpcDhcpV4StaticBindingId String

    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.
    The following state arguments are supported:
    Description string
    Description for this resource
    DisplayName string
    Display name for this resource
    GatewayAddress string
    HostName string
    IpAddress string
    LeaseTime double
    MacAddress string
    NsxId string
    NSX ID for this resource
    Options VpcDhcpV4StaticBindingOptions
    ParentPath 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
    Tags List<VpcDhcpV4StaticBindingTag>
    Set of opaque identifiers meaningful to the user
    VpcDhcpV4StaticBindingId string
    Description string
    Description for this resource
    DisplayName string
    Display name for this resource
    GatewayAddress string
    HostName string
    IpAddress string
    LeaseTime float64
    MacAddress string
    NsxId string
    NSX ID for this resource
    Options VpcDhcpV4StaticBindingOptionsArgs
    ParentPath 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
    Tags []VpcDhcpV4StaticBindingTagArgs
    Set of opaque identifiers meaningful to the user
    VpcDhcpV4StaticBindingId string
    description String
    Description for this resource
    displayName String
    Display name for this resource
    gatewayAddress String
    hostName String
    ipAddress String
    leaseTime Double
    macAddress String
    nsxId String
    NSX ID for this resource
    options VpcDhcpV4StaticBindingOptions
    parentPath 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
    tags List<VpcDhcpV4StaticBindingTag>
    Set of opaque identifiers meaningful to the user
    vpcDhcpV4StaticBindingId String
    description string
    Description for this resource
    displayName string
    Display name for this resource
    gatewayAddress string
    hostName string
    ipAddress string
    leaseTime number
    macAddress string
    nsxId string
    NSX ID for this resource
    options VpcDhcpV4StaticBindingOptions
    parentPath 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
    tags VpcDhcpV4StaticBindingTag[]
    Set of opaque identifiers meaningful to the user
    vpcDhcpV4StaticBindingId string
    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 VpcDhcpV4StaticBindingOptionsArgs
    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
    tags Sequence[VpcDhcpV4StaticBindingTagArgs]
    Set of opaque identifiers meaningful to the user
    vpc_dhcp_v4_static_binding_id str
    description String
    Description for this resource
    displayName String
    Display name for this resource
    gatewayAddress String
    hostName String
    ipAddress String
    leaseTime Number
    macAddress String
    nsxId String
    NSX ID for this resource
    options Property Map
    parentPath 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
    tags List<Property Map>
    Set of opaque identifiers meaningful to the user
    vpcDhcpV4StaticBindingId String

    Supporting Types

    VpcDhcpV4StaticBindingOptions, VpcDhcpV4StaticBindingOptionsArgs

    VpcDhcpV4StaticBindingOptionsOption121, VpcDhcpV4StaticBindingOptionsOption121Args

    VpcDhcpV4StaticBindingOptionsOption121StaticRoute, VpcDhcpV4StaticBindingOptionsOption121StaticRouteArgs

    Network string
    NextHop string
    Network string
    NextHop string
    network String
    nextHop String
    network string
    nextHop string
    network String
    nextHop String

    VpcDhcpV4StaticBindingOptionsOther, VpcDhcpV4StaticBindingOptionsOtherArgs

    Code double
    Values List<string>
    Code float64
    Values []string
    code Double
    values List<String>
    code number
    values string[]
    code float
    values Sequence[str]
    code Number
    values List<String>

    VpcDhcpV4StaticBindingTag, VpcDhcpV4StaticBindingTagArgs

    Scope string
    Tag string
    Scope string
    Tag string
    scope String
    tag String
    scope string
    tag string
    scope str
    tag str
    scope String
    tag String

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.9.0 published on Friday, Jun 20, 2025 by vmware