SlideShare a Scribd company logo
1 of 24
MMC Rest API - Servers
BY KIRAN KUMAR
Introduction
 MMC Rest API provides an ability to access the server, files, operations on
flows and operations on endpoints as shown below.
1. Register a Server
2. Get All Servers
3. Get a Server
4. Unregister a Server
5. Update a Server
6. Get All Applications
7. Restart a Server
8. Stop a Server
9. Get All Files
10. Get a File
11. Create a File
12. Update a File
13. Delete a File
14. Get All Flows
15. Start a Flow
16. Stop a Flow
17. Get All Endpoints
18. Start an Endpoint
19. Stop an Endpoint
Register a Server
 To register a server with MMC, need to provide server name, server agent
URL and group id of the server as shown in the below URL.
 curl --basic -u username:password -d '{ "name" : "Server Name", "agentUrl" :
"http://localhost:7777/mmc-support", "groupIds":["server group id"] }' --
header 'Content-Type: application/json'
http://localhost:8585/mmc/api/servers
 HTTP Method: POST
Get All Servers
 To get all servers, need to provide the below URL.
 curl --basic -u username:password http://localhost:8585/mmc/api/servers
 HTTP Method: GET
Get a Server
 To get a specific server, need to provide the server id as shown in the
below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}'
 HTTP Method: GET
Unregister a Server
 To Unregister a specific server, need to provide the server id as shown in
the below URL.
 curl --basic -u username:password -X DELETE
'http://localhost:8585/mmc/api/servers/{serverId}'
 HTTP Method: DELETE
Update a Server
 To update a specific server details, need to provide the details for the
server id as shown in the below URL.
 curl --basic -u username:password -X PUT -d '{"name" : "New Server Name",
"groups":[{"href":"group id"}]}' --header 'Content-Type: application/json'
'http://localhost:8585/mmc/api/servers/{serverId}'
 HTTP Method: PUT
Get All Applications
 To get all applications on a specific server, need to provide the server id
as shown in the below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/applications'
 HTTP Method: GET
Restart a Server
 To restart a server, need to provide the server id as shown in the below
URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/restart'
 HTTP Method: POST
Stop a Server
 To stop a server, need to provide the server id as shown in the below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/stop'
 HTTP Method: POST
Get All Files
 To get all files on a specific server, need to provide the server id as shown
in the below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/files'
 HTTP Method: GET
Get a File
 To get a specific file on a specific server, need to provide the relative
path of a file from root folder of server and the server id as shown in the
below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/files/{relativePathToFile}'
 HTTP Method: GET
Create a File
 To create a new file on a specific server, need to provide the server id
and the relative file path of a server as shown in the below URL.
 curl --basic -u username:password -v --header 'Content-
Type:application/octet-stream' --data-binary '@source.xml'
'http://localhost:8585/mmc/api/servers/{serverId}/files/logs/destination.txt'
 HTTP Method: POST
 source.xml is a source file name. ’@’ is used to copy the contents of the
source file to destination. If it is not specified then source.xml will be the
contents for the destination file.
 destination.txt is the destination file name.
Update a File
 To replace or update a content/file in the target folder on the specified
server, need to provide the server id and relative path of the file on the
server as shown in the below URL.
 curl --basic -u username:password -X PUT --header 'Content-
Type:application/octet-stream' --data-binary '@source.xml'
'http://localhost:8585/mmc/api/servers/{serverId}/files/{relativePathToFile}'
 HTTP Method: PUT
Delete a File
 To delete a file on the specified server, need to provide the server id and
relative file path of the specified server as shown in the below URL.
 curl --basic -u username:password -X DELETE
'http://localhost:8585/mmc/api/servers/{serverId}/files/logs/destination.txt'
 HTTP Method: DELETE
Get All Flows
 To get all flows on a server, need to provide server id as shown in the
below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/flows'
 HTTP Method: GET
Start a Flow
 To start a flow on a specific server, need to provide the server id,
application name and flow name as shown in the below URL.
 curl --basic -u username:password -X POST
'http://localhost:8585/mmc/api/servers/{serverId}/flows/{flowName}/{appli
cationName}/start'
 HTTP Method: POST
Stop a Flow
 To stop a flow on a specific server, need to provide the server id,
application name and flow name as shown in the below URL.
 curl --basic -u username:password -X POST
'http://localhost:8585/mmc/api/servers/{serverId}/flows/{flowName}/{appli
cationName}/stop'
 HTTP Method: POST
Get All Endpoints
 To get all endpoints of a specific flow of an application on a specific
server, need to provide server id, application name and flow name as
shown in the below URL.
 curl --basic -u username:password
'http://localhost:8585/mmc/api/servers/{serverId}/flows/{flowName}/{appli
cationName}/endpoints'
 HTTP Method: GET
Start an Endpoint
 To start an endpoint of a specific flow of an application on a specific
server, need to provide server 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/servers/{serverId}/flows/{flowName}/{appli
cationName}/endpoints/{endpointId}/start'
 HTTP Method: POST
Stop an Endpoint
 To stop an endpoint of a specific flow of an application on a specific
server, need to provide server 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/servers/{serverId}/flows/{flowName}/{appli
cationName}/endpoints/{endpointId}/stop'
 HTTP Method: POST
Thank You

More Related Content

What's hot

Basic oracle net server side configuration
Basic oracle net server side configuration Basic oracle net server side configuration
Basic oracle net server side configuration asifmalik110
 
Apache Presentation
Apache PresentationApache Presentation
Apache PresentationAnkush Jain
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apacheShaojie Yang
 
Definitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareDefinitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareparves kamal
 
Apache ppt
Apache pptApache ppt
Apache pptReka
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptwebhostingguy
 
What's new in Rails 4
What's new in Rails 4What's new in Rails 4
What's new in Rails 4Lucas Caton
 
Ftp server configuration on cisco packet tracer
Ftp server configuration on cisco packet tracerFtp server configuration on cisco packet tracer
Ftp server configuration on cisco packet tracerprodhan999
 
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...Chanaka Lasantha
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache TutorialGuru99
 
Designing and developing Web Sites using HTML 5 CSS 3 , PHP and SQL
Designing and developing Web Sites using HTML 5 CSS 3 , PHP  and SQLDesigning and developing Web Sites using HTML 5 CSS 3 , PHP  and SQL
Designing and developing Web Sites using HTML 5 CSS 3 , PHP and SQLOsama Ghandour Geris
 

What's hot (19)

Basic oracle net server side configuration
Basic oracle net server side configuration Basic oracle net server side configuration
Basic oracle net server side configuration
 
Php1
Php1Php1
Php1
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Apache Web Server Setup 2
Apache Web Server Setup 2Apache Web Server Setup 2
Apache Web Server Setup 2
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apache
 
Web server
Web serverWeb server
Web server
 
Definitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareDefinitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source software
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Babitha.4appach
Babitha.4appachBabitha.4appach
Babitha.4appach
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
I module dmz
I module dmzI module dmz
I module dmz
 
Apache
ApacheApache
Apache
 
What's new in Rails 4
What's new in Rails 4What's new in Rails 4
What's new in Rails 4
 
Ftp server configuration on cisco packet tracer
Ftp server configuration on cisco packet tracerFtp server configuration on cisco packet tracer
Ftp server configuration on cisco packet tracer
 
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
 
Modul quick debserver
Modul quick debserverModul quick debserver
Modul quick debserver
 
Apache Tutorial
Apache TutorialApache Tutorial
Apache Tutorial
 
Designing and developing Web Sites using HTML 5 CSS 3 , PHP and SQL
Designing and developing Web Sites using HTML 5 CSS 3 , PHP  and SQLDesigning and developing Web Sites using HTML 5 CSS 3 , PHP  and SQL
Designing and developing Web Sites using HTML 5 CSS 3 , PHP and SQL
 

Viewers also liked

Viewers also liked (6)

Microservices with Mule
Microservices with MuleMicroservices with Mule
Microservices with Mule
 
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
 
Discussion About Microservices Architecture
Discussion About Microservices ArchitectureDiscussion About Microservices Architecture
Discussion About Microservices Architecture
 
MuleSoft London CoP - October 2016
MuleSoft London CoP - October 2016MuleSoft London CoP - October 2016
MuleSoft London CoP - October 2016
 
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
 

Similar to MMC Rest API - Manage Servers, Files, Flows & Endpoints

Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyDesign Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyManageIQ
 
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜崇之 清水
 
Running Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docx
Running Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docxRunning Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docx
Running Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docxcowinhelen
 
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
 
Construindo APIs Usando Rails
Construindo APIs Usando RailsConstruindo APIs Usando Rails
Construindo APIs Usando RailsFernando Kakimoto
 
[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager
[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager
[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client ManagerDrupalDay
 
Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기JeongHun Byeon
 
SP Rest API Documentation
SP Rest API DocumentationSP Rest API Documentation
SP Rest API DocumentationIT Industry
 
Nine Ways to Use Network-Side Scripting
Nine Ways to Use Network-Side ScriptingNine Ways to Use Network-Side Scripting
Nine Ways to Use Network-Side ScriptingLori MacVittie
 
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
 
Introduction to CloudStack API
Introduction to CloudStack APIIntroduction to CloudStack API
Introduction to CloudStack APIKrunal Jain
 
Building drupal web farms with IIS - part 1
Building drupal web farms with IIS - part 1Building drupal web farms with IIS - part 1
Building drupal web farms with IIS - part 1Alessandro Pilotti
 

Similar to MMC Rest API - Manage Servers, Files, Flows & Endpoints (20)

Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyDesign Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John Hardy
 
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
RESTful API を Chalice で紐解く 〜 Python Serverless Microframework for AWS 〜
 
Copy of cgi
Copy of cgiCopy of cgi
Copy of cgi
 
Running Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docx
Running Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docxRunning Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docx
Running Head IMPLEMENTING THE LIST AND SEARCH FEATURES IN THE DIS.docx
 
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
 
Pyrax talk
Pyrax talkPyrax talk
Pyrax talk
 
Construindo APIs Usando Rails
Construindo APIs Usando RailsConstruindo APIs Usando Rails
Construindo APIs Usando Rails
 
[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager
[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager
[drupalday2017] - Drupal come frontend che consuma servizi: HTTP Client Manager
 
Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기Node.js API 서버 성능 개선기
Node.js API 서버 성능 개선기
 
SP Rest API Documentation
SP Rest API DocumentationSP Rest API Documentation
SP Rest API Documentation
 
L5 swagger
L5 swaggerL5 swagger
L5 swagger
 
Rhel5
Rhel5Rhel5
Rhel5
 
Ruby
RubyRuby
Ruby
 
Nine Ways to Use Network-Side Scripting
Nine Ways to Use Network-Side ScriptingNine Ways to Use Network-Side Scripting
Nine Ways to Use Network-Side Scripting
 
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/
 
Using jersey exception mapper
Using jersey exception mapperUsing jersey exception mapper
Using jersey exception mapper
 
Introduction to CloudStack API
Introduction to CloudStack APIIntroduction to CloudStack API
Introduction to CloudStack API
 
Web Server.pdf
Web Server.pdfWeb Server.pdf
Web Server.pdf
 
PPT
PPTPPT
PPT
 
Building drupal web farms with IIS - part 1
Building drupal web farms with IIS - part 1Building drupal web farms with IIS - part 1
Building drupal web farms with IIS - part 1
 

Recently uploaded

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"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
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
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
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
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 pragmaticsAndrey Dotsenko
 

Recently uploaded (20)

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
"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...
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
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
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
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
 

MMC Rest API - Manage Servers, Files, Flows & Endpoints

  • 1. MMC Rest API - Servers BY KIRAN KUMAR
  • 2. Introduction  MMC Rest API provides an ability to access the server, files, operations on flows and operations on endpoints as shown below. 1. Register a Server 2. Get All Servers 3. Get a Server 4. Unregister a Server 5. Update a Server 6. Get All Applications
  • 3. 7. Restart a Server 8. Stop a Server 9. Get All Files 10. Get a File 11. Create a File 12. Update a File 13. Delete a File
  • 4. 14. Get All Flows 15. Start a Flow 16. Stop a Flow 17. Get All Endpoints 18. Start an Endpoint 19. Stop an Endpoint
  • 5. Register a Server  To register a server with MMC, need to provide server name, server agent URL and group id of the server as shown in the below URL.  curl --basic -u username:password -d '{ "name" : "Server Name", "agentUrl" : "http://localhost:7777/mmc-support", "groupIds":["server group id"] }' -- header 'Content-Type: application/json' http://localhost:8585/mmc/api/servers  HTTP Method: POST
  • 6. Get All Servers  To get all servers, need to provide the below URL.  curl --basic -u username:password http://localhost:8585/mmc/api/servers  HTTP Method: GET
  • 7. Get a Server  To get a specific server, need to provide the server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}'  HTTP Method: GET
  • 8. Unregister a Server  To Unregister a specific server, need to provide the server id as shown in the below URL.  curl --basic -u username:password -X DELETE 'http://localhost:8585/mmc/api/servers/{serverId}'  HTTP Method: DELETE
  • 9. Update a Server  To update a specific server details, need to provide the details for the server id as shown in the below URL.  curl --basic -u username:password -X PUT -d '{"name" : "New Server Name", "groups":[{"href":"group id"}]}' --header 'Content-Type: application/json' 'http://localhost:8585/mmc/api/servers/{serverId}'  HTTP Method: PUT
  • 10. Get All Applications  To get all applications on a specific server, need to provide the server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/applications'  HTTP Method: GET
  • 11. Restart a Server  To restart a server, need to provide the server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/restart'  HTTP Method: POST
  • 12. Stop a Server  To stop a server, need to provide the server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/stop'  HTTP Method: POST
  • 13. Get All Files  To get all files on a specific server, need to provide the server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/files'  HTTP Method: GET
  • 14. Get a File  To get a specific file on a specific server, need to provide the relative path of a file from root folder of server and the server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/files/{relativePathToFile}'  HTTP Method: GET
  • 15. Create a File  To create a new file on a specific server, need to provide the server id and the relative file path of a server as shown in the below URL.  curl --basic -u username:password -v --header 'Content- Type:application/octet-stream' --data-binary '@source.xml' 'http://localhost:8585/mmc/api/servers/{serverId}/files/logs/destination.txt'  HTTP Method: POST  source.xml is a source file name. ’@’ is used to copy the contents of the source file to destination. If it is not specified then source.xml will be the contents for the destination file.  destination.txt is the destination file name.
  • 16. Update a File  To replace or update a content/file in the target folder on the specified server, need to provide the server id and relative path of the file on the server as shown in the below URL.  curl --basic -u username:password -X PUT --header 'Content- Type:application/octet-stream' --data-binary '@source.xml' 'http://localhost:8585/mmc/api/servers/{serverId}/files/{relativePathToFile}'  HTTP Method: PUT
  • 17. Delete a File  To delete a file on the specified server, need to provide the server id and relative file path of the specified server as shown in the below URL.  curl --basic -u username:password -X DELETE 'http://localhost:8585/mmc/api/servers/{serverId}/files/logs/destination.txt'  HTTP Method: DELETE
  • 18. Get All Flows  To get all flows on a server, need to provide server id as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/flows'  HTTP Method: GET
  • 19. Start a Flow  To start a flow on a specific server, need to provide the server id, application name and flow name as shown in the below URL.  curl --basic -u username:password -X POST 'http://localhost:8585/mmc/api/servers/{serverId}/flows/{flowName}/{appli cationName}/start'  HTTP Method: POST
  • 20. Stop a Flow  To stop a flow on a specific server, need to provide the server id, application name and flow name as shown in the below URL.  curl --basic -u username:password -X POST 'http://localhost:8585/mmc/api/servers/{serverId}/flows/{flowName}/{appli cationName}/stop'  HTTP Method: POST
  • 21. Get All Endpoints  To get all endpoints of a specific flow of an application on a specific server, need to provide server id, application name and flow name as shown in the below URL.  curl --basic -u username:password 'http://localhost:8585/mmc/api/servers/{serverId}/flows/{flowName}/{appli cationName}/endpoints'  HTTP Method: GET
  • 22. Start an Endpoint  To start an endpoint of a specific flow of an application on a specific server, need to provide server 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/servers/{serverId}/flows/{flowName}/{appli cationName}/endpoints/{endpointId}/start'  HTTP Method: POST
  • 23. Stop an Endpoint  To stop an endpoint of a specific flow of an application on a specific server, need to provide server 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/servers/{serverId}/flows/{flowName}/{appli cationName}/endpoints/{endpointId}/stop'  HTTP Method: POST