Deployed 87b58190 with MkDocs version: 1.6.1

This commit is contained in:
2026-12-05 03:00:15 +00:00
parent 56cac92f20
commit 6ed040a6dd
44 changed files with 17665 additions and 13063 deletions
+214 -139
View File
@@ -347,28 +347,6 @@
<li class="md-tabs__item">
<a href="../../api/service/" class="md-tabs__link">
API Reference
</a>
</li>
</ul>
</div>
</nav>
@@ -614,6 +592,8 @@
@@ -886,6 +866,171 @@
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3_9" >
<div class="md-nav__link md-nav__container">
<a href="../../../dev/rest-api/" class="md-nav__link ">
<span class="md-ellipsis">
Server
</span>
</a>
<label class="md-nav__link " for="__nav_3_9" id="__nav_3_9_label" tabindex="0">
<span class="md-nav__icon md-icon"></span>
</label>
</div>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_3_9_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_3_9">
<span class="md-nav__icon md-icon"></span>
Server
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../../dev/rest-api/authentication/" class="md-nav__link">
<span class="md-ellipsis">
Authentication
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../../dev/rest-api/dashboard/" class="md-nav__link">
<span class="md-ellipsis">
Dashboard
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../../guide/remote-sessions/" class="md-nav__link">
<span class="md-ellipsis">
Remote Sessions
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
@@ -1185,7 +1330,7 @@
<span class="md-ellipsis">
Output & Naming
Output & Naming Options
@@ -1269,7 +1414,7 @@
<span class="md-ellipsis">
Key Vaults
Key Vault Options
@@ -1389,6 +1534,8 @@
@@ -1500,14 +1647,6 @@
@@ -1533,9 +1672,8 @@
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_3" >
<div class="md-nav__link md-nav__container">
<a href="../../../dev/rest-api/" class="md-nav__link ">
<label class="md-nav__link" for="__nav_5_3" id="__nav_5_3_label" tabindex="0">
<span class="md-ellipsis">
@@ -1549,14 +1687,8 @@
</a>
<label class="md-nav__link " for="__nav_5_3" id="__nav_5_3_label" tabindex="0">
<span class="md-nav__icon md-icon"></span>
</label>
</div>
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_3_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5_3">
@@ -1570,8 +1702,6 @@
<ul class="md-nav__list" data-md-scrollfix>
@@ -1585,35 +1715,7 @@
<span class="md-ellipsis">
Quick Start
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../../../dev/rest-api/authentication/" class="md-nav__link">
<span class="md-ellipsis">
Authentication
REST API Quick Start
@@ -1690,14 +1792,14 @@
<li class="md-nav__item">
<a href="../../../dev/rest-api/dashboard/" class="md-nav__link">
<a href="../../../dev/rest-api/errors/" class="md-nav__link">
<span class="md-ellipsis">
Dashboard
Error Responses
@@ -1725,7 +1827,7 @@
<span class="md-ellipsis">
Remote Sessions
Remote Session Protocol
@@ -1739,55 +1841,20 @@
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../../../dev/rest-api/errors/" class="md-nav__link">
<span class="md-ellipsis">
Error Responses
</span>
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
@@ -1814,17 +1881,17 @@
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_4" >
<label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
<label class="md-nav__link" for="__nav_5_4" id="__nav_5_4_label" tabindex="0">
<span class="md-ellipsis">
API Reference
Python API
@@ -1835,12 +1902,12 @@
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_6">
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_4_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_5_4">
<span class="md-nav__icon md-icon"></span>
API Reference
Python API
</label>
@@ -1992,6 +2059,14 @@
</li>
</ul>
</nav>
</li>
</ul>
</nav>
@@ -2094,7 +2169,7 @@
<h1 id="services-auth">Services &amp; authentication<a class="headerlink" href="#services-auth" title="Permanent link">&para;</a></h1>
<h1 id="services-auth">Services &amp; Authentication<a class="headerlink" href="#services-auth" title="Permanent link">&para;</a></h1>
<h2 id="services"><code>services</code><a class="headerlink" href="#services" title="Permanent link">&para;</a></h2>
<ul>
<li><strong>Type:</strong> <code>dict</code> keyed by service tag &nbsp;·&nbsp; <strong>Default:</strong> <code>{}</code></li>
@@ -2116,7 +2191,7 @@
several servers. On the command line, <code>--local</code> and <code>--server</code> override these keys. A REST API job ignores both keys.
A REST API job takes the other keys that it accepts as download parameters as its defaults,
above the <code>serve</code> defaults and below the values that the request sends.
See <a href="../../../dev/rest-api/remote-sessions/#making-a-service-remote-by-default">making a service remote by default</a>.</li>
See <a href="../../../guide/remote-sessions/#making-a-service-remote-by-default">making a service remote by default</a>.</li>
</ul>
<p>A service can also read settings of its own, such as a preferred metadata language. The service's own
<code>config.yaml</code> and its README, when it has one, name them. To change one, copy its config key into this
@@ -2125,10 +2200,10 @@ the result to the service as <code>self.config</code>. A nested config key repla
other values in the same section stay.</p>
<p>Over <code>--remote</code>, the server builds the service from its own config. The client sends only the
config keys that the service lists for a client identity, see
<a href="../../../dev/rest-api/remote-sessions/#your-own-device-identity">your own device identity</a>,
<a href="../../../guide/remote-sessions/#your-own-device-identity">your own device identity</a>,
and the strings, numbers and booleans of its <code>preferences</code> block. Each preference that you set
replaces the server's value for that config key, in every licensing mode, see
<a href="../../../dev/rest-api/remote-sessions/#your-preferences">your preferences</a>.
<a href="../../../guide/remote-sessions/#your-preferences">your preferences</a>.
For every other setting, the value in the server's config applies.</p>
<p>User- or device-specific values (API keys, account IDs, device attributes) belong in this block
rather than in the service's own <code>config.yaml</code>, which holds shared defaults. See
@@ -2232,7 +2307,7 @@ your choice, and with a service option that runs the remote session on the serve
<code>X-Secret-Key</code> and <code>X-Api-Key</code>, which unshackle always appends as fallbacks. It sends the
first name. If the server answers <code>401</code>, it retries the same request with the next name, and
keeps the one that works for the rest of the HTTP session. After a request succeeds, a <code>401</code>
no longer moves the API key to another name. Names you give keep your spelling and
does not move the API key to another name. Names you give keep your spelling and
are not repeated in the fallbacks, so unshackle tries
<code>auth_headers: ["Authorization", "x-secret-key"]</code> as <code>Authorization</code>, <code>x-secret-key</code>, <code>X-Api-Key</code>.</p>
<p>When the server answers <code>401</code> to each name, or <code>403</code> with a JSON body and no <code>error_code</code>, the
@@ -2248,16 +2323,16 @@ value below 30 the client can time out before the first heartbeat. <code>0</code
commands that operate against it, falling back to the tags in that <code>services</code> sub-dict when
unshackle cannot fetch the list. Each synthetic command carries the server-side service's options and
documentation, so <code>unshackle dl --remote &lt;TAG&gt; -h</code> shows the same help text as it does on the
server. Service names resolve against the server's tags and aliases, not your local services.
server. unshackle resolves a service tag against the server's tags and aliases, not your local services.
If the server does not offer a name to your API key, unshackle rejects the name and lists the
tags it does offer. See <a href="../../../dev/rest-api/remote-sessions/">remote sessions</a> for the
tags it does offer. See <a href="../../../guide/remote-sessions/">remote sessions</a> for the
full setup.</p>
<h2 id="serve"><code>serve</code><a class="headerlink" href="#serve" title="Permanent link">&para;</a></h2>
<ul>
<li><strong>Type:</strong> <code>dict</code> &nbsp;·&nbsp; <strong>Default:</strong> <code>{}</code></li>
</ul>
<p>Configuration for the <code>serve</code> command (the built-in REST API server). The full server guide
is the <a href="../../../dev/rest-api/">REST API</a> section. These are the config keys.</p>
is the <a href="../../../dev/rest-api/">Server</a> section of the user guide. These are the config keys.</p>
<table>
<thead>
<tr>
@@ -2296,25 +2371,25 @@ is the <a href="../../../dev/rest-api/">REST API</a> section. These are the conf
<td><code>remote_only</code></td>
<td>bool</td>
<td><code>false</code></td>
<td>Expose only the remote service session endpoints (health, services, search, session) and disable the rest of the REST API.</td>
<td>Expose only the <a href="../../../dev/rest-api/remote-sessions/#routes">remote session routes</a> and disable the rest of the REST API.</td>
</tr>
<tr>
<td><code>dashboard</code></td>
<td>dict</td>
<td><em>(unset)</em></td>
<td>Developer dashboard: <code>key</code> is the API key for the read-only <code>/api/dashboard/</code> endpoints (status, remote sessions, remote session logs, jobs, keys, services, health, logs, SSE events). Unset leaves those routes unregistered, and a reload that removes the key makes them answer <code>404</code>. See <a href="../../../dev/rest-api/dashboard/">dashboard endpoints</a>.</td>
<td>Server dashboard: <code>key</code> is the API key for the read-only <code>/api/dashboard/</code> endpoints (status, remote sessions, remote session logs, jobs, keys, services, health, logs, SSE events). Unset leaves those routes unregistered, and a reload that removes the key makes them answer <code>404</code>. See <a href="../../../dev/rest-api/dashboard/">dashboard endpoints</a>.</td>
</tr>
<tr>
<td><code>session_ttl</code></td>
<td>int (s)</td>
<td><code>300</code></td>
<td>Seconds a remote session can stay idle before it expires. A remote client sends keep-alive requests to its remote session during a download, so the remote session does not expire during a long download. A remote session that still logs in can stay idle for the larger of this value and 600 seconds. A client that closes or loses its channel and does not come back loses its remote session sooner: see <a href="../../../dev/rest-api/remote-sessions/#client-presence">Client presence</a>.</td>
<td>Seconds a remote session can stay idle before it expires. An open session channel, or a request that works on the remote session, keeps it from expiring, so it does not expire during a long download. A remote session that still logs in can stay idle for the larger of this value and 600 seconds. A client that closes or loses its channel and does not come back loses its remote session sooner: see <a href="../../../dev/rest-api/remote-sessions/#client-presence">Client presence</a>.</td>
</tr>
<tr>
<td><code>max_sessions</code></td>
<td>int or null</td>
<td><code>100</code></td>
<td>Maximum concurrent remote sessions; at the cap the server evicts the oldest remote session of the API key that holds the most. Set it to <code>null</code> or <code>0</code> for no limit, which is also what <code>/api/dashboard/status</code> then reports, so a dashboard can tell "no cap" from a cap that happens to sit at the default.</td>
<td>Maximum concurrent remote sessions; at the cap the server evicts the least recently used remote session of the API key that holds the most, and a remote session that a request works on goes last. Set it to <code>null</code> or <code>0</code> for no limit, which is also what <code>/api/dashboard/status</code> then reports, so a dashboard can tell "no cap" from a cap that happens to sit at the default.</td>
</tr>
<tr>
<td><code>history_limit</code></td>
@@ -2511,7 +2586,7 @@ server never uses its own accounts: a client that sends nothing authenticates wi
</span><span id="__span-4-12"><a id="__codelineno-4-12" name="__codelineno-4-12" href="#__codelineno-4-12"></a><span class="w"> </span><span class="nt">shared</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">global</span><span class="w"> </span><span class="c1"># any region</span>
</span><span id="__span-4-13"><a id="__codelineno-4-13" name="__codelineno-4-13" href="#__codelineno-4-13"></a><span class="w"> </span><span class="nt">EXAMPLE2</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span><span class="w"> </span><span class="c1"># every profile (or the single credential), any region</span>
</span></code></pre></div>
<p>Each entry under a service names a profile from <code>credentials</code>, or a cookie file
<p>Each entry under a service is the name of a profile from <code>credentials</code>, or of a cookie file
<code>cookies/&lt;TAG&gt;/&lt;profile&gt;.txt</code> for a service that has no credentials. Its value is the region or
regions that account works in: a two-letter country code, a list of them, or <code>global</code>. Quote
<code>no</code> (Norway), because YAML reads the bare word as <code>false</code>.</p>