Forum Discussion

Julio_Navarro's avatar
Icon for Cirrostratus rankCirrostratus
Jul 18, 2019

Using an asynchronous task | Creating UCS File

Hi, I am trying the following REST URL to create a task to generate a UCS File: Method: Post URI: mgmt/tm/task/sys/ucs/ Body: { "command": "save",    "name": "UCS01" } So, I get back: {...
  • Jason_Adams's avatar
    Apr 24, 2020

     ; to close the loop on this one, it appears that you the part that was missing in your request is the -X PUT request, to set the state to 'VALIDATING'


    # curl -k -u admin:admin -H 'Content-Type: application/json' -X PUT -d '{"_taskState":"VALIDATING"}' https://localhost/mgmt/tm/task/sys/ucs/1563478591515657?ver=
        "message":"Task will execute asynchronously.",

    That is the request which is necessary to cause any task to begin processing. Until then, the task is waiting for any number of additional tasks to be added together.