A POST request queries an incident related to an external customer created in the Oracle system.
The endpoint is https://amr.oracle.com/api/tes/incidents/search.
The format of the request is as follows:
{ "criteria": { "connectBy": "AND", "expressions": [{ "name": "fieldname", "operator": "operator", "value": "" }, { "name": "fieldname", "operator": "operator", "value": "value" } ] }, "fields": "field1,field2,field3", "sort": "+field1" }
Where the values represent:
Criteria: Filter criteria.
connectBy: How expressions are connected. AND is used by default; OR is the other supported value. Expressions cannot be connected by AND or OR.
expressions: Actual expressions connected by the connectBy value.
name: Field name for the expression.
operator: Operator to apply for the expression condition.
value: Field value.
fields: Fields to select as part of the response.
sort: Sort by field (where the operator + is used for ascending order and the operator - is used for descending order)
A sample POST request is as follows:
{ "criteria": { "connectBy": "AND", "expressions": [{ "name": "startTime", "operator": "greater_or_equal", "value": "1513067444000" }, { "name": "endTime", "operator": "less_or_equal", "value": "1513067744000" } ] }, "fields": "status,severity,description", "sort": "+status" }
The response codes are listed in the following table:
|