File Rules
Get
Retrieve a file rule by its ID.
get/file_rules/{file_rule_id}
Request
- Base URLhttp://localhost/v0.2
- URLhttp://localhost/v0.2/file_rules/{file_rule_id}
- Auth
- none
- or HTTP bearer
Path parameters
file_rule_idstring required
Example:file_rule_123
The unique identifier of the file rule.
Response
Successfully retrieved the file rule.
Example response
{
"object": "file_rule",
"id": "file_rule_123",
"name": "Robot Logs",
"digest": "sha256:1234567890",
"os": "linux",
"source": {
"glob": "/var/log/robot/*.log",
"stability_window_secs": 60
},
"upload": {
"upload_collection_id": "upl_col_123",
"upload_collection_name": "Robot Logs",
"bucket_id": "bkt_123",
"bucket_name": "my-uploads-bucket",
"path": "{device_id}/{year}-{month}-{day}/{upload_id}/{file_name}"
},
"retention": {
"require_upload": true,
"ttl_secs": 604800
},
"created_at": "2021-01-01T00:00:00Z",
"updated_at": "2021-01-01T00:00:00Z"
}Changes
No operation changes recorded.