Difference between revisions of "GOCDB/PI/get roc contacts method"

From EGIWiki
< GOCDB‎ | PI
Jump to: navigation, search
m (Created page with '== Method: get_roc_contacts == {| {{egi-table}} |- | '''Description''' || Returns NGI contact details, including NGI contact mail address and list of NGI staff |- | '''Protecti…')
 
m (Output Example)
Line 26: Line 26:
 
=== Output Example ===
 
=== Output Example ===
  
<?xml version="1.0"?>
+
<?xml version="1.0"?>
<results>
+
<results>
 
   <ROC ROC_NAME="MyRoc">
 
   <ROC ROC_NAME="MyRoc">
    <ROCNAME>MyROC</ROCNAME>
+
  <ROCNAME>MyROC</ROCNAME>
    <MAIL_CONTACT>contact@roc.com</MAIL_CONTACT>
+
  <MAIL_CONTACT>contact@roc.com</MAIL_CONTACT>
    <CONTACT USER_ID="999" PRIMARY_KEY="45177G0">
+
  <CONTACT USER_ID="999" PRIMARY_KEY="45177G0">
      <FORENAME>Foo</FORENAME>
+
    <FORENAME>Foo</FORENAME>
      <SURNAME>Bar</SURNAME>
+
    <SURNAME>Bar</SURNAME>
      <TITLE>Dr</TITLE>
+
    <TITLE>Dr</TITLE>
      <DESCRIPTION>this is our ROC manager</DESCRIPTION>
+
    <DESCRIPTION>this is our ROC manager</DESCRIPTION>
      <EMAIL>foo.bar@roc.com</EMAIL>
+
    <EMAIL>foo.bar@roc.com</EMAIL>
      <TEL>999</TEL>
+
    <TEL>999</TEL>
      <WORKING_HOURS_START>10:00</WORKING_HOURS_START>
+
    <WORKING_HOURS_START>10:00</WORKING_HOURS_START>
      <WORKING_HOURS_END>19:00</WORKING_HOURS_END>
+
    <WORKING_HOURS_END>19:00</WORKING_HOURS_END>
      <CERTDN>
+
    <CERTDN>
        /C=ZZ/O=certif/OU=users/OU=roc.com/CN=Foo Bar
+
    /C=ZZ/O=certif/OU=users/OU=roc.com/CN=Foo Bar
      </CERTDN>
+
    </CERTDN>
      <ROLE_NAME>Regional Manager</ROLE_NAME>
+
    <ROLE_NAME>Regional Manager</ROLE_NAME>
    </CONTACT>
+
  </CONTACT>
    <CONTACT USER_ID="666" PRIMARY_KEY="12345G0">
+
  <CONTACT USER_ID="666" PRIMARY_KEY="12345G0">
      <FORENAME>Ferdinand</FORENAME>
+
    <FORENAME>Ferdinand</FORENAME>
      <SURNAME>Satan</SURNAME>
+
    <SURNAME>Satan</SURNAME>
      <TITLE>Mr</TITLE>
+
    <TITLE>Mr</TITLE>
      <DESCRIPTION>new staff</DESCRIPTION>
+
    <DESCRIPTION>new staff</DESCRIPTION>
      <EMAIL>ferdinand@roc.com</EMAIL>
+
    <EMAIL>ferdinand@roc.com</EMAIL>
      <TEL>666</TEL>
+
    <TEL>666</TEL>
      <WORKING_HOURS_START>00:00</WORKING_HOURS_START>
+
    <WORKING_HOURS_START>00:00</WORKING_HOURS_START>
      <WORKING_HOURS_END>23:59</WORKING_HOURS_END>
+
    <WORKING_HOURS_END>23:59</WORKING_HOURS_END>
      <CERTDN>
+
    <CERTDN>
        /C=ZZ/O=certif/OU=users/OU=roc.com/CN=Ferdinand Satan
+
    /C=ZZ/O=certif/OU=users/OU=roc.com/CN=Ferdinand Satan
      </CERTDN>
+
    </CERTDN>
      <ROLE_NAME>Regional Staff</ROLE_NAME>
+
    <ROLE_NAME>Regional Staff</ROLE_NAME>
    </CONTACT>
+
  </CONTACT>
 
   </ROC>
 
   </ROC>
</results>
+
</results>
  
 
[[GOCDB_Technical_Documentation|Back to GOCDB technical Documentation main page]]
 
[[GOCDB_Technical_Documentation|Back to GOCDB technical Documentation main page]]

Revision as of 13:50, 15 November 2010

Method: get_roc_contacts

Description Returns NGI contact details, including NGI contact mail address and list of NGI staff
Protection Level Protected (level 2)

Entry point

https://goc.gridops.org/gocdbpi/private/?method=get_roc_contacts

parameters

parameter effect format/value(s) default example
roc Limit results to the given ROC any ROC name all ?method=get_roc_contacts&roc=Russia

XML schema

https://goc.gridops.org/gocdbpi/private/?method=get_roc_contacts&output=xmlschema

Output Example

<?xml version="1.0"?>
<results>
 <ROC ROC_NAME="MyRoc">
  <ROCNAME>MyROC</ROCNAME>
  <MAIL_CONTACT>contact@roc.com</MAIL_CONTACT>
  <CONTACT USER_ID="999" PRIMARY_KEY="45177G0">
   <FORENAME>Foo</FORENAME>
   <SURNAME>Bar</SURNAME>
   <TITLE>Dr</TITLE>
   <DESCRIPTION>this is our ROC manager</DESCRIPTION>
   <EMAIL>foo.bar@roc.com</EMAIL>
   <TEL>999</TEL>
   <WORKING_HOURS_START>10:00</WORKING_HOURS_START>
   <WORKING_HOURS_END>19:00</WORKING_HOURS_END>
   <CERTDN>
    /C=ZZ/O=certif/OU=users/OU=roc.com/CN=Foo Bar
   </CERTDN>
   <ROLE_NAME>Regional Manager</ROLE_NAME>
  </CONTACT>
  <CONTACT USER_ID="666" PRIMARY_KEY="12345G0">
   <FORENAME>Ferdinand</FORENAME>
   <SURNAME>Satan</SURNAME>
   <TITLE>Mr</TITLE>
   <DESCRIPTION>new staff</DESCRIPTION>
   <EMAIL>ferdinand@roc.com</EMAIL>
   <TEL>666</TEL>
   <WORKING_HOURS_START>00:00</WORKING_HOURS_START>
   <WORKING_HOURS_END>23:59</WORKING_HOURS_END>
   <CERTDN>
    /C=ZZ/O=certif/OU=users/OU=roc.com/CN=Ferdinand Satan
   </CERTDN>
   <ROLE_NAME>Regional Staff</ROLE_NAME>
  </CONTACT>
 </ROC>
</results>

Back to GOCDB technical Documentation main page