System Administration > Configuration > Fabric > Nodes > Fabric Nodes

Register and Install NSX Components on a Node (Deprecated)

Creates a host node (hypervisor) or edge node (router) in the transport
network.

When you run this command for a host, NSX Manager attempts to install the
NSX kernel modules, which are packaged as VIB, RPM, or DEB files. For the
installation to succeed, you must provide the host login credentials and the
host thumbprint.

To get the ESXi host thumbprint, SSH to the host and run the
openssl x509 -in /etc/vmware/ssl/rui.crt -fingerprint -sha256 -noout
command.

To generate host key thumbprint using SHA-256 algorithm please follow the
steps below.

Log into the host, making sure that the connection is not vulnerable to a
man in the middle attack. Check whether a public key already exists.
Host public key is generally located at '/etc/ssh/ssh_host_rsa_key.pub'.
If the key is not present then generate a new key by running the following
command and follow the instructions.

ssh-keygen -t rsa

Now generate a SHA256 hash of the key using the following command. Please
make sure to pass the appropriate file name if the public key is stored with
a different file name other than the default 'id_rsa.pub'.

awk '{print $2}' id_rsa.pub | base64 -d | sha256sum -b | sed 's/ .*$//' | xxd -r -p | base64
This api is deprecated as part of FN+TN unification. Please use Transport Node API
POST /transport-nodes to install NSX components on a node.

Request:

Method:
POST
URI Path(s):
/api/v1/fabric/nodes
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
EdgeNode+
HostNode+
Node+
PublicCloudGatewayNode+

Example Request:

POST https://<nsx-mgr>/api/v1/fabric/nodes { "resource_type": "HostNode", "display_name": "Host ABC123", "ip_addresses": [ "192.168.210.54" ], "os_type": "ESXI", "os_version": "6.0.0", "host_credential": { "username": "user1", "password": "password", "thumbprint": "3b1f4f3b636569d648a3092fc5b5b00fe4f6ec6abd34de86ae657f4bba22913e" } }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
EdgeNode+
HostNode+
Node+
PublicCloudGatewayNode+

Example Response:

{ "resource_type": "HostNode", "display_name": "Host ABC123", "fqdn": "host-abc-123.eng.abc.com", "id": "cf1f01db-e5b3-4688-9c1e-5f47d335fb01", "ip_addresses": [ "192.168.210.54" ], "external_id": "cf1f01db-e5b3-4688-9c1e-5f47d335fb01", "discovered_ip_addresses": [ "192.168.210.54" ], "os_type": "ESXI", "os_version": "6.0.0", "managed_by_server": "192.168.110.24", "_create_time": 1446577081344, "_last_modified_user": "admin", "_last_modified_time": 1446577081344, "_create_user": "admin", "_revision": 0 }

Required Permissions:

crud

Feature:

nodes_nodes

Additional Errors: