NSX-T Data Center REST API
Redeploy Edge Transport Node
Redeploys an edge transport node at NSX Manager that replaces the edge transport node withidentifier <node-id>. If NSX Manager can access the specified edge node,
then the node is put into maintenance mode and then the associated VM is
deleted. This is a means to reset all configuration on the edge node.
The communication channel between NSX Manager and edge is established after
this operation.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.
Request:
Method:
POST
URI Path(s):
/policy/api/v1/infra/sites/{site-id}/enforcement-points/{enforcementpoint-id}/edge-transport-nodes/{edge-transport-node-id}/action/redeploy
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyEdgeTransportNode+
Example Request:
POST https://<policy-mgr>/policy/api/v1/infra/sites/default/enforcement-points/default/edge-transport-nodes/my-edge-tn-id/action/redeploy { "failure_domain_path": "/infra/sites/default/enforcement-points/default/failure-domains/my-policy-failure-domain-id", "deployment_type": "VIRTUAL_MACHINE", "node_type": "EDGE_NODE", "form_factor": "SMALL", "hostname": "my-edge-tn-id-host.com", "vm_deployment_config": { "vc_id": "2bab11cd-ee62-407c-948c-1ff3f1e6c397", "compute_id": "domain-c18", "storage_id": "datastore-15", "reservation_info": { "memory_reservation": { "reservation_percentage": 10 }, "cpu_reservation": { "reservation_in_shares": "LOW_PRIORITY", "reservation_in_mhz": 10 } }, "placement_type": "PolicyVsphereDeploymentConfig" }, "appliance_config": { "search_domains": [ "123.1.1.1" ], "ntp_servers": [ "times.com" ], "allow_ssh_root_login": true, "dns_servers": [ "123.23.2.2", "123.4.5.5" ], ], "enable_ssh": true, "enable_upt_mode": false }, "credentials": { "credentials": { "cli_username": "admin", "audit_username": "audit" }, "management_interface": { "management_interface": { "ip_assignment_specs": [ { "management_port_subnets": [ { { "ip_addresses": [ "fc7e:f206:db42:0:0:0:0:2" ], "prefix_length": 48 } ], "default_gateway": [ "fc7e:f206:db42:0:0:0:0:1" ], "ip_assignment_type": "StaticIpv6" }, { "ip_assignment_type": "Dhcpv4" } ], "network_id": "dvportgroup-48" }, "switch_spec": { "switches": [ { "switch_name": "nsxHostSwitch", "profile_paths": [ { "key": "UplinkHostSwitchProfile", "value": "/infra/host-switch-profiles/my-uplink-profile-id" } ], "overlay_transport_zone_paths": [ "/infra/sites/default/enforcement-points/default/transport-zones/my-transport-zone-overlay-id" ], "vlan_transport_zone_paths": [ "/infra/sites/default/enforcement-points/default/transport-zones/my-transport-zone-vlan-id" ], "pnics": [ { "device_name": "fp-eth0", "uplink_name": "uplink1", "datapath_network_id": "dvportgroup-48" } ], "tunnel_endpoints": [ { { { { { { "ip_assignment_specs": [ { "ip_pool": "/infra/ip-pools/ippool-policy-ipv4", "ip_assignment_type": "StaticIpv4Pool" } ] } } ] } ] }, "resource_type": "PolicyEdgeTransportNode", "id": "my-edge-tn-id", "display_name": "my-edge-tn-id", "path": "/infra/sites/default/enforcement-points/default/edge-transport-nodes/my-edge-tn-id", "relative_path": "my-edge-tn-id", "parent_path": "/infra/sites/default/enforcement-points/default", "remote_path": "", "unique_id": "e38e21e7-f62d-4cc7-8bc7-b42dcad7d002", "realization_id": "e38e21e7-f62d-4cc7-8bc7-b42dcad7d002", "owner_id": "fb73074c-f134-4fa2-9a8c-98d0fc9484c6", "marked_for_delete": false, "overridden": false, "_create_time": 1724410775720, "_system_owned": false, "_create_user": "admin", "_last_modified_time": 1724410775720, "_last_modified_user": "admin", "_last_modified_user": "admin", "_last_modified_user": "admin", "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyEdgeTransportNode+