List Single User’s Jobs


All the requests reported below must be appended to the service endpoint:

https://bspsa.cineca.it

The allowed HPC string values are:

  • pizdaint
  • nsg

The allowed Project string values are:

  • bsp_pizdaint_01
  • bsp_nsg_01

The List Single User’s Jobs APIs allow admin to fetch information about a submitted jobs filtered by a single user.

URL: /admin/jobs/(string: user_id)/(optional string: hpc)/(optional string: project_name)/(optional string: job_id)/

Required Headers:

  • Authorization:

    Authorization: Bearer <token>
    

Example:

  • Get a list of all jobs for the specified user

    Example Request

    GET /admin/jobs/301330/     HTTP/1.1
    Authorization:              Bearer FakeToken
    

    Example Response

    HTTP/1.1                    200 OK
    Content-Disposition:        application/json
    
    [
        {
            u'end_date':        u'2019-03-21T13:15:03Z',
            u'failed':          False,
            u'id':              4,
            u'init_date':       u'2019-03-21T13:13:59Z',
            u'job_id':          u'42AA3163-F8F7-4502-9640-431ED649DF54',
            u'owner':           u'301330',
            u'project':         2,
            u'project_hpc':     u'PIZDAINT',
            u'project_name':    u'bsp_pizdaint_01',
            u'runtime':         0.5,
            u'stage':           u'SUCCESSFUL',
            u'terminal_stage':  True,
            u'title':           u''
        },
        {
            u'end_date':        u'2019-03-21T13:30:13Z',
            u'failed':          False,
            u'id':              6,
            u'init_date':       u'2019-03-21T13:29:28Z',
            u'job_id':          u'06E62677-255F-4E13-9E25-F978749540F1',
            u'owner':           u'301330',
            u'project':         2,
            u'project_hpc':     u'PIZDAINT',
            u'project_name':    u'bsp_pizdaint_01',
            u'runtime':         0.5,
            u'stage':           u'SUCCESSFUL',
            u'terminal_stage':  True,
            u'title':           u''
        },
                .
                .
                .
                .
                .
                .
                .
                .
                .
        {
            u'end_date':        None,
            u'failed':          False,
            u'id':              21,
            u'init_date':       u'2019-03-25T11:08:56Z',
            u'job_id':          u'NGBW-JOB-NEURON75_TG-3BAAA5A35EA440958BB7406F4DBDC653',
            u'owner':           u'301330',
            u'project':         1,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_01',
            u'runtime':         2.0,
            u'stage':           u'QUEUE',
            u'terminal_stage':  False,
            u'title':           u'test-25-mar-19'
        }
    ]
    
  • Get a list of all jobs submitted on a specific HPC system by the specified user

    Example Request

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

    Example Response

    HTTP/1.1                    200 OK
    Content-Disposition:        application/json
    
    [
        {
            u'end_date':        None,
            u'failed':          False,
            u'id':              3,
            u'init_date':       u'2019-03-21T13:11:21Z',
            u'job_id':          u'NGBW-JOB-NEURON75_TG-E60ADB33CD774FFD9B7EE5805ED03E17',
            u'owner':           u'301330',
            u'project':         1,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_01',
            u'runtime':         0.5,
            u'stage':           u'QUEUE',
            u'terminal_stage':  False,
            u'title':           u''
        },
        {
            u'end_date':        None,
            u'failed':          False,
            u'id':              10,
            u'init_date':       u'2019-03-21T15:23:20Z',
            u'job_id':          u'NGBW-JOB-NEURON75_TG-03B10581DD5340BC8FCE5BB17566F49B',
            u'owner':           u'301330',
            u'project':         1,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_01',
            u'runtime':         0.5,
            u'stage':           u'QUEUE',
            u'terminal_stage':  False,
            u'title':           u''
        },
                .
                .
                .
                .
                .
                .
                .
                .
                .
        {
            u'end_date':        None,
            u'failed':          False,
            u'id':              64,
            u'init_date':       u'2019-03-21T21:43:51Z',
            u'job_id':          u'NGBW-JOB-NEURON75_TG-EAFE7B11DC104805A566AD5E2277A3A5',
            u'owner':           u'301330',
            u'project':         2,
            u'project_hpc':     u'NSG',
            u'project_name':    u'bsp_nsg_01',
            u'runtime':         0.5,
            u'stage':           u'QUEUE',
            u'terminal_stage':  False,
            u'title':           u''
        }
    ]
    
  • Get a list of all jobs submitted on a specific HPC system’s project by the specified user

    Example Request

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

    Example Response

     HTTP/1.1                    200 OK
     Content-Disposition:        application/json
    
     [
         {
             u'end_date':        None,
             u'failed':          False,
             u'id':              3,
             u'init_date':       u'2019-03-21T13:11:21Z',
             u'job_id':          u'NGBW-JOB-NEURON75_TG-E60ADB33CD774FFD9B7EE5805ED03E17',
             u'owner':           u'301330',
             u'project':         1,
             u'project_hpc':     u'NSG',
             u'project_name':    u'bsp_nsg_01',
             u'runtime':         0.5,
             u'stage':           u'QUEUE',
             u'terminal_stage':  False,
             u'title':           u''
         },
                 .
                 .
                 .
                 .
                 .
                 .
                 .
                 .
         {
             u'end_date':        None,
             u'failed':          False,
             u'id':              10,
             u'init_date':       u'2019-03-21T15:23:20Z',
             u'job_id':          u'NGBW-JOB-NEURON75_TG-03B10581DD5340BC8FCE5BB17566F49B',
             u'owner':           u'301330',
             u'project':         1,
             u'project_hpc':     u'NSG',
             u'project_name':    u'bsp_nsg_01',
             u'runtime':         0.5,
             u'stage':           u'QUEUE',
             u'terminal_stage':  False,
             u'title':           u''
         }
    ]
    
  • Get info on a single job submitted on a specific HPC system’s project by the specified user

    Example Request

    GET /admin/jobs/301330/nsg/bsp_nsg_01/NGBW-JOB-NEURON75_TG-419E34839B144E15A06F9473814926F7            HTTP/1.1
    Authorization:              Bearer FakeToken
    

    Example Response

    HTTP/1.1                    200 OK
    Content-Disposition:        application/json
    
    {
        u'end_date':            None,
        u'failed':              False,
        u'id':                  16,
        u'init_date':           u'2019-03-21T22:02:39Z',
        u'job_id':              u'NGBW-JOB-NEURON75_TG-419E34839B144E15A06F9473814926F7',
        u'owner':               u'301330',
        u'project':             1,
        u'project_hpc':         u'NSG',
        u'project_name':        u'bsp_nsg_01',
        u'runtime':             0.5,
        u'stage':               u'QUEUE',
        u'terminal_stage':      False,
        u'title':               u'TestJob_SA_NSG'
    }