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 count per country"

From EGIWiki
< GOCDB‎ | PI
Jump to navigation Jump to search
(Created page with "Doc comming soon")
 
Line 1: Line 1:
Doc comming soon
{{Template:Op menubar}}
{{Template:GOCDB_menubar}}
{{TOC_right}}
[[Category:GOCDB]]
== Method: get_site_count_per_country ==
 
{| {{egi-table}}
|-
| '''Description''' || Returns a list of countries with site count
|-
| '''Protection Level''' || Public (level 1)
|}
 
=== Entry point ===
 
https://goc.egi.eu/gocdbpi/public/?method=get_site_count_per_country
 
=== parameters ===
 
{| {{egi-table}}
! parameter !! effect !! format/value(s) !! default !! example
|-
| certification_status || Limit site count to sites with given certification status || one of "Candidate", "Uncertified", "Certified", "Closed", Suspended" || all || ?method=get_site_list&certification_status=Certified
|-
| production_status || Limit site count to a given production infrastructure || one of "Production" or "Test" <strike>"PPS" "SC"(deprecated)</strike>  || all || ?method=get_site_list&production_status=Production
|-
| scope
| Count only sites with the requested scope-tags (Local and EGI are currently the only available scopes)
| A comma separated list of scope-tag values or an empty value to return all scopes, i.e. '&amp;scope='
| EGI
| &nbsp;?method=get_site_count_per_country&amp;scope=Local
|-
| scope_match
| Match 'all' or 'any' of the specified scope-tags
| 'all' or 'any'
| all
| &nbsp;?method=get_site_count_per_country&amp;scope=Local,EGI&scope_match=any
|-
|}
 
 
=== Output Example ===
<Source Lang="XML">
<?xml version="1.0"?>
<results>
  <SITE><COUNTRY>Afghanistan</COUNTRY><COUNT>0</COUNT></SITE>
  <SITE><COUNTRY>Albania</COUNTRY><COUNT>0</COUNT></SITE>
  <SITE><COUNTRY>Algeria</COUNTRY><COUNT>1</COUNT></SITE>
</results>
</Source>
[[GOCDB/PI/Technical_Documentation|Back to GOCDB technical Documentation main page]]

Revision as of 10:22, 12 June 2014

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_site_count_per_country

Description Returns a list of countries with site count
Protection Level Public (level 1)

Entry point

https://goc.egi.eu/gocdbpi/public/?method=get_site_count_per_country

parameters

parameter effect format/value(s) default example
certification_status Limit site count to sites with given certification status one of "Candidate", "Uncertified", "Certified", "Closed", Suspended" all ?method=get_site_list&certification_status=Certified
production_status Limit site count to a given production infrastructure one of "Production" or "Test" "PPS" "SC"(deprecated) all ?method=get_site_list&production_status=Production
scope Count only sites with the requested scope-tags (Local and EGI are currently the only available scopes) A comma separated list of scope-tag values or an empty value to return all scopes, i.e. '&scope=' EGI  ?method=get_site_count_per_country&scope=Local
scope_match Match 'all' or 'any' of the specified scope-tags 'all' or 'any' all  ?method=get_site_count_per_country&scope=Local,EGI&scope_match=any


Output Example

<?xml version="1.0"?>
 <results>
  <SITE><COUNTRY>Afghanistan</COUNTRY><COUNT>0</COUNT></SITE>
  <SITE><COUNTRY>Albania</COUNTRY><COUNT>0</COUNT></SITE>
  <SITE><COUNTRY>Algeria</COUNTRY><COUNT>1</COUNT></SITE>
 </results>

Back to GOCDB technical Documentation main page