SlideShare a Scribd company logo
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 groupsKhasim Saheb
 
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
 
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 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
 
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

Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Alison B. Lowndes
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...Sri Ambati
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsExpeed Software
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Thierry Lestable
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backElena Simperl
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Product School
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationZilliz
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 

Recently uploaded (20)

Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 

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