GET /xdusage/auth_test

Examples

If the authorization information provided in the HTTP request headers is valid,
the response will be:

  200 OK
  {
    "message": null,
    "result": null
  }

otherwise it will be:

  401 Unauthorized
  {
    "message": null,
    "result": null
  }

GET /xdusage/v1/people/by_username/<resource>/<username>

Examples

GET /xdusage/v1/people/by_username/stampede.tacc.xsede/mshapiro
{
    "message": null,
    "result": [
        {
            "person_id": 150,
            "last_name": "Shapiro",
            "first_name": "Michael",
            "is_su": false
        }
    ]
}

GET /xdusage/v1/people/by_lastname/<lastname>

Examples

GET /xdusage/v1/people/by_lastname/Shapiro
{
    "message": null,
    "result": [
        {
            "person_id": 150,
            "last_name": "Shapiro",
            "first_name": "Michael",
            "is_su": false
        },
        {
            "person_id": 34141,
            "last_name": "Shapiro",
            "first_name": "Lilly",
            "is_su": false
        },
        {
            "person_id": 16140,
            "last_name": "Shapiro",
            "first_name": "Matthew",
            "is_su": false
        },
        {
            "person_id": 7279,
            "last_name": "Shapiro",
            "first_name": "Daniel",
            "is_su": false
        },
        {
            "person_id": 2118,
            "last_name": "Shapiro",
            "first_name": "Jesse",
            "is_su": false
        },
        {
            "person_id": 3349,
            "last_name": "Shapiro",
            "first_name": "Alan",
            "is_su": false
        },
        {
            "person_id": 2599,
            "last_name": "Shapiro",
            "first_name": "Paul",
            "is_su": false
        },
        {
            "person_id": 35939,
            "last_name": "Shapiro",
            "first_name": "Daniel",
            "is_su": false
        },
        {
            "person_id": 687,
            "last_name": "Shapiro",
            "first_name": "Stuart",
            "is_su": false
        },
        {
            "person_id": 26042,
            "last_name": "Shapiro",
            "first_name": "Lori",
            "is_su": false
        },
        {
            "person_id": 20697,
            "last_name": "Shapiro",
            "first_name": "Evan",
            "is_su": false
        },
        {
            "person_id": 14537,
            "last_name": "Shapiro",
            "first_name": "Joshua",
            "is_su": false
        }
    ]
}

GET /xdusage/v1/resources/<resource_name>


GET /xdusage/v1/projects

Examples

GET /xdusage/v1/projects?projects=CHE080068N,CHE150034&person_id=55&resource_id=2796,2801&active_only&not_expired
{
    "message": null,
    "result": [
        {
            "account_id": 3759,
            "charge_number": "TG-CHE080068N",
            "request_id": 19315,
            "grant_number": "CHE080068N",
            "proposal_number": "CHE070035",
            "project_title": "Science and Engineering Applications Grid (SEAGrid): A Gateway for Simulation of Molecular and Material Structures and Dynamics",
            "resource_id": 2796,
            "resource_name": "gordon.sdsc.teragrid",
            "proj_start": "2016-01-01",
            "proj_end": "2016-12-31",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 55,
            "pi_first_name": "Sudhakar",
            "pi_middle_name": "V.",
            "pi_last_name": "Pamidighantam",
            "pi_portal_username": "spamidig"
        },
        {
            "account_id": 3759,
            "charge_number": "TG-CHE080068N",
            "request_id": 19315,
            "grant_number": "CHE080068N",
            "proposal_number": "CHE070035",
            "project_title": "Science and Engineering Applications Grid (SEAGrid): A Gateway for Simulation of Molecular and Material Structures and Dynamics",
            "resource_id": 2801,
            "resource_name": "stampede.tacc.xsede",
            "proj_start": "2016-01-01",
            "proj_end": "2016-12-31",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 55,
            "pi_first_name": "Sudhakar",
            "pi_middle_name": "V.",
            "pi_last_name": "Pamidighantam",
            "pi_portal_username": "spamidig"
        },
        {
            "account_id": 10527,
            "charge_number": "TG-CHE150034",
            "request_id": 18306,
            "grant_number": "CHE150034",
            "proposal_number": "CHE150034",
            "project_title": "Domain Champion Startup Allocation",
            "resource_id": 2796,
            "resource_name": "gordon.sdsc.teragrid",
            "proj_start": "2015-05-28",
            "proj_end": "2016-05-27",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 55,
            "pi_first_name": "Sudhakar",
            "pi_middle_name": "V.",
            "pi_last_name": "Pamidighantam",
            "pi_portal_username": "spamidig"
        },
        {
            "account_id": 10527,
            "charge_number": "TG-CHE150034",
            "request_id": 18306,
            "grant_number": "CHE150034",
            "proposal_number": "CHE150034",
            "project_title": "Domain Champion Startup Allocation",
            "resource_id": 2801,
            "resource_name": "stampede.tacc.xsede",
            "proj_start": "2015-05-28",
            "proj_end": "2016-05-27",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 55,
            "pi_first_name": "Sudhakar",
            "pi_middle_name": "V.",
            "pi_last_name": "Pamidighantam",
            "pi_portal_username": "spamidig"
        }
    ]
}

Params

Param name Description
projects
optional

comma-separated list of charge/grant numbers

resource_id
optional

comma-separated list of resource_ids

person_id
optional

limit projects to those for this person_id

active_only
optional

only active projects

not_expired
optional

only non expired projects


GET /xdusage/v1/accounts/<account_id>/<resource_id>

Examples

GET /xdusage/v1/accounts/10856/2815
{
    "message": null,
    "result": [
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 34502,
            "first_name": "Chengkai",
            "middle_name": "",
            "last_name": "Li",
            "is_pi": true,
            "portal_username": "chengkai",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 36649,
            "first_name": "Rohit",
            "middle_name": "Ravi Kumar",
            "last_name": "Bhoopalam",
            "is_pi": false,
            "portal_username": "rohitb",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 37694,
            "first_name": "Nandish",
            "middle_name": "",
            "last_name": "Jayaram",
            "is_pi": false,
            "portal_username": "njayaram",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 36644,
            "first_name": "Sumesh",
            "middle_name": "",
            "last_name": "Nellemakkal Balan",
            "is_pi": false,
            "portal_username": "sumeshnb",
            "acct_state": "dead"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 38852,
            "first_name": "Afroza",
            "middle_name": "",
            "last_name": "Sultana",
            "is_pi": false,
            "portal_username": "kakon",
            "acct_state": "active"
        }
    ]
}

GET /xdusage/v1/accounts/10856/2815?person_id=36644,37694
{
    "message": null,
    "result": [
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 37694,
            "first_name": "Nandish",
            "middle_name": "",
            "last_name": "Jayaram",
            "is_pi": false,
            "portal_username": "njayaram",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 36644,
            "first_name": "Sumesh",
            "middle_name": "",
            "last_name": "Nellemakkal Balan",
            "is_pi": false,
            "portal_username": "sumeshnb",
            "acct_state": "dead"
        }
    ]
}

GET /xdusage/v1/accounts/10856/2815?active_only
{
    "message": null,
    "result": [
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 34502,
            "first_name": "Chengkai",
            "middle_name": "",
            "last_name": "Li",
            "is_pi": true,
            "portal_username": "chengkai",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 36649,
            "first_name": "Rohit",
            "middle_name": "Ravi Kumar",
            "last_name": "Bhoopalam",
            "is_pi": false,
            "portal_username": "rohitb",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 37694,
            "first_name": "Nandish",
            "middle_name": "",
            "last_name": "Jayaram",
            "is_pi": false,
            "portal_username": "njayaram",
            "acct_state": "active"
        },
        {
            "account_id": 10856,
            "charge_number": "TG-CIE150028",
            "request_id": 18923,
            "grant_number": "CIE150028",
            "proposal_number": "CIE150028",
            "project_title": "Research Projects at the IDIR Lab",
            "resource_id": 2815,
            "resource_name": "wrangler.tacc.xsede",
            "proj_start": "2015-10-02",
            "proj_end": "2016-10-01",
            "proj_state": "active",
            "is_expired": false,
            "pi_person_id": 34502,
            "pi_first_name": "Chengkai",
            "pi_middle_name": "",
            "pi_last_name": "Li",
            "pi_portal_username": "chengkai",
            "person_id": 38852,
            "first_name": "Afroza",
            "middle_name": "",
            "last_name": "Sultana",
            "is_pi": false,
            "portal_username": "kakon",
            "acct_state": "active"
        }
    ]
}

Params

Param name Description
person_id
optional

comma-separated list of person_ids

active_only
optional

only active accounts


GET /xdusage/v1/allocations/<account_id>/<resource_id>/current

Examples

GET /xdusage/v1/allocations/2/1/current
{
    "message": null,
    "result": {
        "account_id": 2,
        "resource_id": 1,
        "allocation_id": 8931,
        "alloc_start": "2009-10-01",
        "alloc_end": "2010-06-30",
        "su_allocated": 7,
        "su_remaining": 0.4633760683760801,
        "su_used": 6.53662393162392,
        "type": "renewal"
    }
}


GET /xdusage/v1/allocations/<account_id>/<resource_id>/previous

Examples

GET /xdusage/v1/allocations/2/1/previous
{
    "message": null,
    "result": {
        "account_id": 2,
        "resource_id": 1,
        "allocation_id": 5980,
        "alloc_start": "2008-10-01",
        "alloc_end": "2009-09-30",
        "su_allocated": 980000,
        "su_remaining": 11620.794138888956,
        "su_used": 968379.205861111,
        "type": "renewal"
    }
}

GET /xdusage/v1/allocations/1/1/previous
{
    "message": null,
    "result": null
}

GET /xdusage/v1/counts/by_allocation/<allocation_id>

Examples

GET /xdusage/v1/counts/by_allocation/3160
{
    "message": null,
    "result": [
        {
            "type": "job",
            "n": 19154
        },
        {
            "type": "refund",
            "n": 2
        }
    ]
}

GET /xdusage/v1/counts/by_allocation/3160?person_id=11
{
    "message": null,
    "result": [
        {
            "type": "job",
            "n": 94
        }
    ]
}

Params

Param name Description
person_id
optional

limit counts to this person_id


GET /xdusage/v1/counts/by_dates/<account_id>/<resource_id>/<start_date>/<end_date>

Examples

GET /xdusage/v1/counts/by_dates/2/1/2004-01-01/2008-12-31
{
    "message": null,
    "result": [
        {
            "type": "job",
            "n": 22535
        },
        {
            "type": "refund",
            "n": 2
        }
    ]
}

GET /xdusage/v1/counts/by_dates/2/1/2004-01-01/2008-12-31?person_id=11
{
    "message": null,
    "result": [
        {
            "type": "job",
            "n": 126
        }
    ]
}

Params

Param name Description
person_id
optional

limit counts to this person_id


GET /xdusage/v1/usage/by_allocation/<allocation_id>/<person_id>

Examples

GET /xdusage/v1/usage/by_allocation/1/421
{
    "message": null,
    "result": [
        {
            "allocation_id": 1,
            "person_id": 421,
            "su_used": 814.8272222221929
        }
    ]
}

GET /xdusage/v1/usage/by_dates/<account_id>/<resource_id><start_date>/<end_date>

Examples

GET /xdusage/v1/usage/by_dates/2/2016/2006-01-01/2006-12-31
{
    "message": null,
    "result": [
        {
            "start_date": "2006-05-25",
            "end_date": "2006-12-12",
            "su_used": 406499
        }
    ]
}


GET /xdusage/v1/usage/by_dates/2/2016/2006-01-01/2006-12-31?person_id=11
{
    "message": null,
    "result": [
        {
            "start_date": "2006-12-03",
            "end_date": "2006-12-06",
            "su_used": 13979
        }
    ]
}

Params

Param name Description
person_id
optional

limit usage to this person_id


GET /xdusage/v1/jobs/by_allocation/<allocation_id>/<person_id>

Examples

GET /xdusage/v1/jobs/by_allocation/5447/8017
{
    "message": null,
    "result": [
        {
            "job_id": 10152571,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "21390",
            "submit_time": "2008-07-28T00:44:56.000-05:00",
            "start_time": "2008-07-28T02:11:34.000-05:00",
            "end_time": "2008-07-28T10:47:03.000-05:00",
            "charge_date": "2008-07-28T00:44:56.000-05:00",
            "local_charge": 274.9244,
            "adjusted_charge": 274.9244,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 30929,
            "jobname": "21390",
            "nodecount": 32,
            "processors": 32,
            "memory": null,
            "queue": "special"
        },
        {
            "job_id": 10205483,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "22577",
            "submit_time": "2008-07-31T18:28:23.000-05:00",
            "start_time": "2008-07-31T18:30:15.000-05:00",
            "end_time": "2008-07-31T18:30:19.000-05:00",
            "charge_date": "2008-07-31T18:28:23.000-05:00",
            "local_charge": 0.0044,
            "adjusted_charge": 0.0044,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 1,
            "jobname": "22577",
            "nodecount": 16,
            "processors": 16,
            "memory": null,
            "queue": "special"
        },
        {
            "job_id": 10205484,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "22579",
            "submit_time": "2008-07-31T18:37:12.000-05:00",
            "start_time": "2008-07-31T18:38:22.000-05:00",
            "end_time": "2008-07-31T18:38:25.000-05:00",
            "charge_date": "2008-07-31T18:37:12.000-05:00",
            "local_charge": 0.0044,
            "adjusted_charge": 0.0044,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 1,
            "jobname": "22579",
            "nodecount": 16,
            "processors": 16,
            "memory": null,
            "queue": "special"
        },
        {
            "job_id": 10205482,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "22580",
            "submit_time": "2008-07-31T18:40:45.000-05:00",
            "start_time": "2008-07-31T18:43:25.000-05:00",
            "end_time": "2008-07-31T18:43:28.000-05:00",
            "charge_date": "2008-07-31T18:40:45.000-05:00",
            "local_charge": 0.0044,
            "adjusted_charge": 0.0044,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 1,
            "jobname": "22580",
            "nodecount": 16,
            "processors": 16,
            "memory": null,
            "queue": "special"
        }
    ]
}

GET /xdusage/v1/jobs/by_dates/<account_id>/<resource_id>/<person_id>/<start_date>/<end_date>

Examples

GET /xdusage/v1/jobs/by_dates/3704/2770/8017/2008-07-28/2008-08-01
{
    "message": null,
    "result": [
        {
            "job_id": 10205483,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "22577",
            "submit_time": "2008-07-31T18:28:23.000-05:00",
            "start_time": "2008-07-31T18:30:15.000-05:00",
            "end_time": "2008-07-31T18:30:19.000-05:00",
            "charge_date": "2008-07-31T18:28:23.000-05:00",
            "local_charge": 0.0044,
            "adjusted_charge": 0.0044,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 1,
            "jobname": "22577",
            "nodecount": 16,
            "processors": 16,
            "memory": null,
            "queue": "special"
        },
        {
            "job_id": 10205484,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "22579",
            "submit_time": "2008-07-31T18:37:12.000-05:00",
            "start_time": "2008-07-31T18:38:22.000-05:00",
            "end_time": "2008-07-31T18:38:25.000-05:00",
            "charge_date": "2008-07-31T18:37:12.000-05:00",
            "local_charge": 0.0044,
            "adjusted_charge": 0.0044,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 1,
            "jobname": "22579",
            "nodecount": 16,
            "processors": 16,
            "memory": null,
            "queue": "special"
        },
        {
            "job_id": 10205482,
            "allocation_id": 5447,
            "account_id": 3704,
            "resource_id": 2770,
            "person_id": 8017,
            "local_jobid": "22580",
            "submit_time": "2008-07-31T18:40:45.000-05:00",
            "start_time": "2008-07-31T18:43:25.000-05:00",
            "end_time": "2008-07-31T18:43:28.000-05:00",
            "charge_date": "2008-07-31T18:40:45.000-05:00",
            "local_charge": 0.0044,
            "adjusted_charge": 0.0044,
            "job_resource": "pople.psc.teragrid",
            "wallduration": 1,
            "jobname": "22580",
            "nodecount": 16,
            "processors": 16,
            "memory": null,
            "queue": "special"
        }
    ]
}

GET /xdusage/v1/jobs/attributes/<job_id>

Examples

GET /xdusage/v1/jobs/attributes/9738035
{
    "message": null,
    "result": [
        {
            "job_id": 9738035,
            "name": "http://globus.org/names/attribute/gram/audit_v1/gateway_user",
            "value": "travis@gridamp.teragrid.org"
        },
        {
            "job_id": 9738035,
            "name": "http://globus.org/names/attribute/gram/audit_v1/job_grid_id",
            "value": "https://grid.nics.utk.edu:50385/16289919080054951321/1367557268601584266/"
        }
    ]
}

GET /xdusage/v1/credits_debits/by_allocation/<allocation_id>/<person_id>

Examples

GET /xdusage/v1/credits_debits/by_allocation/2387/5204
{
    "message": null,
    "result": [
        {
            "id": 13,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-06-02 11:00:57.74703-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 16880.4,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "debit",
            "is_credit": false
        },
        {
            "id": 7,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-06-01 16:21:15.600293-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 550000,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        },
        {
            "id": 17,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-06-26 10:24:00.466428-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 493162.9,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        },
        {
            "id": 27,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-07-12 15:05:22.124675-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 300.8,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        },
        {
            "id": 31,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-07-17 15:55:09.764622-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 300.8,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        }
    ]
}

GET /xdusage/v1/credits_debits/by_dates/<account_id>/<resource_id>/<person_id>/<start_date>/<end_date>

Examples

GET /xdusage/v1/credits_debits/by_dates/2318/2214/5204/2006-01-01/2006-12-31
{
    "message": null,
    "result": [
        {
            "id": 13,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-06-02 11:00:57.74703-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 16880.4,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "debit",
            "is_credit": false
        },
        {
            "id": 7,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-06-01 16:21:15.600293-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 550000,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        },
        {
            "id": 17,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-06-26 10:24:00.466428-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 493162.9,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        },
        {
            "id": 27,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-07-12 15:05:22.124675-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 300.8,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        },
        {
            "id": 31,
            "allocation_id": 2387,
            "account_id": 2318,
            "resource_id": 2214,
            "person_id": 5204,
            "local_id": "2007-07-17 15:55:09.764622-04-refund.TG-MCA06N060@bigred.iu.teragrid",
            "charge_date": "2006-10-01T02:00:00.000-05:00",
            "amount": 300.8,
            "site_resource_name": "bigred.iu.teragrid",
            "type": "refund",
            "is_credit": true
        }
    ]
}