adapter-automation_gateway

On this page:

sendRequest

Summary

Send an HTTP/1.1 request to an inventory device.

Description

This method will send an HTTP/1.1 request to an inventory device.

Route

POST /automationgateway/http_requests/request/execute

Roles

admin

Parameters

DetailsExampleSchema
Name Type Required Description
host string yes A Host from the HTTP_Requests Inventory
endpoint string yes The api endpoint to send the request to.
method string yes Request method - one of GET, OPTIONS, HEAD, POST, PUT, PATCH, DELETE
params object no Keys/values to convert into the request's query string.
data object no Keys/values to send as the request's body.
headers object no Keys/values to send as the request's HTTP headers.
cookies object no Keys/values to send as the request's cookies.
auth object no Keys/values to send as the username and password for Basic Authentication.
timeout object no The connect and read timeouts for the request. See: https://docs.python-requests.org/en/latest/user/advanced/#timeouts
allowRedirects boolean no A flag which enables or disables HTTP redirection.
proxies object no The keys/values which describe proxies to use for the request.
verify boolean no A flag which enables or disables TLS certificate verification.

Return

DetailsExampleSchema
Name Type Description
result object A JSON Object containing status, code and the result