Add Node
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
{
"_self": {
"rel": "string"
},
"_system_owned": false,
"display_name": "string",
"description": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"_revision": 0,
"ip_addresses": [
"string"
],
"_create_user": "string",
"fqdn": "string",
"_schema": "string",
"_create_time": 0,
"discovered_ip_addresses": [
"string"
],
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_last_modified_time": 0,
"_last_modified_user": "string",
"external_id": "string",
"id": "string",
"resource_type": "string"
}
Indicates system owned resource
Defaults to ID if not set
description
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.
IPv4 or IPv6 address
ID of the user who created this resource
fqdn
_schema
Timestamp of resource creation
IPv4 or IPv6 address
The server will populate this field when returing the resource. Ignored on PUT and POST.
Timestamp of last modification
ID of the user who last modified this resource
external_id
id
resource_type
Resource created successfully
{
"_self": {
"rel": "string"
},
"_system_owned": false,
"display_name": "string",
"description": "string",
"tags": [
{
"scope": "string",
"tag": "string"
}
],
"_revision": 0,
"ip_addresses": [
"string"
],
"_create_user": "string",
"fqdn": "string",
"_schema": "string",
"_create_time": 0,
"discovered_ip_addresses": [
"string"
],
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_last_modified_time": 0,
"_last_modified_user": "string",
"external_id": "string",
"id": "string",
"resource_type": "string"
}
Indicates system owned resource
Defaults to ID if not set
description
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.
IPv4 or IPv6 address
ID of the user who created this resource
fqdn
_schema
Timestamp of resource creation
IPv4 or IPv6 address
The server will populate this field when returing the resource. Ignored on PUT and POST.
Timestamp of last modification
ID of the user who last modified this resource
external_id
id
resource_type
Unexpected error
{
"module_name": "string",
"error_message": "string",
"error_code": 0
}
module_name
error_message
error_code