Read all Recognition Configurations
Returns a list of all recognition configurations
With this service method, you can retrieve a list of all recognition configurations from the database. The method supports sorting and filtering, so that you can narrow down the result to those entries you’re most interested in.
Request
URI: /v1/segments/recognitionConfigurations
HTTP Method: GET
Permissions: seg.r
Request Headers
| Header | Required | Values |
|---|---|---|
| Authorization | Yes | Bearer Token. |
Request Parameters
| Parameter | Required | Data Type | Description | Parameter Type |
|---|---|---|---|---|
| $count | No | boolean | If set to true, the total number of matching records is added to the response. | Query string |
| $skip | No | integer | Number of the first n records to be excluded from the result set. | Query string |
| $top | No | integer | Number of records to include in the result set. Allowed maximum: 500 | Query string |
| $orderby | No | string | Field name to be used for sorting the result set in ascending or descending order. | Query string |
| name, startRuleId, endRuleId, thingTypeId,state, tags | No | string | Optional filter parameters; see note below. | Query string |
Request Example
/v1/segments/recognitionConfigurations?name=testWith this example, you can retrieve the list of all configurations that contain the string test as a part of their <name>.
Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Configurations retrieved successfully. |
| 401 | Unauthorized. |
| 403 | Forbidden. |
| 404 | Not found. |
Response Example
{
"count": 214,
"previous": "http://localhost:8081/v1/api/path?$skip=500",
"next": "http://localhost:8081/v1/api/path?$skip=500",
"values": [
{
"id": "6cbd182c-4c8b-4f57-859d-8f3bc27e3c59",
"version": 1,
"ETag": "8cbfee81bbcbd7097bb09347c8b7c04a",
"name": "My Recognition Configuration",
"thingTypeId": "segments.sandbox02.segments:integrationTestTT_6",
"startRuleId": "4484b038-448c-499c-af51-5d39908122c3",
"endRuleId": "478a5df7-57e5-4df2-afd0-bdc1d78f189a",
"startRuleName": "my_start_rule",
"endRuleName": "my_end_rule",
"state": "ACTIVE",
"sensitivityLevel": "com.sap.appiot.security:pii",
"isDeleted": false,
"tags": [
"tag_a",
"tag_b",
"tag_c"
],
"createdOn": "2020-05-06T15:46:44.291Z"
}
]
}
The response payload shows only one matching result for reasons of readability. However, from the initial <count> field, you can see that actually 214 matching results were retrieved.