• Home
  • About
  • Publication Contributions
  • Mindmap Index
  • API Platform

MP3Monster's Blog

~ from Technology to Music

MP3Monster's Blog

Tag Archives: Script

Understanding API Deployment State on API Platform

25 Thursday Jan 2018

Posted by mp3monster in APIs, development, General, Technology

≈ 2 Comments

Tags

API, API Platform, API-PCS, Groovy, iterations, Oracle, Script, Technology, utility, versions

The new Oracle API Platform makes it possible to deploy different versions of your APIs to different gateway instances. When you you’re managing the Development API Policies through all the different stages of the lifecycle (Design to Production) from a single management tier such a capability is essential. This is further challenged by the fact that each save of you API Definition creates a new iteration (the term used to identify each saved ‘version’ of the API)

However it does lead the challenge from a management perspective of knowing which iterations are running on each Gateway.. you can get the information from the current UI but it requires multiple steps to get the information. The UI also lends itself more to the design processes today than perhaps the more dense information views that a operational report might warrant.

I’m sure that over time these views will come, but today we can solve the problem by taking advantage of the fact that the product lives by its own ‘mission’ by offering a very rich set of APIs. As a result it becomes possible to actually build your own views. To that end I have written a Groovy script which will go through each API that can be seen and retrieves the iteration deployed to each logical gateway.

In terms of running the script you obviously need Groovy installed. It expects 3 parameters which are:

  • Server address e.g. https://1.2.3.4
  • Username e.g. weblogic
  • Password e.g. Welcome1

You can hardwire into the script default values which will then be used if no parameters are provided.

Here is a screenshot of some output.  I have masked out some information for reasons of security. But there should be enough here to give a sense of what is happening:

APIPlatformScript

The script includes suppressing certificate validation – necessary if you haven’t yet deployed your own specific certificate and still working with the default Oracle certificate.

Feel free to take the script and play with it. I make no claims to it’s elegance etc but I have tried to comment it so you can see what is going on. I have tried to keep the code fairly simple so you can see how it works and processes the JSON responses. The script is available at: https://github.com/mp3monster/Utils/blob/master/getDeployedIterations.groovy

For more about the APIs involved in the script, checkout

  •  https://docs.oracle.com/en/cloud/paas/api-platform-cloud/apfrm/api-APIs.html
  • https://docs.oracle.com/en/cloud/paas/api-platform-cloud/

Oracle Ace

TOGAF 9

Oracle Cloud Integration Book

Oracle Cloud Integration Book

API Platform Book

Categories

  • App Ideas
  • Books
    • Book Reviews
    • Oracle Press
    • Packt
  • General
    • economy
    • LinkedIn
    • Website
  • Music
    • Music Resources
    • Music Reviews
  • Photography
  • Technology
    • APIs
    • chatbots
    • Cloud
    • Dev Meetup
    • development
    • mindmap
    • OMESA
    • Oracle
      • API Platform CS
      • ICS
      • ITSO & OEAF
      • Java Cloud
      • NodeJS Cloud
    • TOGAF
  • xxRetired

Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

OraWorld

OraWorld

Oracle Scene

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 510 other followers

Monster's Other Web Content

  • All My Links
  • Amazon Author entry
  • API Platform
  • ICS Book Website
  • Mindmaps
  • Monster's Photos
  • my Capgemini Profile
  • Oracle Community Directory
  • Packt Author Bio

RSS

RSS Feed RSS - Posts

RSS Feed RSS - Comments

Calendar

April 2018
M T W T F S S
« Mar    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Other Pages

  • About
    • Presenting Activities
  • API Platform
    • API Useful Resources
  • Mindmap Index
  • Publication Contributions

Oracle Dev Meetup London

Goodreads

Flickr Pics

Restaurant EntertainmentHungarian BeersWC Photo with a twistPaaS Forum Awards Group Photo
More Photos

History

Social

  • View @mp3monster’s profile on Twitter
Follow MP3Monster's Blog on WordPress.com

Tags

6 Music 11g Aaron Woody AIA album Ansible API API Platform app applications BBC Big Data blog book books camel Capgemini cd CEP Cloud code concert conference data demographics Design development download ebook enterprise EP Event Processing free fusion Good Morning Nantwich ICS integration ITSO iTunes java JBoss jBPM JDeveloper Luis Weir Microservices mindmap MP3 Music OOW Oracle Oracle Press OTN PaaS Packt Packt Publishing Patterns Phill Jupitus PIP playlist promotion Puppet Radio reading Redhat release review Security SeeWhy SOA SOA Suite software Technology TOGAF UKOUG video

Blog at WordPress.com.

Cancel
Privacy & Cookies: This site uses cookies from WordPress.com and selected partners.
To find out more, as well as how to remove or block these, see here: Our Cookie Policy