System Administration > Configuration > Fabric > Nodes > Services > SSH

Restart, start or stop the ssh service

Request:

Method:
POST
URI Path(s):
/api/v1/transport-nodes/<transport-node-id>/node/services/ssh?action=start|stop|restart
/api/v1/cluster/<cluster-node-id>/node/services/ssh?action=start|stop|restart
/api/v1/node/services/ssh?action=start|stop|restart
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

POST https://<nsx-mgr>/api/v1/node/services/ssh?action=start

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
NodeServiceStatusProperties+

Example Response:

{ "_schema": "NodeServiceStatusProperties", "_self": "/node/services/ssh", "pids": [ 15930 ], "runtime_state": "running" }

Required Permissions:

crud

Feature:

system_administration

Additional Errors: