REST API  14
REST API for Luna Network HSMs
PUT /api/lunasa/ntls/bind

PUT /api/lunasa/ntls/bind

Sets the interface for NTLS

Parameters

interface

The identifier for a network interface

Use: Required

JSON Schema:

   Object
   type: string

The following table shows defined values for interface.

Value Description
eth0 Bind to the eth0 device
eth1 Bind to the eth1 device
eth2 Bind to the eth2 device
eth3 Bind to the eth3 device
bond0 Bind to the bond0 interface
bond1 Bind to the bond1 interface
all Bind to all IPv4 devices
all-ipv6 Bind to all IPv6 devices

Default: all (0.0.0.0). This will bind to all IPv4 devices.

Note: The interface provided for binding should be active. Binding the NTLS service with an inactive interface isn't possible through REST API. Doing so will result an error for invalid interface.

Responses

204

Success

400

Invalid interface

404

Interface does not exist.

Example Request

   PUT
   https://1.2.3.4:8443/api/lunasa/ntls/bind
   {
      "interface" : "eth1"
   }

Example Result

{
}

See Also

GET /api/lunasa/ntls/bind