REST (Execute)
Use the REST task to to send API requests just like any other application would do (for example, Postman, available from https://www.getpostman.com). Construct the request with a third-party tool, like Postman, and get the request code pasted in the Request field.
Configuration
- If the target host uses a self-signed certificate and the targeted host is using HTTPS, select the option to Ignore SSL certificate validation. Otherwise, the request will fail.
- The status code can be placed into an Ivanti Automation parameter by using the option to Set paramater with status code.
- The request response can be placed into an Ivanti Automation parameter by using the option to Set parameter with request response.
- Ivanti Automation parameters, variables and functions are supported within the request field.
-
Resources are also supported in the request field, by using the resource GUID. Eg:
<Content-Disposition: form-data; name=""; filename="{0E1DE20C-F77B-45A6-BAE8-0F63FB062303}">
Where {0E1DE20C-F77B-45A6-BAE8-0F63FB062303} is the GUID of an Ivanti Automation resource stored in the database. Resource Package type is not supported.
- Supported authentication types in requests are: no auth, basic auth and OAuth 2.0. Other types of authentication might also work, but those are out of the scope of this task.
-
Note that if the target host is an HTTPS one, users should add this into the request code (Postman request does not do that).:
Host: https://<URI>