PFSClient需要和Ingress之间做双向验证<sup>[tls](#tls)</sup>,所以用户需要首先在`cloud.paddlepaddle.org`上注册一下,申请用户空间,并且把系统生成的CA(certificate authority)、Key、CRT(CA signed certificate)下载到本地,然后才能使用PFSClient。
<liclass="toctree-l2"><aclass="reference internal"href="../../getstarted/build_and_install/index_en.html">Install and Build</a><ul>
<liclass="toctree-l3"><aclass="reference internal"href="../../getstarted/build_and_install/docker_install_en.html">PaddlePaddle in Docker Containers</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../howto/usage/k8s/k8s_en.html">Paddle On Kubernetes</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../howto/usage/k8s/k8s_aws_en.html">Distributed PaddlePaddle Training on AWS with Kubernetes</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../howto/dev/new_layer_en.html">Write New Layers</a></li>
<li>双向验证PFSClient需要和Ingress之间做双向验证<sup><aclass="reference external"href="#tls">tls</a></sup>,所以用户需要首先在<codeclass="docutils literal"><spanclass="pre">cloud.paddlepaddle.org</span></code>上注册一下,申请用户空间,并且把系统生成的CA(certificate authority)、Key、CRT(CA signed certificate)下载到本地,然后才能使用PFSClient。</li>
</ul>
</div>
<divclass="section"id="ingress">
<spanid="ingress"></span><h3><aclass="reference external"href="https://kubernetes.io/docs/concepts/services-networking/ingress/">Ingress</a><aclass="headerlink"href="#ingress"title="Permalink to this headline">¶</a></h3>
<li><codeclass="docutils literal"><spanclass="pre">GET</span><spanclass="pre">/api/v1/files</span></code>: Get metadata of files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">POST</span><spanclass="pre">/api/v1/files</span></code>: Create files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">PATCH</span><spanclass="pre">/api/v1/files</span></code>: Update files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">DELETE</span><spanclass="pre">/api/v1/files</span></code>: Delete files or directories.</li>
</ul>
</li>
<li>/api/v1/file/chunks<ul>
<li><codeclass="docutils literal"><spanclass="pre">GET</span><spanclass="pre">/api/v1/storage/file/chunks</span></code>: Get chunks’s metadata of a file.</li>
</ul>
</li>
<li>/api/v1/storage/files<ul>
<li><codeclass="docutils literal"><spanclass="pre">GET</span><spanclass="pre">/api/v1/storage/files</span></code>: Download files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">POST</span><spanclass="pre">/api/v1/storage/files</span></code>: Upload files or directories.</li>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.
<liclass="toctree-l2"><aclass="reference internal"href="../../../getstarted/build_and_install/index_en.html">Install and Build</a><ul>
<liclass="toctree-l3"><aclass="reference internal"href="../../../getstarted/build_and_install/docker_install_en.html">PaddlePaddle in Docker Containers</a></li>
<liclass="toctree-l3"><aclass="reference internal"href="../../../getstarted/build_and_install/build_from_source_en.html">Installing from Sources</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../../howto/usage/k8s/k8s_en.html">Paddle On Kubernetes</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../../howto/usage/k8s/k8s_aws_en.html">Distributed PaddlePaddle Training on AWS with Kubernetes</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../../howto/dev/new_layer_en.html">Write New Layers</a></li>
<spanid="pfsclient"></span><h1>PFSClient<aclass="headerlink"href="#pfsclient"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="description">
<spanid="description"></span><h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal"><spanclass="pre">pfs</span></code> command is a Command Line Interface to manage your files on PaddlePaddle Cloud</p>
</div>
<divclass="section"id="synopsis">
<spanid="synopsis"></span><h2>Synopsis<aclass="headerlink"href="#synopsis"title="Permalink to this headline">¶</a></h2>
<spanid="path-arguments"></span><h2>Path Arguments<aclass="headerlink"href="#path-arguments"title="Permalink to this headline">¶</a></h2>
<p>When using a command, we need to specify path arguments. There are two path argument type: <codeclass="docutils literal"><spanclass="pre">localpath</span></code> and <codeclass="docutils literal"><spanclass="pre">pfspath</span></code>.</p>
<p>A <codeclass="docutils literal"><spanclass="pre">pfspath</span></code> begin with <codeclass="docutils literal"><spanclass="pre">/pfs</span></code>, eg: <codeclass="docutils literal"><spanclass="pre">/pfs/$DATACENTER/home/$USER/folder</span></code>.</p>
<p><aclass="reference external"href="https://github.com/PaddlePaddle/Paddle/blob/develop/doc/design/cluster_train/data_dispatch.md#上传训练文件">Here</a> is how to config datacenters.</p>
</div>
<divclass="section"id="order-of-path-arguments">
<spanid="order-of-path-arguments"></span><h2>order of Path Arguments<aclass="headerlink"href="#order-of-path-arguments"title="Permalink to this headline">¶</a></h2>
<p>Commonly, if there are two path arguments, the first is the source, and the second is the destination.</p>
</div>
<divclass="section"id="subcommonds">
<spanid="subcommonds"></span><h2>Subcommonds<aclass="headerlink"href="#subcommonds"title="Permalink to this headline">¶</a></h2>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.
PFSClient需要和Ingress之间做双向验证<sup>[tls](#tls)</sup>,所以用户需要首先在`cloud.paddlepaddle.org`上注册一下,申请用户空间,并且把系统生成的CA(certificate authority)、Key、CRT(CA signed certificate)下载到本地,然后才能使用PFSClient。
<li><codeclass="docutils literal"><spanclass="pre">GET</span><spanclass="pre">/api/v1/files</span></code>: Get metadata of files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">POST</span><spanclass="pre">/api/v1/files</span></code>: Create files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">PATCH</span><spanclass="pre">/api/v1/files</span></code>: Update files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">DELETE</span><spanclass="pre">/api/v1/files</span></code>: Delete files or directories.</li>
</ul>
</li>
<li>/api/v1/file/chunks<ul>
<li><codeclass="docutils literal"><spanclass="pre">GET</span><spanclass="pre">/api/v1/storage/file/chunks</span></code>: Get chunks’s metadata of a file.</li>
</ul>
</li>
<li>/api/v1/storage/files<ul>
<li><codeclass="docutils literal"><spanclass="pre">GET</span><spanclass="pre">/api/v1/storage/files</span></code>: Download files or directories.</li>
<li><codeclass="docutils literal"><spanclass="pre">POST</span><spanclass="pre">/api/v1/storage/files</span></code>: Upload files or directories.</li>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.
<p>The <codeclass="docutils literal"><spanclass="pre">pfs</span></code> command is a Command Line Interface to manage your files on PaddlePaddle Cloud</p>
<p>When using a command, we need to specify path arguments. There are two path argument type: <codeclass="docutils literal"><spanclass="pre">localpath</span></code> and <codeclass="docutils literal"><spanclass="pre">pfspath</span></code>.</p>
<p>A <codeclass="docutils literal"><spanclass="pre">pfspath</span></code> begin with <codeclass="docutils literal"><spanclass="pre">/pfs</span></code>, eg: <codeclass="docutils literal"><spanclass="pre">/pfs/$DATACENTER/home/$USER/folder</span></code>.</p>
<p><aclass="reference external"href="https://github.com/PaddlePaddle/Paddle/blob/develop/doc/design/cluster_train/data_dispatch.md#上传训练文件">Here</a> is how to config datacenters.</p>
</div>
<divclass="section"id="order-of-path-arguments">
<spanid="order-of-path-arguments"></span><h2>order of Path Arguments<aclass="headerlink"href="#order-of-path-arguments"title="永久链接至标题">¶</a></h2>
<p>Commonly, if there are two path arguments, the first is the source, and the second is the destination.</p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.