List Quotas For A Single User

URL: /admin/quotas/(required string: user_id)/(optional string: hpc)/(optional string: project_name)/

Required Headers:

  • Authorization:

    Authorization: Bearer <token>
    

Example:

  • Get all user’s quotas for every HPC systems and projects

    Example Request

    GET /admin/quotas/263955/   HTTP/1.1
    Authorization:              Bearer FakeToken
    

    Example Response

    HTTP/1.1                    200 OK
    Content-Type                application/json
    
    [
        {
            u'id':              5,
            u'project':         2,
            u'project_hpc':     u'PIZDAINT',
            u'project_name':    u'bsp_pizdaint_01',
            u'space_left':      10000000.0,
            u'time_left':       18000000,
            u'user':            u'263955'
        },
                .
                .
                .
                .
                .
                .
        {
            u'id':              6,
            u'project':         1,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_01',
            u'space_left':      10000000.0,
            u'time_left':       17996400,
            u'user':            u'263955'
        }
    ]
    
  • Get all user’s quotas for every projects on a single HPC system

    Example Request

    GET /admin/quotas/301330/nsg/      HTTP/1.1
    Authorization:              Bearer FakeToken
    

    Example Response

    HTTP/1.1                    200 OK
    Content-Type                application/json
    
    [
        {
            u'id':              4,
            u'project':         1,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_01',
            u'space_left':      10000000.0,
            u'time_left':       17982000,
            u'user':            u'301330'
        },
                .
                .
                .
                .
                .
                .
        {
            u'id':              24,
            u'project':         7,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_07',
            u'space_left':      10000.0,
            u'time_left':       19873,
            u'user':            u'301330'
        }
    ]
    
  • Get user’s quota for a single project on a single HPC system

    Example Request

    GET /admin/quotas/301330/nsg/bsp_nsg_01/      HTTP/1.1
    Authorization:              Bearer FakeToken
    

    Example Response

    HTTP/1.1                    200 OK
    Content-Type                application/json
    
    {
        u'id':                  4,
        u'project':             1,
        u'project_hpc':         u'NSG',
        u'project_name':        u'bsp_nsg_01',
        u'space_left':          10000000.0,
        u'time_left':           17982000,
        u'user':                u'301330'
    }