Posting Output to a Web ServiceThe output from a task run can be posted to a web service for further processing or custom behaviour. To turn on this feature, follow the steps below:
- Click on the task in the Tasks page and then click the Change button.
- In the Output section, tick Web Integration.
- In Web Integration Url specify the url of the endpoint that you would like the run information posted to. You can specify the location of an Azure or Amazon function, or your own web service. For more information about creating an Azure function that runs with your WebGet output, see Linking to an Azure function.
The information will be posted to the Web Integration Url after each run (even if errors occur). WebGet will attach the resulting Json to the body of the request. The Json will appear in the same format that it is displayed in the Raw Data tab of the Run page (Show Advanced Settings must be on to see this tab). WebGet will also add the query parameter "webget-status" to the url to indicate the status of the run. The following status codes are possible:
|Successful||The run has completed successfully.|
|SuccessfulWithWarnings||The run has completed successfully but contains warnings.|
|Error||The run has failed because of an error.|
|Cancelled||The run was cancelled by the user.|
|Terminated||The run was aborted because of an unexpected error.|
|ErrorRunsExceeded||The task did not run because the maximum number of runs this month has been exceeded. Please upgrade your subscription.|
|ErrorRequestsExceeded||The task did not run because the maximum number of web requests this month has been exceeded. Please upgrade your subscription.|