Consulter une règle¶
-
GET
/v2/rules/{id}
¶ Si elle existe, renvoie les informations de la règle demandée sous forme d’un objet JSON.
Example request:
GET /v2/rules/{id} HTTP/1.1 Host: example.com
- Status Codes
200 OK –
La règle remandée a été trouvée.
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "name": "string", "hostIds": [ "string" ], "modeTrans": "send", "recvPath": "string", "sendPath": "string", "archivePath": "string", "workPath": "string", "rPreTasks": [ { "type": "LOG", "arguments": "string", "delay": 1 } ], "rPostTask": [ { "type": "LOG", "arguments": "string", "delay": 1 } ], "rErrorTasks": [ { "type": "LOG", "arguments": "string", "delay": 1 } ], "sPreTasks": [ { "type": "LOG", "arguments": "string", "delay": 1 } ], "sPostTasks": [ { "type": "LOG", "arguments": "string", "delay": 1 } ], "sErrorTasks": [ { "type": "LOG", "arguments": "string", "delay": 1 } ] }
404 Not Found – Dans le cas d’une requête sur une collection, cela signifie que l’identifiant donné n’existe pas dans la base de données.