elastic.io iPaaS component that connects to API.
Name | Mandatory | Description | Values |
---|---|---|---|
API_RETRIES_COUNT |
false | Set how many time system try to make request to API on errors (3 by default) | any integer above 0 |
API_RETRY_DELAY |
false | Delay between retry attempts in milliseconds (10000 by default) | any integer above 0 |
API_REQUEST_TIMEOUT |
false | HTTP requests timeout in milliseconds (15000 by default) | any integer above 0 |
Component credentials configuration fields:
- API Base URI (string, required) - Indicates what URL base needs to be used.
- Username (string, required)
- Password (string, required)
Executes custom request.
- Don't throw error on 404 Response - (optional, boolean): Treat 404 HTTP responses not as error, defaults to
false
.
- Url - (string, required): Path of the resource relative to the base URL.
- Method - (string, required): HTTP verb to use in the request, one of
GET
,POST
,PUT
,PATCH
,DELETE
. - Request Body - (object, optional): Body of the request to send.
- Status Code - (number, required): HTTP status code of the response.
- HTTP headers - (object, required): HTTP headers of the response.
- Response Body - (object, optional): HTTP response body.
Updates (of record found) or creates a new object.
- Object Type - (dropdown, required): Object-type to upsert. E.g
Users
.
- ID - (string, optional): ID of the object to upsert.
And dynamically generated fields according to chosen
Upsert Schema
.
Result object from upsert.
Lookup a single object by a selected field that uniquely identifies it.
- Object Type - (string, required): Object-type to delete. E.g
Users
. - Lookup Criteria - (dropdown, required): A list of object parameters that can uniquely identify the object in the database.
- Lookup Criteria Value - (string, required): Value for unique search criteria in
Lookup Criteria
configuration field.
Object with result of deletion as value.
Lookup a set of object by defined criteria list. Can be emitted in different way.
- Object Type - (dropdown, required): Object-type to lookup on. E.g
Users
. - Emit Behavior - (dropdown, required): Defines the way result objects will be emitted, one of
Emit all
,Emit page
orEmit individually
. - Number of search terms - text field to specify a number of search terms (positive integer number [1-99] or 0).
- Search Criteria - (array of strings, required): Search terms to be combined with the AND operator, E.g:
["userAge>29", "userName=Alex"]
If selected Emit Behavior
is Emit page
additionally fields will be added:
- Page Number - (number, defaults to X): Indicates index of page to be fetched.
- Page Size - (number, defaults to X): Indicates amount of objects per page. Value from 0 to X
For Emit All
mode: An object, with key results
that has an array as its value.
For Emit Page
mode: An object with key results
that has an array as its value (if Page Size
> 0). Key totalCountOfMatchingResults
which contains the total number of results (not just on the page) which match the search criteria (if Page Size
= 0).
For Emit Individually
mode: Each object which fill the entire message.
Lookup a single object by a selected field that uniquely identifies it.
- Object Type - (string, required): Object-type to lookup on. E.g
Users
. - Lookup Criteria - (dropdown, required): A list of object parameters that can uniquely identify the object in the database.
- Allow criteria to be omitted - (boolean, optional): If selected field
Lookup Criteria Value
becomes optional. - Allow zero results - (boolean, optional): When selected, if the object is not found - an empty object will be returned instead of throwing error.
- Lookup Criteria Value - (string, required unless
Allow criteria to be omitted
is selected): Value for unique search criteria inLookup Criteria
configuration field.
Object with result of lookup as value.
Lookup a single object by its ID.
- Object Type - (string, required): Object-type to lookup on. E.g
Users
.
- ID Value - (string, required): Value for ID of the object to lookup.
Object with result of lookup as value.
Delete a single object by its ID.
- Object Type - (string, required): Object-type to lookup on. E.g
Users
.
- ID Value - (string, required): Value for ID of the object to delete.
Object with result of delete.
Retrieve all the updated or created objects within a given time range.
- Object Type - (string, required): Object-type to lookup on. E.g
Users
. - Start Time - (string, optional): The timestamp, in ISO8601 format, to start polling from (inclusive). Default value is the beginning of time (January 1, 1970 at 00:00.000).
- End Time - (string, optional): The timestamp, in ISO8601 format, to end at (inclusive). Default value is never.
- Timestamp field to poll on - (string, optional): Can be either Last Modified or Created dates (updated or new objects, respectively). Defaults to Last Modified.
None.
Pagination has not been implemented yet in this trigger. Running a flow will return a single page with all of the results of the query.