{"id":9926,"date":"2017-04-13T05:12:29","date_gmt":"2017-04-13T03:12:29","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/"},"modified":"2024-09-11T08:51:07","modified_gmt":"2024-09-11T06:51:07","slug":"using-weblogic-12c-restful-interface-query-weblogic-domain-configuration","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/","title":{"rendered":"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration"},"content":{"rendered":"<p>WebLogic 12.2.1 provides a new REST management interface with full accesses to all WebLogic Server resources.<br \/>\nThis new interface provides an alternative to the WLST scripting or JMX developments for management and monitoring of WebLogic Domains.<br \/>\nThis blog explains how the RESTful interface can be used to determine a WebLogic Domain configuration and display it&#8217;s the principals attributes.<\/p>\n<p>For this purpose, a Search RESTful call will be used.<br \/>\nThe RESTful URL to point to the search is: http:\/\/vm01.dbi-workshop.com:7001\/management\/weblogic\/latest\/edit\/search<br \/>\nThis search RESTful URL points to the root of the WebLogic Domain configuration managed beans tree.<\/p>\n<p>The search call is a HTTP POST and requires a json structure to define the resources we are looking for.<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n    links: [],\n    fields: [ 'name', 'configurationVersion' ],\n    children: {\n        servers: {\n            links: [],\n            fields: [ 'name','listenAddress','listenPort','machine','cluster' ],\n            children: {\n                SSL: {\n                    fields: [ 'enabled','listenPort' ], links: []\n                }\n            }\n        }\n    }\n}<\/pre>\n<p>The json structure above defines the search attributes that is provided in the HTTP POST.<br \/>\nThis command searches for the WebLogic Domain name and Version.<br \/>\nThen for the servers in the children&#8217;s list for which it prints the name, listen port, machine name and cluster name if this server is member of a cluster. In the servers childrens list, it looks for the SSL entry and displays the SSL listen Port.<\/p>\n<p>To execute this REST url from the Unix command line, we will use the Unix curl command:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">curl -g --user monitor:******** -H X-Requested-By:MyClient -H Accept:application\/json -H Content-Type:application\/json -d \"{ links: [], fields: [ 'name', 'configurationVersion' ], children: { servers: { links: [], fields: [ 'name', 'listenPort','machine','cluster' ], children: { SSL: { fields: [ 'listenPort' ], links: [] }} } } }\" -X POST http:\/\/vm01.dbi-workshop.com:7001\/management\/weblogic\/latest\/edit\/search<\/pre>\n<p>Below is a sample of the results provided by such command execution:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n    \"configurationVersion\": \"12.2.1.0.0\",\n    \"name\": \"base_domain\",\n    \"servers\": {\"items\": [\n    {\n          \"listenAddress\": \"vm01.dbi-workshop.com\",\n          \"name\": \"AdminServer\",\n          \"listenPort\": 7001,\n          \"cluster\": null,\n          \"machine\": [\n                 \"machines\",\n                 \"machine1\"\n          ],\n          \"SSL\": {\n                 \"enabled\": true,\n                 \"listenPort\": 7002\n          }\n   },\n   {\n          \"listenAddress\": \"vm01.dbi-workshop.com\",\n          \"name\": \"server1\",\n          \"listenPort\": 7003,\n          \"cluster\": [\n                 \"clusters\",\n                 \"cluster1\"\n          ],\n          \"machine\": [\n                 \"machines\",\n                 \"machine1\"\n          ],\n          \"SSL\": {\n                 \"enabled\": false,\n                 \"listenPort\": 7013\n          }\n  },\n  {\n          \"listenAddress\": \"vm01.dbi-workshop.com\",\n          \"name\": \"server2\",\n          \"listenPort\": 7004,\n          \"cluster\": [\n                \"clusters\",\n                \"cluster1\"\n          ],\n          \"machine\": [\n                \"machines\",\n                \"machine1\"\n          ],\n          \"SSL\": {\n                \"enabled\": false,\n                \"listenPort\": 7014\n          }\n  },\n  {\n         \"listenAddress\": \"vm01.dbi-workshop.com\",\n         \"name\": \"server3\",\n         \"listenPort\": 7005,\n         \"cluster\": null,\n         \"machine\": [\n                \"machines\",\n                \"machine1\"\n         ],\n         \"SSL\": {\n               \"enabled\": false,\n               \"listenPort\": 7015\n         }\n  }\n]}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WebLogic 12.2.1 provides a new REST management interface with full accesses to all WebLogic Server resources. This new interface provides an alternative to the WLST scripting or JMX developments for management and monitoring of WebLogic Domains. This blog explains how the RESTful interface can be used to determine a WebLogic Domain configuration and display it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[1064,1065],"type_dbi":[],"class_list":["post-9926","post","type-post","status-publish","format-standard","hentry","category-application-integration-middleware","tag-restful","tag-sweblogic"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration\" \/>\n<meta property=\"og:description\" content=\"WebLogic 12.2.1 provides a new REST management interface with full accesses to all WebLogic Server resources. This new interface provides an alternative to the WLST scripting or JMX developments for management and monitoring of WebLogic Domains. This blog explains how the RESTful interface can be used to determine a WebLogic Domain configuration and display it&#8217;s [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-13T03:12:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-11T06:51:07+00:00\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration\",\"datePublished\":\"2017-04-13T03:12:29+00:00\",\"dateModified\":\"2024-09-11T06:51:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\"},\"wordCount\":234,\"commentCount\":0,\"keywords\":[\"RESTful\",\"SWebLogic\"],\"articleSection\":[\"Application integration &amp; Middleware\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\",\"name\":\"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2017-04-13T03:12:29+00:00\",\"dateModified\":\"2024-09-11T06:51:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/","og_locale":"en_US","og_type":"article","og_title":"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration","og_description":"WebLogic 12.2.1 provides a new REST management interface with full accesses to all WebLogic Server resources. This new interface provides an alternative to the WLST scripting or JMX developments for management and monitoring of WebLogic Domains. This blog explains how the RESTful interface can be used to determine a WebLogic Domain configuration and display it&#8217;s [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/","og_site_name":"dbi Blog","article_published_time":"2017-04-13T03:12:29+00:00","article_modified_time":"2024-09-11T06:51:07+00:00","author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration","datePublished":"2017-04-13T03:12:29+00:00","dateModified":"2024-09-11T06:51:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/"},"wordCount":234,"commentCount":0,"keywords":["RESTful","SWebLogic"],"articleSection":["Application integration &amp; Middleware"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/","url":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/","name":"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2017-04-13T03:12:29+00:00","dateModified":"2024-09-11T06:51:07+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-interface-query-weblogic-domain-configuration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using WebLogic 12C RESTful interface to query a WebLogic Domain configuration"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=9926"}],"version-history":[{"count":1,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9926\/revisions"}],"predecessor-version":[{"id":34720,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9926\/revisions\/34720"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=9926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=9926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=9926"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=9926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}