Stop Service program stops the running block service.
/runtime/blocks/{instanceId}/service/stop: post: tags: - "runtime" description: "Stop service: stop the block service." operationId: "stopService" 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 STOP 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/stop
Response : [{"id": "apg-collector-manager-smarts-metricseaea8c69-b12a-4fa6-8389-6ea87dd997c5", "module": "collector-manager", "instance": "smarts-metricseaea8c69-b12a-4fa6-8389-6ea87dd997c5", "status": "STOPPED", "last-modified": "1551155147000", "startup-mode": "auto", "start-order": "96", "stop-order": "4"}]