Task Action

    Interface address:

    Request method: POST

    Request data type: application/json

    Response data type: */*

    Interface description:

    The execute function handles the request submitted by the user to execute the task

    Request Parameters:

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    201Created
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    Submit the execute function

    Interface address:/api/rest_j/v1/entrance/submit

    Request method: POST

    Request data type: application/json

    Response data type: */*

    Interface description:

    Submit execute function

    Request Parameters:

    Parameter nameParameter descriptionRequest typeRequiredData typeschema
    SubmitjsonbodytrueSubmitSubmit

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    201Created
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    1. {
    2. "data": {},
    3. "message": "",
    4. "method": "",
    5. "status": 0
    6. }

    end task

    Interface address: /api/rest_j/v1/entrance/{id}/kill

    Request method: GET

    Request data type: application/x-www-form-urlencoded

    Response data type: */*

    Interface description:

    kill task

    Request Parameters:

    Parameter nameParameter descriptionRequest typeRequiredData typeschema
    idIDpathfalsestring
    taskIDtaskIDqueryfalsestring

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)
    1. {
    2. "data": {},
    3. "method": "",
    4. "status": 0
    5. }

    Interface address: /api/rest_j/v1/entrance/{id}/killJobs

    Request method: POST

    Request data type: application/json

    Response data type:

    Interface description:

    End Jobs

    Request example:

    Request Parameters:

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    201Created
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    1. {
    2. "method": "/api/entrance/#id/killJobs",
    3. "status": 0,
    4. "message": "success",
    5. "data": {
    6. "messages": [{
    7. "method": "",
    8. "status": 0,
    9. "message": "",
    10. "data": {
    11. "execID": ""
    12. }
    13. }]
    14. }

    task log

    Interface address: /api/rest_j/v1/entrance/{id}/log

    Request method: GET

    Request data type: application/x-www-form-urlencoded

    Response data type: */*

    Interface description:

    Get task log

    Request Parameters:

    Parameter nameParameter descriptionRequest typeRequiredData typeschema
    idTask IDpathfalsestring

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    1. {
    2. "data": {},
    3. "message": "",
    4. "method": "",
    5. "status": 0
    6. }

    Pause task

    Interface address:/api/rest_j/v1/entrance/{id}/pause

    Request method:

    Request data type: application/x-www-form-urlencoded

    Response data type: */*

    Interface description:

    Pause task

    Request Parameters:

    Parameter nameParameter descriptionRequest typeRequiredData typeschema
    idTask IDpathfalsestring

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    401Unauthorized
    403Forbidden
    404Not Found
    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    Interface address:/api/rest_j/v1/entrance/{id}/progress

    Request method: GET

    Request data type: application/x-www-form-urlencoded

    Response data type: */*

    Interface description:

    Task progress

    Request Parameters:

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    1. {
    2. "data": {},
    3. "message": "",
    4. "method": "",
    5. "status": 0
    6. }

    Resource progress

    Interface address:/api/rest_j/v1/entrance/{id}/progressWithResource

    Request method: GET

    Request data type: application/x-www-form-urlencoded

    Response data type: */*

    Interface description:

    Resource progress

    Request Parameters:

    Parameter nameParameter descriptionRequest typeRequiredData typeschema
    idIDpathfalsestring

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    401Unauthorized
    403Forbidden
    404Not Found

    Response parameters:

    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response:

    1. {
    2. "data": {},
    3. "message": "",
    4. "method": "",
    5. "status": 0

    task status

    Interface address:/api/rest_j/v1/entrance/{id}/status

    Request method: GET

    Request data type: application/x-www-form-urlencoded

    Response data type: */*

    Interface description:

    Task status

    Request Parameters:

    Parameter nameParameter descriptionRequest typeRequiredData typeschema
    idIDpathfalsestring
    taskIDtaskIDqueryfalsestring

    Response Status:

    Status codeDescriptionschema
    200OKMessage
    401Unauthorized
    403Forbidden
    404Not Found
    parameter nameparameter descriptiontypeschema
    dataDatasetobject
    messageDescriptionstring
    methodrequest urlstring
    statusStatusinteger(int32)integer(int32)

    Sample Response: