Example 2: Shutting Down a Web Logic Server

In this V2.0 syntax example we see how to shut down a web logic server using an ENTITY step type.

{   "name": "Shutdown WebLogic Server",
    "version": "1.0.2",
    "description": "This is an example of a workflow to shutdown a WebLogic server",
    "source": "WebLogic",
    "plan": {
        "steps": [
            {
                "name": "stop_weblogic",
                "operation": {
                    "type": "ENTITY",
                    "parameters": {
                        "entity": {
                            "entityByName": {
                                "name": "host01.example.com",
                                "type": "omc_host_linux"
                            }
                        },
                        "command": "/bin/sh",
                        "arguments": [
                            "/u01/app/oracle/Middleware/Oracle_Home/user_projects/domains/medrec/bin/stopWebLogic.sh"
                        ],
                        "credential": "MySSHCred"
                    }
                }
            }
        ]
    },
    "input": {
        "vars": {},
        "workerVars": {
            "worker1": {}
        }
    }
}