Get a list of all Trusted Rules
Get trusted rules related to specific device names.
Resource name: /api/v1/trusted-rules/rules
Request Method: GET
Request parameters:
| Parameter | Type | Description |
|---|---|---|
| deviceNames
mandatory |
array of strings | List of device tree names. Use the GET /devices method from the Devices Setup Resource Group to get device tree names. |
cUrl Example:
curl -X GET "https://localhost/api/v1/trusted-rules/rules?deviceNames=device1,device2" -H "Authorization: Bearer your-access-token"
Status codes:
| Code | Description |
|---|---|
| 200 | List of trusted rules |
| 400 | Validation error: Bad request due to invalid input |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 423 | Locked |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
| 503 | Service Unavailable |
Response parameters:
| Parameter | Type | Description |
|---|---|---|
| Response content | string | A list of trusted rules |
Response example success 200:
[
"trusted-rule-1",
"trusted-rule-2"
]
Response example failure 400:
{
"error": "string",
"description": "string",
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}