Get
Retrieve a file rule by its ID.
Authorizations
The token from the agent's discovery file (%ProgramData%\Miru\device-api\device-api.json on Windows). Required over loopback TCP (127.0.0.1:6478 by default on Windows) and accepted by every route; not used over the Unix socket.
Path Parameters
The unique identifier of the file rule.
"file_rule_123"
Response
Successfully retrieved the file rule.
A file rule declares which files on a device Miru manages and whether to upload them, delete them, or both.
The object type, which is always file_rule.
file_rule "file_rule"
ID of the file rule.
"file_rule_123"
A human-readable name for the file rule. Not unique within a workspace: file rules are immutable, so each authored revision mints a new rule and several rules may share a name. The name participates in the rule's digest, so renaming a rule mints a new rule.
"Robot Logs"
The digest of the file rule. File rules are immutable and deduplicated by digest within a workspace.
"sha256:1234567890"
The operating system family this file rule targets, derived from source.glob: a glob starting with / is linux, and a glob starting with a drive letter is windows. Read-only: clients cannot set it.
linux, windows "linux"
Timestamp of when the file rule was created.
"2021-01-01T00:00:00Z"
Timestamp of when the file rule was last updated.
"2021-01-01T00:00:00Z"
Where matching files are uploaded. Absent when the rule only enforces local retention.
Governs deletion of the local copies of matching files. Absent when the device keeps matching files indefinitely — Miru never deletes them; present when the rule deletes each matching file once its retention guarantee ends.

