Mercurial > hg > orthanc-book
comparison Sphinx/source/users/rest.rst @ 671:bc8fa2bf4cf7
asynchronous c-move
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 May 2021 14:11:39 +0200 |
parents | be71b56c90ab |
children | 5ec581c7e610 |
comparison
equal
deleted
inserted
replaced
670:f32934bdad14 | 671:bc8fa2bf4cf7 |
---|---|
851 specifying that individual content item:: | 851 specifying that individual content item:: |
852 | 852 |
853 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/answers/0/retrieve --data Orthanc | 853 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/answers/0/retrieve --data Orthanc |
854 | 854 |
855 If C-Moves take too long (for example, performing a C-Move of a big | 855 If C-Moves take too long (for example, performing a C-Move of a big |
856 study), you may run the request in asynchronous fashion, which will | 856 study), you may run the request in :ref:`asynchronous mode <jobs>`, |
857 create a job in Orthanc:: | 857 which will create a job in Orthanc:: |
858 | 858 |
859 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve \ | 859 $ curl --request POST --url http://localhost:8042/queries/5af318ac-78fb-47ff-b0b0-0df18b0588e0/retrieve \ |
860 --data '{"TargetAet":"Orthanc","Synchronous":false}' | 860 --data '{"TargetAet":"Orthanc","Synchronous":false}' |
861 | 861 |
862 | 862 |
863 .. highlight:: bash | 863 .. highlight:: bash |
864 | 864 |
865 The answer of this POST request is the job ID taking care of the C-Move:: | 865 The answer of this POST request is the job ID taking care of the |
866 C-Move command, :ref:`whose status can be monitored <jobs-monitoring>` | |
867 in order to detect failure or completion:: | |
866 | 868 |
867 { | 869 { |
868 "ID" : "11541b16-e368-41cf-a8e9-3acf4061d238", | 870 "ID" : "11541b16-e368-41cf-a8e9-3acf4061d238", |
869 "Path" : "/jobs/11541b16-e368-41cf-a8e9-3acf4061d238" | 871 "Path" : "/jobs/11541b16-e368-41cf-a8e9-3acf4061d238" |
870 } | 872 } |