Restart Service program restarts a specific block service.
/runtime/blocks/{instanceId}/service/restart: post: tags: - "runtime" description: "Restart service: Restart a specific block service" operationId: "restartService" produces: - "application/json" parameters: - in: "path" name: "instanceId" description: "UUID of the instantiated DCF block" required: true type: "string" responses: 200: description: "Success" 400: description: "Invalid Request" 500: description: "Exception: In executing service request RESTART on block"
Example:
Request : curl -k --user admin:changeme --request POST --url https://127.0.0.1:8443/dcc/v1/runtime/blocks/smarts-metrics70d9afac-516a-47f5-b38f-799fa530d55c/service/restart
Response : [{"id": "apg-collector-manager-cloudify-orchestratorffa3bb75-99f4-4613-8a5a-45e2cee0372c", "module": "collector-manager", "instance": "cloudify-orchestratorffa3bb75-99f4-4613-8a5a-45e2cee0372c", "status": "STARTED", "last-modified": "1551155175000", "startup-mode": "auto", "start-order": "96", "stop-order": "4"}]