Get
Retrieve a file rule by its ID.
Authorizations
The token from the agent's discovery file. Required over loopback TCP; 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 what to do
with them: upload them to a bucket, delete the local copies once they
are no longer needed, or both. retention is optional and marks the
rules that delete: when it is absent the device keeps matching files
indefinitely — Miru never deletes them — and when it is present the rule
deletes each matching file once its retention guarantee ends. A rule
that both deletes and uploads always states retention.require_upload,
so whether local deletion waits for the upload is itself an explicit
decision.
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.

