{"type":"api","title":"Restart Command for Containers running on CDG","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/b95772dc6c621d9842faced8610ee58b0cb9cb02/e05c97f6-c05c-3a2b-97ed-ca9f414d72b7","info":{"title":"Crosswork Data Gateway Troubleshooting API","description":"APIs to support CDG 3.0.0 troubleshooting","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/cdg_troubleshooting_api_overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"summary":"Restart Command for Containers running on CDG","operationId":"SubmitServiceRestartCommand","deprecated":false,"produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"Body","in":"body","required":true,"description":"Request payload to restart services","schema":{"title":"ServiceRestartCommandPayload","example":{"id":"5012d4c9-254c-4910-b951-9c08c8fea301","commandName":"SERVICE_RESTART","clientId":{"uuid":"1358e717-78de-47c0-81fc-efb5bddb5e5c"},"args":[{"key":"cli-collector"},{"key":"snmp-collector"},{"key":"mdt-collector"},{"key":"gnmi-collector"},{"key":"syslog-collector"},{"key":"netconf-collector"}]},"type":"object","properties":{"id":{"type":"string"},"commandName":{"type":"string"},"clientId":{"title":"ClientId","example":{"uuid":"d58de587-5da2-4a62-b010-32395acc8dbc"},"type":"object","properties":{"uuid":{"type":"string"}},"required":["uuid"],"$$ref":"#/definitions/ClientId"},"args":{"type":"array","items":{"title":"ServiceRestartArg","example":{"key":"cli-collector"},"type":"object","properties":{"key":{"type":"string"}},"required":["key"],"$$ref":"#/definitions/ServiceRestartArg"}}},"required":["id","commandName","clientId","args"],"$$ref":"#/definitions/SubmitServiceRestartCommand"}}],"responses":{"200":{"description":"OK. The service restart command was submitted and successfully executed on the CDG.","schema":{"title":"SubmitServiceRestartCommandResponse","example":{"clientId":{"uuid":"5cd4b30d-5137-4f28-a33c-1e25057de42f"},"responseId":"0afed915-147e-4206-b7c1-d185adab240a","commandName":"SERVICE_RESTART","value":{"serviceRestartResponse":{"responseMessage":"Successfully Executed Service Restart Command : cli-collector\n"}},"status":"SUCCESS"},"type":"object","properties":{"clientId":{"type":"object"},"uuid":{"type":"string"},"responseId":{"type":"string"},"commandName":{"type":"string"},"value":{"type":"object"},"serviceRestartResponse":{"type":"object"},"responseMessage":{"type":"string"},"status":{"type":"string"}},"$$ref":"#/definitions/SubmitServiceRestartCommandResponse"}},"400":{"description":"Bad Request. The request is malformed in some way and the server cannot process it.","headers":{}}},"__originalOperationId":"SubmitServiceRestartCommand","security":[{"bearerAuth":[]}],"method":"post","path":"/command/service-restart"}}