SlideShare a Scribd company logo
1 of 24
MMC Rest API - Clusters
BY KIRAN KUMAR
Introduction
 Continuous Deployment is always needed to make the things automate.
 Mule ESB cluster is a server which uses the active-active model to the
nodes.
 The advantage of active-active model is no one server acts as a primary
node. Both of the nodes will share the load.
 MMC provides Rest API’s to manage the cluster nodes, applications and
flows.
Create a Cluster
 To create a cluster, need to provide cluster name and server ids as shown
in the below URL.
 curl --basic -u username:password -d '{"name":"Cluster
Name","version":"3.6.1", "nodes":["serverId-1", "serverId-2"]}' --header
'Content-Type: application/json' http://localhost:8585/mmc/api/clusters
 HTTP Method: POST
Get All Clusters
 To get all the clusters in the MMC, need to provide the below URL.
 curl --basic -u username:password http://localhost:8585/mmc/api/clusters
 HTTP Method: GET
Get a Cluster
 To get a specific cluster, need to provide cluster id as shown in the below
URL.
 curl --basic -u username:password
http://localhost:8585/mmc/api/clusters/{clusterId}
 HTTP Method: GET
Cluster Status
 To get the status of a cluster, need to provide the cluster id as shown in the
below URL.
 curl --basic -u username:password
http://localhost:8585/mmc/api/clusters/{clusterId}/status
 HTTP Method: GET
Disband a Cluster
 To disband(delete) a cluster, need to provide the cluster Id as shown in the
below URL.
 curl --basic -u username:password -X DELETE
http://localhost:8585/mmc/api/clusters/{clusterId}
 HTTP Method: DELETE
Restart a Cluster
 To restart the Cluster, need to provide the cluster Id as shown in the below
URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/restart
 HTTP Method: POST
Stop a Cluster
 To stop a Cluster, nedd to provide the Cluster Id as shown in the below
URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/stop
 HTTP Method: POST
Add Nodes to a Cluster
 To add nodes to the existing cluster, need to provide the node ids in the
data as shown in the below URL.
 curl --basic -u username:password -d '{"nodes":"serverId-1", "serverId-2"}' --
header 'Content-Type: application/json'
http://localhost:8585/api/clusters/{clusterId}/addnodes
 HTTP Method: POST
Remove Nodes from a Cluster
 To remove nodes on a Cluster, need to provide the node ids of the cluster
as shown in the below URL.
 curl --basic -u username:password -d '{"nodes":"serverId-1", "serverId-2"}' --
header 'Content-Type: application/json'
http://localhost:8585/api/clusters/{clusterId}/removenodes
 HTTP Method: POST
Get All Applications on Cluster
 To get all applications on a cluster, need to provide the cluster id as shown
in the below URL.
 curl --basic -u username:password
http://localhost:8585/mmc/api/clusters/{clusterId}/applications
 HTTP Method: GET
Start an Application
 To start an application on a cluster, need to provide the cluster id and the
application name as shown in the below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/applications/{applicatio
nName}/start
 HTTP Method: POST
Restart an Application
 To restart an application on a cluster, need to provide the cluster id and
application name as shown in the below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/applications/{applicatio
nName}/restart
 HTTP Method: POST
Stop an Application
 To stop an application on a cluster, need to provide cluster Id and
application name as shown in the below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/applications/{applicatio
nName}/stop
 HTTP Method: POST
Get All Flows
 To get all available flows on a cluster, need to provide the cluster id as
shown in the below URL.
 curl --basic -u username:password
http://localhost:8585/mmc/api/clusters/{clusterId}/flows
 HTTP Method: GET
Restart a Flow
 To restart a flow of an application on a cluster, need to provide the cluster
id, application name and flow name as shown in the below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl
icationName}/start
 HTTP Method: POST
Pause a Flow
 To pause a flow of an application on a cluster, need to provide the cluster
id, application name and flow name as shown in the below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl
icationName}/pause
 HTTP Method: POST
Stop a Flow
 To stop a flow of an application on a cluster, need to provide the cluster
id, application name and flow name as shown in the below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl
icationName}/stop
 HTTP Method: POST
Get All Endpoints
 To get all flow endpoints from an application on a cluster, need to provide
the cluster id, application name and flow name as shown in the below
URL.
 curl --basic -u username:password
http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl
icationName}/endpoints
 HTTP Method: GET
Start an Endpoint
 To start an flow endpoint in the application on cluster, need to provide the
cluster id, application name, flow name and endpoint id as shown in the
below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl
icationName}/endpoints/{endpointId}/start
 HTTP Method: POST
Stop an Endpoint
 To stop an flow endpoint in the application on cluster, need to provide the
cluster id, application name, flow name and endpoint id as shown in the
below URL.
 curl --basic -u username:password -X POST
http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl
icationName}/endpoints/{endpointId}/stop
 HTTP Method: POST
References
 https://docs.mulesoft.com/mule-management-console/v/3.7/clusters
 https://docs.mulesoft.com/mule-management-console/v/3.4/managing-
mule-high-availability-ha-clusters
 https://docs.mulesoft.com/mule-management-console/v/3.4/creating-or-
disbanding-a-cluster
Thank you

More Related Content

What's hot

Mail server configuration
Mail server configurationMail server configuration
Mail server configurationchacheng oo
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apacheShaojie Yang
 
ember-socket-guru - common api for websockets providers
ember-socket-guru - common api for websockets providersember-socket-guru - common api for websockets providers
ember-socket-guru - common api for websockets providersKuba Niechciał
 
Apache ds building_from_source
Apache ds building_from_sourceApache ds building_from_source
Apache ds building_from_sourcemervettt
 
Mule Clustering
Mule Clustering Mule Clustering
Mule Clustering Vijay Shan
 
Install Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMInstall Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMLaurent Leturgez
 
MySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & GrafanaMySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & GrafanaYoungHeon (Roy) Kim
 
Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)StackIQ
 
泣かないAppEngine開発
泣かないAppEngine開発泣かないAppEngine開発
泣かないAppEngine開発Shuji Watanabe
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-serverHARRY CHAN PUTRA
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKYoungHeon (Roy) Kim
 
Making the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolMaking the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolArmenuhi Abramyan
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modulesmohamedmoharam
 

What's hot (20)

Mail server configuration
Mail server configurationMail server configuration
Mail server configuration
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apache
 
ember-socket-guru - common api for websockets providers
ember-socket-guru - common api for websockets providersember-socket-guru - common api for websockets providers
ember-socket-guru - common api for websockets providers
 
Apache ds building_from_source
Apache ds building_from_sourceApache ds building_from_source
Apache ds building_from_source
 
Mule Clustering
Mule Clustering Mule Clustering
Mule Clustering
 
Server Side? Swift
Server Side? SwiftServer Side? Swift
Server Side? Swift
 
Mail
MailMail
Mail
 
Install Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMInstall Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VM
 
MySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & GrafanaMySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & Grafana
 
Final Report - Spark
Final Report - SparkFinal Report - Spark
Final Report - Spark
 
mail server
mail servermail server
mail server
 
Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)
 
泣かないAppEngine開発
泣かないAppEngine開発泣かないAppEngine開発
泣かないAppEngine開発
 
Instalar ebs 12 2 8
Instalar ebs 12 2 8Instalar ebs 12 2 8
Instalar ebs 12 2 8
 
Using aphace-as-proxy-server
Using aphace-as-proxy-serverUsing aphace-as-proxy-server
Using aphace-as-proxy-server
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
 
Making the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocolMaking the secure communication between Server and Client with https protocol
Making the secure communication between Server and Client with https protocol
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
 
2014-10-30 Taverna 3 status
2014-10-30 Taverna 3 status2014-10-30 Taverna 3 status
2014-10-30 Taverna 3 status
 
SoftLayer-demoLabV3
SoftLayer-demoLabV3SoftLayer-demoLabV3
SoftLayer-demoLabV3
 

Viewers also liked

Microservices with mule
Microservices with muleMicroservices with mule
Microservices with muleGovind Mulinti
 
Anypoint Platform Deployment Strategies
Anypoint Platform Deployment StrategiesAnypoint Platform Deployment Strategies
Anypoint Platform Deployment StrategiesGovind Mulinti
 
Discussion About Microservices Architecture
Discussion About Microservices ArchitectureDiscussion About Microservices Architecture
Discussion About Microservices ArchitectureRalph Osmond Rimorin
 
Mule management console installation with Tomcat
Mule management console installation with TomcatMule management console installation with Tomcat
Mule management console installation with TomcatSudha Ch
 
MuleSoft London CoP - October 2016
MuleSoft London CoP - October 2016MuleSoft London CoP - October 2016
MuleSoft London CoP - October 2016Pace Integration
 

Viewers also liked (8)

Best way to Deploy a Mule ESB Application
Best way to Deploy a Mule ESB ApplicationBest way to Deploy a Mule ESB Application
Best way to Deploy a Mule ESB Application
 
Microservices with mule
Microservices with muleMicroservices with mule
Microservices with mule
 
Anypoint Platform Deployment Strategies
Anypoint Platform Deployment StrategiesAnypoint Platform Deployment Strategies
Anypoint Platform Deployment Strategies
 
Mmc
MmcMmc
Mmc
 
Microservices with Mule
Microservices with MuleMicroservices with Mule
Microservices with Mule
 
Discussion About Microservices Architecture
Discussion About Microservices ArchitectureDiscussion About Microservices Architecture
Discussion About Microservices Architecture
 
Mule management console installation with Tomcat
Mule management console installation with TomcatMule management console installation with Tomcat
Mule management console installation with Tomcat
 
MuleSoft London CoP - October 2016
MuleSoft London CoP - October 2016MuleSoft London CoP - October 2016
MuleSoft London CoP - October 2016
 

Similar to MMC Rest API - Clusters

Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsirfan1008
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsirfan1008
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsPhaniu
 
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...QCloudMentor
 
Working with PowerVC via its REST APIs
Working with PowerVC via its REST APIsWorking with PowerVC via its REST APIs
Working with PowerVC via its REST APIsJoe Cropper
 
Mastering Microservices with Kong (DevoxxUK 2019)
Mastering Microservices with Kong (DevoxxUK 2019)Mastering Microservices with Kong (DevoxxUK 2019)
Mastering Microservices with Kong (DevoxxUK 2019)Maarten Mulders
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsSunil Komarapu
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsKhan625
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsAnand kalla
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groupsKhasim Saheb
 
Automate your automation with Rudder’s API! \o/
Automate your automation with Rudder’s API! \o/Automate your automation with Rudder’s API! \o/
Automate your automation with Rudder’s API! \o/RUDDER
 
Construindo APIs Usando Rails
Construindo APIs Usando RailsConstruindo APIs Usando Rails
Construindo APIs Usando RailsFernando Kakimoto
 
Indices APIs - Elasticsearch Reference
Indices APIs - Elasticsearch ReferenceIndices APIs - Elasticsearch Reference
Indices APIs - Elasticsearch ReferenceDaniel Ku
 
Vancouver presentation
Vancouver presentationVancouver presentation
Vancouver presentationColleen_Murphy
 
Automating Cloud Operations: Everything You Wanted to Know about cURL and REST
Automating Cloud Operations: Everything You Wanted to Know about cURL and RESTAutomating Cloud Operations: Everything You Wanted to Know about cURL and REST
Automating Cloud Operations: Everything You Wanted to Know about cURL and RESTRevelation Technologies
 
Kong API Gateway
Kong API Gateway Kong API Gateway
Kong API Gateway Chris Mague
 

Similar to MMC Rest API - Clusters (20)

Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groups Mmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
 
Working with PowerVC via its REST APIs
Working with PowerVC via its REST APIsWorking with PowerVC via its REST APIs
Working with PowerVC via its REST APIs
 
Mastering Microservices with Kong (DevoxxUK 2019)
Mastering Microservices with Kong (DevoxxUK 2019)Mastering Microservices with Kong (DevoxxUK 2019)
Mastering Microservices with Kong (DevoxxUK 2019)
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Mmc rest api user groups
Mmc rest api user groupsMmc rest api user groups
Mmc rest api user groups
 
Automate your automation with Rudder’s API! \o/
Automate your automation with Rudder’s API! \o/Automate your automation with Rudder’s API! \o/
Automate your automation with Rudder’s API! \o/
 
Construindo APIs Usando Rails
Construindo APIs Usando RailsConstruindo APIs Usando Rails
Construindo APIs Usando Rails
 
Indices APIs - Elasticsearch Reference
Indices APIs - Elasticsearch ReferenceIndices APIs - Elasticsearch Reference
Indices APIs - Elasticsearch Reference
 
Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013Stackato Presentation Techzone 2013
Stackato Presentation Techzone 2013
 
Vancouver presentation
Vancouver presentationVancouver presentation
Vancouver presentation
 
AWS Pentest.pdf
AWS Pentest.pdfAWS Pentest.pdf
AWS Pentest.pdf
 
Automating Cloud Operations: Everything You Wanted to Know about cURL and REST
Automating Cloud Operations: Everything You Wanted to Know about cURL and RESTAutomating Cloud Operations: Everything You Wanted to Know about cURL and REST
Automating Cloud Operations: Everything You Wanted to Know about cURL and REST
 
Kong API Gateway
Kong API Gateway Kong API Gateway
Kong API Gateway
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 

MMC Rest API - Clusters

  • 1. MMC Rest API - Clusters BY KIRAN KUMAR
  • 2. Introduction  Continuous Deployment is always needed to make the things automate.  Mule ESB cluster is a server which uses the active-active model to the nodes.  The advantage of active-active model is no one server acts as a primary node. Both of the nodes will share the load.  MMC provides Rest API’s to manage the cluster nodes, applications and flows.
  • 3. Create a Cluster  To create a cluster, need to provide cluster name and server ids as shown in the below URL.  curl --basic -u username:password -d '{"name":"Cluster Name","version":"3.6.1", "nodes":["serverId-1", "serverId-2"]}' --header 'Content-Type: application/json' http://localhost:8585/mmc/api/clusters  HTTP Method: POST
  • 4. Get All Clusters  To get all the clusters in the MMC, need to provide the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/clusters  HTTP Method: GET
  • 5. Get a Cluster  To get a specific cluster, need to provide cluster id as shown in the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/clusters/{clusterId}  HTTP Method: GET
  • 6. Cluster Status  To get the status of a cluster, need to provide the cluster id as shown in the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/clusters/{clusterId}/status  HTTP Method: GET
  • 7. Disband a Cluster  To disband(delete) a cluster, need to provide the cluster Id as shown in the below URL.  curl --basic -u username:password -X DELETE http://localhost:8585/mmc/api/clusters/{clusterId}  HTTP Method: DELETE
  • 8. Restart a Cluster  To restart the Cluster, need to provide the cluster Id as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/restart  HTTP Method: POST
  • 9. Stop a Cluster  To stop a Cluster, nedd to provide the Cluster Id as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/stop  HTTP Method: POST
  • 10. Add Nodes to a Cluster  To add nodes to the existing cluster, need to provide the node ids in the data as shown in the below URL.  curl --basic -u username:password -d '{"nodes":"serverId-1", "serverId-2"}' -- header 'Content-Type: application/json' http://localhost:8585/api/clusters/{clusterId}/addnodes  HTTP Method: POST
  • 11. Remove Nodes from a Cluster  To remove nodes on a Cluster, need to provide the node ids of the cluster as shown in the below URL.  curl --basic -u username:password -d '{"nodes":"serverId-1", "serverId-2"}' -- header 'Content-Type: application/json' http://localhost:8585/api/clusters/{clusterId}/removenodes  HTTP Method: POST
  • 12. Get All Applications on Cluster  To get all applications on a cluster, need to provide the cluster id as shown in the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/clusters/{clusterId}/applications  HTTP Method: GET
  • 13. Start an Application  To start an application on a cluster, need to provide the cluster id and the application name as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/applications/{applicatio nName}/start  HTTP Method: POST
  • 14. Restart an Application  To restart an application on a cluster, need to provide the cluster id and application name as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/applications/{applicatio nName}/restart  HTTP Method: POST
  • 15. Stop an Application  To stop an application on a cluster, need to provide cluster Id and application name as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/applications/{applicatio nName}/stop  HTTP Method: POST
  • 16. Get All Flows  To get all available flows on a cluster, need to provide the cluster id as shown in the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/clusters/{clusterId}/flows  HTTP Method: GET
  • 17. Restart a Flow  To restart a flow of an application on a cluster, need to provide the cluster id, application name and flow name as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl icationName}/start  HTTP Method: POST
  • 18. Pause a Flow  To pause a flow of an application on a cluster, need to provide the cluster id, application name and flow name as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl icationName}/pause  HTTP Method: POST
  • 19. Stop a Flow  To stop a flow of an application on a cluster, need to provide the cluster id, application name and flow name as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl icationName}/stop  HTTP Method: POST
  • 20. Get All Endpoints  To get all flow endpoints from an application on a cluster, need to provide the cluster id, application name and flow name as shown in the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl icationName}/endpoints  HTTP Method: GET
  • 21. Start an Endpoint  To start an flow endpoint in the application on cluster, need to provide the cluster id, application name, flow name and endpoint id as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl icationName}/endpoints/{endpointId}/start  HTTP Method: POST
  • 22. Stop an Endpoint  To stop an flow endpoint in the application on cluster, need to provide the cluster id, application name, flow name and endpoint id as shown in the below URL.  curl --basic -u username:password -X POST http://localhost:8585/mmc/api/clusters/{clusterId}/flows/{flowName}/{appl icationName}/endpoints/{endpointId}/stop  HTTP Method: POST