Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "GOCDB/PI/get site method"

From EGIWiki
< GOCDB‎ | PI
Jump to navigation Jump to search
Line 16: Line 16:
* https://goc.egi.eu/gocdbpi_v4/private/?method=get_site (alias)
* https://goc.egi.eu/gocdbpi_v4/private/?method=get_site (alias)


=== parameters ===
=== parameters ===


{| {{egi-table}}
{|
! parameter !! effect !! format/value(s) !! default !! example
|-
|-
| sitename || Only return infos for site with specified site name || any sitename || all || ?method=get_site&sitename=RAL-LCG2
! parameter
! effect
! format/value(s)
! default
! example
|-
|-
| roc (ngi) || Limit results to sites belonging to given NGI || any NGI name || all || ?method=get_site&roc=NGI_DE
| sitename
| Only return infos for site with specified site name
| any sitename
| all  
| &nbsp;?method=get_site&amp;sitename=RAL-LCG2
|-
|-
| country || Limit results to sites belonging to given country || any country || all || ?method=get_site&country=Poland
| roc (ngi)
| Limit results to sites belonging to given NGI
| any NGI name
| all  
| &nbsp;?method=get_site&amp;roc=NGI_DE
|-
|-
| certification_status || Limit results to sites with given certification status || one of "Candidate", "Uncertified", "Certified", "Closed", Suspended" || all || ?method=get_site&certification_status=Certified
| country
| Limit results to sites belonging to given country
| any country
| all  
| &nbsp;?method=get_site&amp;country=Poland
|-
|-
| exclude_certification_status || Exclude from results sites with given certification status || one of "Candidate", "Uncertified", "Certified", "Closed", Suspended" || none || ?method=get_site&exclude_certification_status=Closed
| certification_status
| Limit results to sites with given certification status  
| one of "Candidate", "Uncertified", "Certified", "Closed", Suspended"  
| all
| &nbsp;?method=get_site&amp;certification_status=Certified
|-
|-
| production_status || Limit results to sites within given production infrastructure || one of "Production", "PPS", "Test" || all || ?method=get_site&production_status=PPS
| exclude_certification_status
| Exclude from results sites with given certification status
| one of "Candidate", "Uncertified", "Certified", "Closed", Suspended"  
| none
| &nbsp;?method=get_site&amp;exclude_certification_status=Closed
|-
|-
| scope(=Local) || Show only sites in the passed scope (Local is currently the only scope available) || "Local" || all || ?method=get_site&scope=Local
| production_status
| Limit results to sites within given production infrastructure
| one of "Production", "PPS", "Test"
| all
| &nbsp;?method=get_site&amp;production_status=PPS
|-
| scope(=Local)  
| Show only sites in the passed scope (Local is currently the only scope available)  
| "Local"  
| all  
| &nbsp;?method=get_site&amp;scope=Local
|}
|}



Revision as of 16:21, 18 April 2012

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


Tools menu: Main page Instructions for developers AAI Proxy Accounting Portal Accounting Repository AppDB ARGO GGUS GOCDB
Message brokers Licenses OTAGs Operations Portal Perun EGI Collaboration tools LToS EGI Workload Manager



Method: get_site - GOCDB4

Description Returns site information including contacts, grouped by site
Protection Level Protected (level 2)

Entry point

parameters

parameter effect format/value(s) default example
sitename Only return infos for site with specified site name any sitename all  ?method=get_site&sitename=RAL-LCG2
roc (ngi) Limit results to sites belonging to given NGI any NGI name all  ?method=get_site&roc=NGI_DE
country Limit results to sites belonging to given country any country all  ?method=get_site&country=Poland
certification_status Limit results to sites with given certification status one of "Candidate", "Uncertified", "Certified", "Closed", Suspended" all  ?method=get_site&certification_status=Certified
exclude_certification_status Exclude from results sites with given certification status one of "Candidate", "Uncertified", "Certified", "Closed", Suspended" none  ?method=get_site&exclude_certification_status=Closed
production_status Limit results to sites within given production infrastructure one of "Production", "PPS", "Test" all  ?method=get_site&production_status=PPS
scope(=Local) Show only sites in the passed scope (Local is currently the only scope available) "Local" all  ?method=get_site&scope=Local

XML schema

https://goc.egi.eu/gocdbpi/private/?method=get_site&output=xmlschema

Output Example

<?xml version="1.0"?>
<results>
 <SITE ID="1" PRIMARY_KEY="194G0" NAME="RAL-LCG2">
  <PRIMARY_KEY>194G0</PRIMARY_KEY>
  <SHORT_NAME>RAL-LCG2</SHORT_NAME>
  <GOCDB_PORTAL_URL>
   https://next.gocdb.eu/portal/index.php?Page_Type=View_Object&object_id=1133&grid_id=0
  </GOCDB_PORTAL_URL>
  <OFFICIAL_NAME>RAL, GridPP Tier-1 Computing, Oxfordshire UK</OFFICIAL_NAME>
  <SITE_DESCRIPTION>Rutherford Appleton Laboratory - Tier1</SITE_DESCRIPTION>
  <HOME_URL>http://mywebsite.com</HOME_URL>
  <CONTACT_EMAIL>contact@demo.com</CONTACT_EMAIL>
  <CONTACT_TEL>+44 (0) 1235 446777 </CONTACT_TEL>
  <ALARM_EMAIL>alarm@demo.com</ALARM_EMAIL>
  <GIIS_URL> ldap://site-bdii.gridpp.rl.ac.uk:2170/mds-vo-name=RAL-LCG2,o=grid
  </GIIS_URL>
  <TIER>2</TIER>
  <COUNTRY_CODE>GB</COUNTRY_CODE>
  <COUNTRY>United Kingdom</COUNTRY>
  <ROC>UKI</ROC>
  <SUBGRID>Tier1A</SUBGRID>
  <PRODUCTION_INFRASTRUCTURE>Production</PRODUCTION_INFRASTRUCTURE>
  <CERTIFICATION_STATUS>Certified</CERTIFICATION_STATUS>
  <TIMEZONE>Europe/London</TIMEZONE>
  <LATITUDE>51</LATITUDE>
  <LONGITUDE>-1</LONGITUDE>
  <DOMAIN>
   <DOMAIN_NAME>gridpp.rl.ac.uk</DOMAIN_NAME>
  </DOMAIN>
 </SITE>
</results>

Back to GOCDB technical Documentation main page