Skip to Content

fs_share

A link for the user to one file of a computer, opened on their CMDOP page; audio and video play there. Lasts 1h, 1d (default) or 7d.

Arguments

NameTypeRequiredMeaning
expires"1h" | "1d" | "7d"noHow long the link works: 1h, 1d (default) or 7d.
machinestringyesThe computer: its id or unique name, as machines_list shows it.
pathstringyesThe file’s absolute path on that computer. Folders are refused.

Result

NameTypeRequiredMeaning
expires_atintegeryesWhen the link stops working, unix seconds.
namestringyesThe file’s name.
sizeintegeryesBytes.
typestringyesThe media type the link serves.
urlstringyesThe link. It opens the file in the user’s browser, signed in to their CMDOP page; give it to them as it is.

Examples

{ "name": "fs_share", "arguments": { "machine": "<machine>", "path": "<path>" } }

Limits

The token is the only check: no risk class applies, and the call is not counted against the plan. A call with machine set, or with sealed instead of args, returns bad_args. A refused call returns one of the error codes.