text: <!DOCTYPE html>
  <html>
  <head>
    <title>API 文档</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/bootstrap.min.css'/>
  <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/prettify.css'/>
  <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/bundled/bootstrap-responsive.min.css'/>
    <link type='text/css' rel='stylesheet' href='../../../apidoc/stylesheets/application.css'/>
    <!-- IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="container-fluid">
      <div class="row-fluid">
        <div id='container'>
          <ul class='breadcrumb'>
    <li>
      <a href='../../../apidoc/v2.zh_CN.html'>Foreman v2</a>
      <span class='divider'>/</span>
    </li>
    <li>
      <a href='../../../apidoc/v2/puppet_hosts.zh_CN.html'>
        Puppet hosts
        
      </a>
      <span class='divider'>/</span>
    </li>
    <li class='active'>puppetrun</li>
    <li class='pull-right'>
    &nbsp;[ <a href="../../../apidoc/v2/puppet_hosts/puppetrun.pt_BR.html">pt_BR</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.de.html">de</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.it.html">it</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.sv_SE.html">sv_SE</a> | <b><a href="../../../apidoc/v2/puppet_hosts/puppetrun.zh_CN.html">zh_CN</a></b> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.en_GB.html">en_GB</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.cs_CZ.html">cs_CZ</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.fr.html">fr</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.ru.html">ru</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.ja.html">ja</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.es.html">es</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.ko.html">ko</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.ca.html">ca</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.gl.html">gl</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.en.html">en</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.zh_TW.html">zh_TW</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.nl_NL.html">nl_NL</a> | <a href="../../../apidoc/v2/puppet_hosts/puppetrun.pl.html">pl</a> ]
  </li>
  
  
  </ul>
  
    <div class='page-header'>
      <h1>
        PUT /api/hosts/:id/puppetrun
        <br>
        <small>强制在该主机中运行 Puppet 代理</small>
      </h1>
    </div>
  
  <div>
  
    
  
  
  
    <h2>示例</h2>
      <pre class="prettyprint">PUT /api/hosts/9/puppetrun
  {
    &quot;controller&quot;: &quot;puppet_hosts&quot;,
    &quot;puppet_host&quot;: {
      &quot;controller&quot;: &quot;puppet_hosts&quot;
    }
  }
  200
  {
    &quot;id&quot;: 9,
    &quot;name&quot;: &quot;host920&quot;,
    &quot;last_compile&quot;: null,
    &quot;last_report&quot;: null,
    &quot;updated_at&quot;: &quot;2019-02-20T13:25:43.926Z&quot;,
    &quot;created_at&quot;: &quot;2019-02-20T13:25:43.926Z&quot;,
    &quot;root_pass&quot;: &quot;$5$RYi3DbzvQnNbJbxk$3xa/TAXyMozZ6WVD73UWAZzVEOH8iGztLIDvPdASaa4&quot;,
    &quot;architecture_id&quot;: null,
    &quot;operatingsystem_id&quot;: null,
    &quot;environment_id&quot;: 687036946,
    &quot;ptable_id&quot;: null,
    &quot;medium_id&quot;: null,
    &quot;build&quot;: false,
    &quot;comment&quot;: null,
    &quot;disk&quot;: null,
    &quot;installed_at&quot;: null,
    &quot;model_id&quot;: null,
    &quot;hostgroup_id&quot;: null,
    &quot;owner_id&quot;: 135138680,
    &quot;owner_type&quot;: &quot;User&quot;,
    &quot;enabled&quot;: true,
    &quot;puppet_ca_proxy_id&quot;: null,
    &quot;managed&quot;: false,
    &quot;use_image&quot;: null,
    &quot;image_file&quot;: &quot;&quot;,
    &quot;uuid&quot;: null,
    &quot;compute_resource_id&quot;: null,
    &quot;puppet_proxy_id&quot;: 982965214,
    &quot;certname&quot;: &quot;host920&quot;,
    &quot;image_id&quot;: null,
    &quot;organization_id&quot;: 447626438,
    &quot;location_id&quot;: 255093256,
    &quot;otp&quot;: null,
    &quot;realm_id&quot;: null,
    &quot;compute_profile_id&quot;: null,
    &quot;provision_method&quot;: &quot;build&quot;,
    &quot;grub_pass&quot;: &quot;$6$DkKVJPCVt7WbM9ZZ$Nqn7lzBd/EvY/Y6b.WeYGhf8oYRI/jXKLuc2HQjACgVyE0KbXFUf/zPmwBFJyrhNSvbJvfYiBDEaICPxASVBB.&quot;,
    &quot;global_status&quot;: 0,
    &quot;lookup_value_matcher&quot;: &quot;fqdn=host920&quot;,
    &quot;pxe_loader&quot;: null,
    &quot;initiated_at&quot;: null,
    &quot;build_errors&quot;: null
  }</pre>
  
    <h2>参数</h2>
    <table class='table'>
      <thead>
        <tr>
          <th>参数名字</th>
          <th>描述</th>
        </tr>
      </thead>
      <tbody>
          <tr style='background-color:rgb(255,255,255);'>
      <td>
        <strong>location_id </strong><br>
        <small>
          选填
          
        </small>
      </td>
      <td>
        
  <p>根据位置界定的范围</p>
  
          <p><strong>Validations:</strong></p>
          <ul>
              <li>
  <p>Must be a Integer</p>
  </li>
          </ul>
  
      </td>
  
    </tr>
  
    
    <tr style='background-color:rgb(255,255,255);'>
      <td>
        <strong>organization_id </strong><br>
        <small>
          选填
          
        </small>
      </td>
      <td>
        
  <p>根据机构界定的范围</p>
  
          <p><strong>Validations:</strong></p>
          <ul>
              <li>
  <p>Must be a Integer</p>
  </li>
          </ul>
  
      </td>
  
    </tr>
  
    
    <tr style='background-color:rgb(255,255,255);'>
      <td>
        <strong>id </strong><br>
        <small>
          必填
          
        </small>
      </td>
      <td>
        
          <p><strong>Validations:</strong></p>
          <ul>
              <li>
  <p>Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.</p>
  </li>
          </ul>
  
      </td>
  
    </tr>
  
    
  
      </tbody>
    </table>
  
  
  
  
  </div>
  
    
  
          
        </div>
      </div>
      <hr>
      <footer></footer>
    </div>
    <script type='text/javascript' src='../../../apidoc/javascripts/bundled/jquery.js'></script>
  <script type='text/javascript' src='../../../apidoc/javascripts/bundled/bootstrap-collapse.js'></script>
  <script type='text/javascript' src='../../../apidoc/javascripts/bundled/prettify.js'></script>
  <script type='text/javascript' src='../../../apidoc/javascripts/apipie.js'></script>
  </body>
  </html>
  