Difference between revisions of "GOCDB/PI/get service group"

From EGIWiki
< GOCDB‎ | PI
Jump to: navigation, search
(Method: get_service_group - GOCDB4)
(parameters)
 
(8 intermediate revisions by 3 users not shown)
Line 35: Line 35:
 
|-
 
|-
 
| scope  
 
| scope  
| Show only service groups with the requested scope-tags (Local and EGI are currently the only available scopes)
+
| Show only sites with the requested scope-tags - a list of currently supported scope tags can be found [https://goc.egi.eu/portal/index.php?Page_Type=Scope_Help here]
 
| A comma separated list of scope-tag values or an empty value to return all scopes, i.e. '&amp;scope='
 
| A comma separated list of scope-tag values or an empty value to return all scopes, i.e. '&amp;scope='
 
| EGI
 
| EGI
Line 45: Line 45:
 
| all
 
| all
 
| &nbsp;?method=get_service_group&amp;scope=Local,EGI&scope_match=any
 
| &nbsp;?method=get_service_group&amp;scope=Local,EGI&scope_match=any
 +
|-
 +
| extensions
 +
| Limit results by one or many key value pairs
 +
| [https://wiki.egi.eu/wiki/GOCDB/Release4/Development/ExtensibilityMechanism See Extensions Mechanism]
 +
| none
 +
| &nbsp;?method=get_service_group&amp;extensions=(KeyName=KeyValue)
 +
|-
 +
| Docs for cursor params coming soon.
 +
| Limit results and use cursor paging to iterate over all results
 +
| [https://wiki.egi.eu/wiki/GOCDB/notifications#Optional_Cursor_Paging_on_Read_API See here for info]
 +
|
 +
|
 
|-
 
|-
 
|}
 
|}
Line 55: Line 67:
  
 
=== Output Example  ===
 
=== Output Example  ===
 
+
<Source Lang="XML">
<pre>
 
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<results>
 
<results>
<SERVICE_GROUP PRIMARY_KEY="57654G0">
+
  <SERVICE_GROUP PRIMARY_KEY="722G0">
  <NAME>OPSTOOLS</NAME>
+
    <NAME>OPSTOOLS</NAME>
  <DESCRIPTION>All EGI Operational Tools</DESCRIPTION>
+
    <DESCRIPTION>All EGI Operational Tools</DESCRIPTION>
  <MONITORED>Y</MONITORED>
+
    <MONITORED>Y</MONITORED>
  <CONTACT_EMAIL>gocdb-admins@mailtalk.ac.uk</CONTACT_EMAIL>
+
    <CONTACT_EMAIL>gocdb-admins@mailtalk.ac.uk</CONTACT_EMAIL>
  <GOCDB_PORTAL_URL> https://elided </GOCDB_PORTAL_URL>
+
    <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service_Group&amp;id=722</GOCDB_PORTAL_URL>
  <SERVICE_ENDPOINT>
+
    <SERVICE_ENDPOINT PRIMARY_KEY="4112G0">
 +
      <HOSTNAME>apel-broker.esc.rl.ac.uk</HOSTNAME>
 +
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4112</GOCDB_PORTAL_URL>
 +
      <SERVICE_TYPE>egi.APELRepository</SERVICE_TYPE>
 +
      <HOST_IP/>
 +
      <HOST_IPV6/>
 +
      <HOSTDN/>
 +
      <IN_PRODUCTION>Y</IN_PRODUCTION>
 +
      <NODE_MONITORED>Y</NODE_MONITORED>
 +
      <ENDPOINTS/>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS/>
 +
    </SERVICE_ENDPOINT>
 +
    <SERVICE_ENDPOINT PRIMARY_KEY="4113G0">
 +
      <HOSTNAME>metrics.egi.eu</HOSTNAME>
 +
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4113</GOCDB_PORTAL_URL>
 +
      <SERVICE_TYPE>egi.MetricsPortal</SERVICE_TYPE>
 +
      <HOST_IP/>
 +
      <HOST_IPV6/>
 +
      <HOSTDN/>
 +
      <IN_PRODUCTION>Y</IN_PRODUCTION>
 +
      <NODE_MONITORED>Y</NODE_MONITORED>
 +
      <ENDPOINTS/>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS/>
 +
    </SERVICE_ENDPOINT>
 +
    <SERVICE_ENDPOINT PRIMARY_KEY="4178G0">
 +
      <HOSTNAME>accounting.egi.eu</HOSTNAME>
 +
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4178</GOCDB_PORTAL_URL>
 +
      <SERVICE_TYPE>egi.AccountingPortal</SERVICE_TYPE>
 +
      <HOST_IP/>
 +
      <HOST_IPV6/>
 +
      <HOSTDN/>
 +
      <IN_PRODUCTION>Y</IN_PRODUCTION>
 +
      <NODE_MONITORED>Y</NODE_MONITORED>
 +
      <ENDPOINTS/>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS/>
 +
    </SERVICE_ENDPOINT>
 +
    <SERVICE_ENDPOINT PRIMARY_KEY="4179G0">
 +
      <HOSTNAME>ggus.eu</HOSTNAME>
 +
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4179</GOCDB_PORTAL_URL>
 +
      <SERVICE_TYPE>egi.GGUS</SERVICE_TYPE>
 +
      <HOST_IP/>
 +
      <HOST_IPV6/>
 +
      <HOSTDN/>
 +
      <IN_PRODUCTION>Y</IN_PRODUCTION>
 +
      <NODE_MONITORED>Y</NODE_MONITORED>
 +
      <ENDPOINTS/>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS/>
 +
    </SERVICE_ENDPOINT>
 +
    <SERVICE_ENDPOINT PRIMARY_KEY="4180G0">
 
       <HOSTNAME>goc.egi.eu</HOSTNAME>
 
       <HOSTNAME>goc.egi.eu</HOSTNAME>
       <GOCDB_PORTAL_URL>https://elided</GOCDB_PORTAL_URL>
+
       <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4180</GOCDB_PORTAL_URL>
 
       <SERVICE_TYPE>egi.GOCDB</SERVICE_TYPE>
 
       <SERVICE_TYPE>egi.GOCDB</SERVICE_TYPE>
 
       <HOST_IP/>
 
       <HOST_IP/>
 +
      <HOST_IPV6/>
 
       <HOSTDN>/C=UK/O=eScience/OU=CLRC/L=RAL/CN=goc.egi.eu</HOSTDN>
 
       <HOSTDN>/C=UK/O=eScience/OU=CLRC/L=RAL/CN=goc.egi.eu</HOSTDN>
 
       <IN_PRODUCTION>Y</IN_PRODUCTION>
 
       <IN_PRODUCTION>Y</IN_PRODUCTION>
 
       <NODE_MONITORED>Y</NODE_MONITORED>
 
       <NODE_MONITORED>Y</NODE_MONITORED>
  </SERVICE_ENDPOINT>  
+
      <ENDPOINTS>
  <SERVICE_ENDPOINT>
+
        <ENDPOINT>
       …elided…
+
          <ID>6313</ID>
  </SERVICE_ENDPOINT>
+
          <NAME>ProductionPortalInstance</NAME>
</SERVICE_GROUP>
+
          <EXTENSIONS/>
 +
          <URL>https://goc.egi.eu/portal</URL>
 +
          <INTERFACENAME>egi.GOCDB.Portal</INTERFACENAME>
 +
        </ENDPOINT>
 +
        <ENDPOINT>
 +
          <ID>6314</ID>
 +
          <NAME>Production PI base url</NAME>
 +
          <EXTENSIONS/>
 +
          <URL>https://goc.egi.eu/gocdbpi</URL>
 +
          <INTERFACENAME>egi.GOCDB.PI</INTERFACENAME>
 +
        </ENDPOINT>
 +
        <ENDPOINT>
 +
          <ID>6355</ID>
 +
          <NAME>Failover PI</NAME>
 +
          <EXTENSIONS/>
 +
          <URL>https://goc.dl.ac.uk/gocdbpi</URL>
 +
          <INTERFACENAME>egi.GOCDB.PI</INTERFACENAME>
 +
        </ENDPOINT>
 +
        <ENDPOINT>
 +
          <ID>6356</ID>
 +
          <NAME>Failover portal</NAME>
 +
          <EXTENSIONS/>
 +
          <URL>https://goc.dl.ac.uk/portal</URL>
 +
          <INTERFACENAME>egi.GOCDB.Portal</INTERFACENAME>
 +
        </ENDPOINT>
 +
      </ENDPOINTS>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS>
 +
        <EXTENSION>
 +
          <LOCAL_ID>1</LOCAL_ID>
 +
          <KEY>TEST_CHARGE</KEY>
 +
          <VALUE>10</VALUE>
 +
        </EXTENSION>
 +
      </EXTENSIONS>
 +
    </SERVICE_ENDPOINT>
 +
    <SERVICE_ENDPOINT PRIMARY_KEY="4185G0">
 +
      <HOSTNAME>gridview.cern.ch</HOSTNAME>
 +
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4185</GOCDB_PORTAL_URL>
 +
      <SERVICE_TYPE>egi.GRIDVIEW</SERVICE_TYPE>
 +
      <HOST_IP/>
 +
      <HOST_IPV6/>
 +
      <HOSTDN/>
 +
      <IN_PRODUCTION>Y</IN_PRODUCTION>
 +
      <NODE_MONITORED>Y</NODE_MONITORED>
 +
      <ENDPOINTS/>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS/>
 +
    </SERVICE_ENDPOINT>
 +
    <SERVICE_ENDPOINT PRIMARY_KEY="4186G0">
 +
      <HOSTNAME>gstat.egi.eu</HOSTNAME>
 +
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4186</GOCDB_PORTAL_URL>
 +
      <SERVICE_TYPE>egi.GSTAT</SERVICE_TYPE>
 +
      <HOST_IP/>
 +
      <HOST_IPV6/>
 +
      <HOSTDN/>
 +
      <IN_PRODUCTION>Y</IN_PRODUCTION>
 +
       <NODE_MONITORED>Y</NODE_MONITORED>
 +
      <ENDPOINTS/>
 +
      <SCOPES>
 +
        <SCOPE>EGI</SCOPE>
 +
      </SCOPES>
 +
      <EXTENSIONS/>
 +
    </SERVICE_ENDPOINT>
 +
    <SCOPES>
 +
      <SCOPE>EGI</SCOPE>
 +
    </SCOPES>
 +
    <EXTENSIONS/>
 +
  </SERVICE_GROUP>
 
</results>
 
</results>
</pre>
+
 
 +
</Source>
  
  
 
[[GOCDB/PI/Technical Documentation|Back to GOCDB technical Documentation main page]]
 
[[GOCDB/PI/Technical Documentation|Back to GOCDB technical Documentation main page]]

Latest revision as of 14:26, 16 December 2016

Main EGI.eu operations services Support Documentation Tools Activities Performance Technology Catch-all Services Resource Allocation Security


GOC DB menu: Home Documentation Index


Method: get_service_group

Description Returns a list of service groups and the service endpoints under those groups.
Protection Level Protected (level 2)

Entry point

parameters

parameter effect format/value(s) default example
service_group_name Only return info for the service group with specified site name any service group name
all  ?method=get_service_group&service_group_name=OPSTOOLS
scope Show only sites with the requested scope-tags - a list of currently supported scope tags can be found here A comma separated list of scope-tag values or an empty value to return all scopes, i.e. '&scope=' EGI  ?method=get_service_group&scope=Local
scope_match Match 'all' or 'any' of the specified scope-tags 'all' or 'any' all  ?method=get_service_group&scope=Local,EGI&scope_match=any
extensions Limit results by one or many key value pairs See Extensions Mechanism none  ?method=get_service_group&extensions=(KeyName=KeyValue)
Docs for cursor params coming soon. Limit results and use cursor paging to iterate over all results See here for info


Output Example

<?xml version="1.0" encoding="UTF-8"?>
<results>
  <SERVICE_GROUP PRIMARY_KEY="722G0">
    <NAME>OPSTOOLS</NAME>
    <DESCRIPTION>All EGI Operational Tools</DESCRIPTION>
    <MONITORED>Y</MONITORED>
    <CONTACT_EMAIL>gocdb-admins@mailtalk.ac.uk</CONTACT_EMAIL>
    <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service_Group&amp;id=722</GOCDB_PORTAL_URL>
    <SERVICE_ENDPOINT PRIMARY_KEY="4112G0">
      <HOSTNAME>apel-broker.esc.rl.ac.uk</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4112</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.APELRepository</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN/>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS/>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS/>
    </SERVICE_ENDPOINT>
    <SERVICE_ENDPOINT PRIMARY_KEY="4113G0">
      <HOSTNAME>metrics.egi.eu</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4113</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.MetricsPortal</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN/>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS/>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS/>
    </SERVICE_ENDPOINT>
    <SERVICE_ENDPOINT PRIMARY_KEY="4178G0">
      <HOSTNAME>accounting.egi.eu</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4178</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.AccountingPortal</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN/>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS/>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS/>
    </SERVICE_ENDPOINT>
    <SERVICE_ENDPOINT PRIMARY_KEY="4179G0">
      <HOSTNAME>ggus.eu</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4179</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.GGUS</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN/>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS/>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS/>
    </SERVICE_ENDPOINT>
    <SERVICE_ENDPOINT PRIMARY_KEY="4180G0">
      <HOSTNAME>goc.egi.eu</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4180</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.GOCDB</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN>/C=UK/O=eScience/OU=CLRC/L=RAL/CN=goc.egi.eu</HOSTDN>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS>
        <ENDPOINT>
          <ID>6313</ID>
          <NAME>ProductionPortalInstance</NAME>
          <EXTENSIONS/>
          <URL>https://goc.egi.eu/portal</URL>
          <INTERFACENAME>egi.GOCDB.Portal</INTERFACENAME>
        </ENDPOINT>
        <ENDPOINT>
          <ID>6314</ID>
          <NAME>Production PI base url</NAME>
          <EXTENSIONS/>
          <URL>https://goc.egi.eu/gocdbpi</URL>
          <INTERFACENAME>egi.GOCDB.PI</INTERFACENAME>
        </ENDPOINT>
        <ENDPOINT>
          <ID>6355</ID>
          <NAME>Failover PI</NAME>
          <EXTENSIONS/>
          <URL>https://goc.dl.ac.uk/gocdbpi</URL>
          <INTERFACENAME>egi.GOCDB.PI</INTERFACENAME>
        </ENDPOINT>
        <ENDPOINT>
          <ID>6356</ID>
          <NAME>Failover portal</NAME>
          <EXTENSIONS/>
          <URL>https://goc.dl.ac.uk/portal</URL>
          <INTERFACENAME>egi.GOCDB.Portal</INTERFACENAME>
        </ENDPOINT>
      </ENDPOINTS>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS>
        <EXTENSION>
          <LOCAL_ID>1</LOCAL_ID>
          <KEY>TEST_CHARGE</KEY>
          <VALUE>10</VALUE>
        </EXTENSION>
      </EXTENSIONS>
    </SERVICE_ENDPOINT>
    <SERVICE_ENDPOINT PRIMARY_KEY="4185G0">
      <HOSTNAME>gridview.cern.ch</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4185</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.GRIDVIEW</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN/>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS/>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS/>
    </SERVICE_ENDPOINT>
    <SERVICE_ENDPOINT PRIMARY_KEY="4186G0">
      <HOSTNAME>gstat.egi.eu</HOSTNAME>
      <GOCDB_PORTAL_URL>https://goc.egi.eu/portal/index.php?Page_Type=Service&amp;id=4186</GOCDB_PORTAL_URL>
      <SERVICE_TYPE>egi.GSTAT</SERVICE_TYPE>
      <HOST_IP/>
      <HOST_IPV6/>
      <HOSTDN/>
      <IN_PRODUCTION>Y</IN_PRODUCTION>
      <NODE_MONITORED>Y</NODE_MONITORED>
      <ENDPOINTS/>
      <SCOPES>
        <SCOPE>EGI</SCOPE>
      </SCOPES>
      <EXTENSIONS/>
    </SERVICE_ENDPOINT>
    <SCOPES>
      <SCOPE>EGI</SCOPE>
    </SCOPES>
    <EXTENSIONS/>
  </SERVICE_GROUP>
</results>


Back to GOCDB technical Documentation main page