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 "Accounting Portal API Report Disciplines"

From EGIWiki
Jump to navigation Jump to search
Line 41: Line 41:
|RCs from the Cloud infrastructure.
|RCs from the Cloud infrastructure.
|}
|}
= Include Parent =
Optional attribute
If true, disciplines from the parent discipline if exists are included when not present in sibling disciplines.


= Disciplines =
= Disciplines =
A list of HTTP escaped discipline names separated by semicolons (%3B).
A list of HTTP escaped discipline names separated by semicolons (%3B).
= Output Format =
Optional attribute
{|class=wikitable
!Accepted Values for Data Selector
!Meaning
|-
|'''/JSON/'''
|Returns data as JSON (''Java Script Object Notation'') data.
|-
|'''/CSV/'''
|Returns data as CSV (''Comma Separated Values'') data.
|}


= Returns =
= Returns =

Revision as of 09:26, 3 August 2017

Resource Centre Report

This function returns reports from disciplines in the EGI infrastructure.

/report/disciplines/<start_date>/<end_date>/<infrastructure_type>/<include_parent>/<disciplines>/<output_format>/

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.

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.

Include Parent

Optional attribute If true, disciplines from the parent discipline if exists are included when not present in sibling disciplines.


Disciplines

A list of HTTP escaped discipline names separated by semicolons (%3B).

Output Format

Optional attribute

Accepted Values for Data Selector Meaning
/JSON/ Returns data as JSON (Java Script Object Notation) data.
/CSV/ Returns data as CSV (Comma Separated Values) data.

Returns

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

In case of error: [HTTP Error Code]

Output Example

https://accounting.egi.eu/report/disciplines/2016/7/2017/6/htc/Natural%20Sciences/
{"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