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.

Accounting Portal API Report Resource Centres

From EGIWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Resource Centre Report

This function returns reports from resource centers in the EGI infrastructure.

/report/resource_centres/<start_date>/<end_date>/<report_type>/<infra_type>/<output_type>/

All parameters except scope can be omitted and defaults will be selected, but all of them will need to be included otherwise.

Dates

Optional attribute

Format:

/StartYear/StartMonth/EndYear/EndMonth/

The date format is:

/YYYY/MM/YYYY/MM/

The date indicated by StartYear/StartMonth needs to be BEFORE EndYear/EndMonth.

Report Type

Mandatory attribute

Format:

<report_type>

The Report Type parameter determines the type of report displayed.

Accepted Values for Report Type Name Description
byCountry By Country All the RCs by Country report.
allRC All RCs All the RCs report
top 10 Top 10 Top 10 RCs.
top 100 Top 100 Top 100 RCs.

Infrastructure Type

Mandatory attribute

Format:

<infra_type>

The Infrastructure Type parameter determines the type of infrastructure displayed in the report.

Accepted Values for Infrastructure Type Name Description
htc HTC RCs from the HTC infrastructure
cloud Cloud RCs from the Cloud infrastructure.

Returns

In case of success: 200 OK HTTP Code and output.

In case of error: [HTTP Error Code]

Output Example

https://accounting-pre.egi.cesga.es/report/resource_centres/2016/6/2017/6/top10/htc/JSON/
{"CERN-PROD":{"Natural Sciences":["3257812766.5179","2620206789.4898","70691233"],"Support Activities":["80648.2013","80377.3211","407134"],"Total":
["3257893414.7192","2620287166.8109","71098367"]},"RAL-LCG2":{"Natural Sciences":["1245711706.9465","910815713.2166","14064482"],"Medical and Health Sciences":
["1457397.3259","1457397.3259","26575"],"Support Activities":["5305.7321","5305.7321","76924"],"Total":["1247174410.0045","912278416.2746","14167981"]},"INFN-T1":
{"Natural Sciences":["1162427794.7706","866563245.9048","16405279"],"Medical and Health Sciences":["1447928.7056","1447928.7056","89655"],"Support Activities":
["401641.8206","401641.4015","228136"],"Total":["1164277365.2968","868412816.0119","16723070"]},"FZK-LCG2":{"Natural Sciences":
["1102199100.0512","813841517.9970","13619630"],"Support Activities":["24748.4439","24651.3021","265668"],"Total":
["1102223848.4951","813866169.2991","13885298"]},"IN2P3-CC":{"Natural Sciences":["1011433861.7974","513374622.1045","10067658"],"Support Activities":
["2668913.6480","2637997.3875","299924"],"Medical and Health Sciences":["660209.2911","660209.2911","73794"],"Total":
["1014762984.7365","516672828.7831","10441376"]},"GRIF":{"Natural Sciences":["892673735.4831","586376549.8276","10292024"],"Support Activities":
["34971168.1328","34824676.8503","1853876"],"Medical and Health Sciences":["11954160.4388","11954160.4388","197079"],"Total":
["939599064.0547","633155387.1167","12342979"]},"DESY-HH":{"Natural Sciences":["866467516.4496","308242751.0709","7579229"],"Medical and Health Sciences":
["307413.4840","307413.4840","41613"],"Support Activities":["17380.6866","17380.2278","162748"],"Total":["866792310.6202","308567544.7827","7783590"]},"RRC-KI-T1":
{"Natural Sciences":["589812011.3947","443859219.0711","4934034"],"Support Activities":["21370.7077","21370.7077","93058"],"Total":
["589833382.1024","443880589.7788","5027092"]},"TOKYO-LCG2":{"Natural Sciences":["560133815.9023","274603734.2372","8825204"],"Support Activities":
["31457.9093","31457.9093","163305"],"Total":["560165273.8116","274635192.1465","8988509"]},"SARA-MATRIX":{"Natural Sciences":
["476925113.0745","334904449.0259","5609010"],"Medical and Health Sciences":["7558410.9016","7463459.7793","171854"],"Engineering and Technology":
["3809288.7705","3759840.9332","31329"],"Support Activities":["754719.0704","584176.5997","195908"],"Total":["481336525.1321","339099815.3278","5940980"]},"TRIUMF-
LCG2":{"Natural Sciences":["435690335.9641","170739439.6338","21472976"],"Support Activities":["6578.9309","6578.9309","106312"]},"NIKHEF-ELPROD":{"Natural Sciences":
["432720987.8969","360200351.8564","6799761"],"Medical and Health Sciences":["5970826.9028","5970735.1610","130579"],"Engineering and Technology":
["1051460.3525","1051460.3525","21684"],"Support Activities":["15074.3888","15074.3888","192692"]},"CSCS-LCG2":{"Natural Sciences":
["409667215.0832","217015986.3337","2790756"],"Support Activities":["5606.8808","2150.6961","69946"]},"pic":{"Natural Sciences":
["369324356.0635","160712030.5415","6419908"],"Support Activities":["25038.1564","24900.9469","213283"]},"NDGF-T1":{"Natural Sciences":
["341787899.6775","191971420.1267","4746456"],"Support Activities":["2424.6738","2321.8896","67212"]},"INFN-LNL-2":{"Natural Sciences":
...}]

Back to Accounting Portal API