diff options
Diffstat (limited to 'distro/common/html/knife_raw.html')
-rw-r--r-- | distro/common/html/knife_raw.html | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/distro/common/html/knife_raw.html b/distro/common/html/knife_raw.html deleted file mode 100644 index e661e9a84a..0000000000 --- a/distro/common/html/knife_raw.html +++ /dev/null @@ -1,110 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - - -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - - <title>knife raw — chef-client Man Pages</title> - - <link rel="stylesheet" href="_static/guide.css" type="text/css" /> - <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> - - <script type="text/javascript"> - var DOCUMENTATION_OPTIONS = { - URL_ROOT: './', - VERSION: '', - COLLAPSE_INDEX: false, - FILE_SUFFIX: '.html', - HAS_SOURCE: true - }; - </script> - <script type="text/javascript" src="_static/jquery.js"></script> - <script type="text/javascript" src="_static/underscore.js"></script> - <script type="text/javascript" src="_static/doctools.js"></script> - - - </head> - <body> -<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px"> -<a href="http://docs.getchef.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a> -</div> - - - - - <div class="document"> - <div class="documentwrapper"> - - <div class="body"> - - <div class="section" id="knife-raw"> -<h1>knife raw<a class="headerlink" href="#knife-raw" title="Permalink to this headline">¶</a></h1> -<p>The <strong>knife raw</strong> subcommand is used to send a REST request to an endpoint in the Chef server API.</p> -<div class="section" id="syntax"> -<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2> -<p>This subcommand has the following syntax:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife raw REQUEST_PATH <span class="o">(</span>options<span class="o">)</span> -</pre></div> -</div> -</div> -<div class="section" id="options"> -<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2> -<div class="admonition note"> -<p class="first admonition-title">Note</p> -<p class="last">Review the list of <a class="reference internal" href="knife_common_options.html"><em>common options</em></a> available to this (and all) knife subcommands and plugins.</p> -</div> -<p>This subcommand has the following options:</p> -<dl class="docutils"> -<dt><tt class="docutils literal"><span class="pre">-i</span> <span class="pre">FILE</span></tt>, <tt class="docutils literal"><span class="pre">--input</span> <span class="pre">FILE</span></tt></dt> -<dd>The name of a file to be used with the <tt class="docutils literal"><span class="pre">PUT</span></tt> or a <tt class="docutils literal"><span class="pre">POST</span></tt> request.</dd> -<dt><tt class="docutils literal"><span class="pre">--[no-]pretty</span></tt></dt> -<dd>Use <tt class="docutils literal"><span class="pre">--no-pretty</span></tt> to disable pretty-print output for JSON. Default: <tt class="docutils literal"><span class="pre">--pretty</span></tt>.</dd> -<dt><tt class="docutils literal"><span class="pre">-m</span> <span class="pre">METHOD</span></tt>, <tt class="docutils literal"><span class="pre">--method</span> <span class="pre">METHOD</span></tt></dt> -<dd>The request method: <tt class="docutils literal"><span class="pre">DELETE</span></tt>, <tt class="docutils literal"><span class="pre">GET</span></tt>, <tt class="docutils literal"><span class="pre">POST</span></tt>, or <tt class="docutils literal"><span class="pre">PUT</span></tt>. Default value: <tt class="docutils literal"><span class="pre">GET</span></tt>.</dd> -</dl> -</div> -<div class="section" id="examples"> -<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2> -<p>The following examples show how to use this knife subcommand:</p> -<p><strong>View a client</strong></p> -<p>To view information about a client:</p> -<div class="highlight-bash"><div class="highlight"><pre>knife raw /clients/<client_name> -</pre></div> -</div> -<p><strong>View a node</strong></p> -<p>To view information about a node:</p> -<div class="highlight-bash"><div class="highlight"><pre>knife raw /nodes/<node_name> -</pre></div> -</div> -<p><strong>Delete a data bag</strong></p> -<p>To delete a data bag, enter a command similar to:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife raw -m DELETE /data/foo -</pre></div> -</div> -<p>to return something similar to:</p> -<div class="highlight-bash"><div class="highlight"><pre><span class="o">{</span> - <span class="s2">"name"</span>:<span class="s2">"foo"</span>, - <span class="s2">"json_class"</span>:<span class="s2">"Chef::DataBag"</span>, - <span class="s2">"chef_type"</span>:<span class="s2">"data_bag"</span> -<span class="o">}</span> -</pre></div> -</div> -</div> -</div> - - - </div> - - </div> - - - <div class="clearer"></div> - </div> - - - - - </body> -</html>
\ No newline at end of file |