Created
March 17, 2018 23:30
-
-
Save AKSarav/d22e4f19506c15fc3e0e4d3ca0b97eac to your computer and use it in GitHub Desktop.
DeploymentTasks-WeblogicREST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy an application | |
--------------------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
name: 'mwiapp', | |
applicationPath : '/apps/oracle-weblogic/applications/mwiapp.war', | |
targets: ['mwiCluster1'], | |
plan: '/apps/oracle-weblogic/applications/plan.xml', | |
deploymentOptions: {} | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/deploy | |
Get State | |
---------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
target: 'mwiCluster1' | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/mwiapp/getState | |
Redeploy an Application | |
------------------------ | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
targets: ['mwiCluster1'], | |
plan: '/apps/oracle-weblogic/applications/plan.xml', | |
deploymentOptions: {} | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/mwiapp/redeploy | |
Start an Application | |
-------------------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
targets: ['mwiCluster1'], | |
deploymentOptions: {} | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/mwiapp/start | |
Stop an Application | |
-------------------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
targets: ['mwiCluster1'], | |
deploymentOptions: {} | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/mwiapp/stop | |
undeploy an Application | |
------------------------ | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
targets: ['mwiCluster1'], | |
deploymentOptions: {} | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/mwiapp/undeploy | |
update an Application | |
---------------------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
targets: ['mwiCluster1'], | |
deploymentOptions: {}, | |
plan: '/apps/oracle-weblogic/applications/plan.xml' | |
}" \ | |
-X POST http://localhost:17001/management/weblogic/latest/domainRuntime/deploymentManager/appDeploymentRuntimes/mwiapp/update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment