<!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_TW.html'>Foreman v2</a>
    <span class='divider'>/</span>
  </li>
  <li class='active'>
    Compute resources
    
  </li>
  <li class='pull-right'>
  &nbsp;[ <a href="../../apidoc/v2/compute_resources.pt_BR.html">pt_BR</a> | <a href="../../apidoc/v2/compute_resources.de.html">de</a> | <a href="../../apidoc/v2/compute_resources.it.html">it</a> | <a href="../../apidoc/v2/compute_resources.sv_SE.html">sv_SE</a> | <a href="../../apidoc/v2/compute_resources.zh_CN.html">zh_CN</a> | <a href="../../apidoc/v2/compute_resources.en_GB.html">en_GB</a> | <a href="../../apidoc/v2/compute_resources.cs_CZ.html">cs_CZ</a> | <a href="../../apidoc/v2/compute_resources.fr.html">fr</a> | <a href="../../apidoc/v2/compute_resources.ru.html">ru</a> | <a href="../../apidoc/v2/compute_resources.ja.html">ja</a> | <a href="../../apidoc/v2/compute_resources.es.html">es</a> | <a href="../../apidoc/v2/compute_resources.ko.html">ko</a> | <a href="../../apidoc/v2/compute_resources.ca.html">ca</a> | <a href="../../apidoc/v2/compute_resources.gl.html">gl</a> | <a href="../../apidoc/v2/compute_resources.en.html">en</a> | <b><a href="../../apidoc/v2/compute_resources.zh_TW.html">zh_TW</a></b> | <a href="../../apidoc/v2/compute_resources.nl_NL.html">nl_NL</a> | <a href="../../apidoc/v2/compute_resources.pl.html">pl</a> ]
</li>

</ul>

<div class='page-header'>
  <h1>
    Compute resources
    <br>
    <small></small>
  </h1>
</div>






<div class='accordion' id='accordion'>

    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/index.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-index'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources
          </a>
          <br>
          <small>列出所有運算資源</small>
        </h2>
    </div>


    <div id='description-index' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;description&quot;: &quot;yourcompute&quot;,
      &quot;url&quot;: &quot;eu-west-1&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 928692541,
      &quot;name&quot;: &quot;amazon123&quot;,
      &quot;provider&quot;: &quot;EC2&quot;,
      &quot;provider_friendly_name&quot;: &quot;EC2&quot;,
      &quot;access_key&quot;: &quot;MyString&quot;,
      &quot;region&quot;: &quot;eu-west-1&quot;
    },
    {
      &quot;description&quot;: &quot;yourcompute&quot;,
      &quot;url&quot;: &quot;eu-west-1&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 304431216,
      &quot;name&quot;: &quot;another-ec2&quot;,
      &quot;provider&quot;: &quot;EC2&quot;,
      &quot;provider_friendly_name&quot;: &quot;EC2&quot;,
      &quot;access_key&quot;: &quot;MyString&quot;,
      &quot;region&quot;: &quot;eu-west-1&quot;
    },
    {
      &quot;description&quot;: &quot;MyString&quot;,
      &quot;url&quot;: &quot;qemu://stam/system&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 980190962,
      &quot;name&quot;: &quot;bigcompute&quot;,
      &quot;provider&quot;: &quot;Libvirt&quot;,
      &quot;provider_friendly_name&quot;: &quot;Libvirt&quot;,
      &quot;display_type&quot;: &quot;vnc&quot;,
      &quot;set_console_password&quot;: true
    },
    {
      &quot;description&quot;: &quot;yourcompute&quot;,
      &quot;url&quot;: &quot;us-central1-a&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 30517511,
      &quot;name&quot;: &quot;gce123&quot;,
      &quot;provider&quot;: &quot;GCE&quot;,
      &quot;provider_friendly_name&quot;: &quot;Google&quot;,
      &quot;email&quot;: null,
      &quot;zone&quot;: &quot;us-central1-a&quot;,
      &quot;project&quot;: &quot;foo&quot;,
      &quot;key_path&quot;: null
    },
    {
      &quot;description&quot;: &quot;mycompute&quot;,
      &quot;url&quot;: &quot;test:///default&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 367690737,
      &quot;name&quot;: &quot;mycompute&quot;,
      &quot;provider&quot;: &quot;Libvirt&quot;,
      &quot;provider_friendly_name&quot;: &quot;Libvirt&quot;,
      &quot;display_type&quot;: &quot;vnc&quot;,
      &quot;set_console_password&quot;: true
    },
    {
      &quot;description&quot;: &quot;computeresource&quot;,
      &quot;url&quot;: &quot;test:///default/v2.0&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 628705878,
      &quot;name&quot;: &quot;openstackcr&quot;,
      &quot;provider&quot;: &quot;Openstack&quot;,
      &quot;provider_friendly_name&quot;: &quot;OpenStack&quot;,
      &quot;user&quot;: &quot;MyString&quot;,
      &quot;tenant&quot;: null,
      &quot;domain&quot;: null
    },
    {
      &quot;description&quot;: &quot;ovirt resource&quot;,
      &quot;url&quot;: &quot;https://myovirt/api&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 510899777,
      &quot;name&quot;: &quot;Ovirt&quot;,
      &quot;provider&quot;: &quot;Ovirt&quot;,
      &quot;provider_friendly_name&quot;: &quot;oVirt&quot;,
      &quot;user&quot;: &quot;MyString&quot;,
      &quot;datacenter&quot;: &quot;1234567891011&quot;,
      &quot;use_v4&quot;: false,
      &quot;ovirt_quota&quot;: null
    },
    {
      &quot;description&quot;: &quot;vmware resource&quot;,
      &quot;url&quot;: &quot;https://myvmware/api&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 305613588,
      &quot;name&quot;: &quot;Vmware&quot;,
      &quot;provider&quot;: &quot;Vmware&quot;,
      &quot;provider_friendly_name&quot;: &quot;VMware&quot;,
      &quot;user&quot;: &quot;MyString&quot;,
      &quot;datacenter&quot;: &quot;1234567891011&quot;,
      &quot;server&quot;: &quot;https://myvmware/api&quot;,
      &quot;set_console_password&quot;: true,
      &quot;caching_enabled&quot;: true,
      &quot;display_type&quot;: &quot;vmrc&quot;
    },
    {
      &quot;description&quot;: &quot;yourcompute&quot;,
      &quot;url&quot;: &quot;test:///default&quot;,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;id&quot;: 932571420,
      &quot;name&quot;: &quot;yourcompute&quot;,
      &quot;provider&quot;: &quot;Libvirt&quot;,
      &quot;provider_friendly_name&quot;: &quot;Libvirt&quot;,
      &quot;display_type&quot;: &quot;vnc&quot;,
      &quot;set_console_password&quot;: true
    }
  ]
}</pre>

  <h3>參數</h3>
  <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>search </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
<p>篩選結果</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>order </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
<p>Sort field and order, eg. ‘id DESC’</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>page </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
<p>編頁結果</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>per_page </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
<p>每個請求的項目數量</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>

    <h3>Search fields</h3>
  <table class='table'>
  <thead>
    <tr>
      <th width="20%">Field name</th>
      <th width="20%">類型</th>
      <th width="60%">Possible values</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>id</td>
      <td>integer</td>
      <td></td>
    </tr>
    <tr>
      <td>location</td>
      <td>string</td>
      <td></td>
    </tr>
    <tr>
      <td>location_id</td>
      <td>integer</td>
      <td></td>
    </tr>
    <tr>
      <td>name</td>
      <td>string</td>
      <td></td>
    </tr>
    <tr>
      <td>organization</td>
      <td>string</td>
      <td></td>
    </tr>
    <tr>
      <td>organization_id</td>
      <td>integer</td>
      <td></td>
    </tr>
    <tr>
      <td>type</td>
      <td>string</td>
      <td></td>
    </tr>
  </tbody>
</table>






    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/show.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-show'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id
          </a>
          <br>
          <small>顯示運算資源</small>
        </h2>
    </div>


    <div id='description-show' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/367690737-mycompute
200
{
  &quot;description&quot;: &quot;mycompute&quot;,
  &quot;url&quot;: &quot;test:///default&quot;,
  &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
  &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
  &quot;id&quot;: 367690737,
  &quot;name&quot;: &quot;mycompute&quot;,
  &quot;provider&quot;: &quot;Libvirt&quot;,
  &quot;provider_friendly_name&quot;: &quot;Libvirt&quot;,
  &quot;display_type&quot;: &quot;vnc&quot;,
  &quot;set_console_password&quot;: true,
  &quot;images&quot;: [],
  &quot;compute_attributes&quot;: [],
  &quot;locations&quot;: [
    {
      &quot;id&quot;: 255093256,
      &quot;name&quot;: &quot;Location 1&quot;,
      &quot;title&quot;: &quot;Location 1&quot;,
      &quot;description&quot;: null
    }
  ],
  &quot;organizations&quot;: [
    {
      &quot;id&quot;: 447626438,
      &quot;name&quot;: &quot;Organization 1&quot;,
      &quot;title&quot;: &quot;Organization 1&quot;,
      &quot;description&quot;: null
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/create.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-create'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            POST /api/compute_resources
          </a>
          <br>
          <small>建立運算資源</small>
        </h2>
    </div>


    <div id='description-create' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">POST /api/compute_resources
{
  &quot;compute_resource&quot;: {
    &quot;name&quot;: &quot;libvirt_compute&quot;,
    &quot;provider&quot;: &quot;libvirt&quot;,
    &quot;organization_ids&quot;: [
      114267492
    ],
    &quot;location_ids&quot;: [
      447626471,
      447626472,
      447626473
    ],
    &quot;url&quot;: &quot;qemu+ssh://root@libvirt.example.com/system&quot;
  }
}
201
{
  &quot;description&quot;: null,
  &quot;url&quot;: &quot;qemu+ssh://root@libvirt.example.com/system&quot;,
  &quot;created_at&quot;: &quot;2019-02-20 13:25:44 UTC&quot;,
  &quot;updated_at&quot;: &quot;2019-02-20 13:25:44 UTC&quot;,
  &quot;id&quot;: 980190966,
  &quot;name&quot;: &quot;libvirt_compute&quot;,
  &quot;provider&quot;: &quot;Libvirt&quot;,
  &quot;provider_friendly_name&quot;: &quot;Libvirt&quot;,
  &quot;display_type&quot;: &quot;vnc&quot;,
  &quot;set_console_password&quot;: true,
  &quot;images&quot;: [],
  &quot;compute_attributes&quot;: [],
  &quot;locations&quot;: [
    {
      &quot;id&quot;: 447626471,
      &quot;name&quot;: &quot;loc146&quot;,
      &quot;title&quot;: &quot;loc146&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;id&quot;: 447626472,
      &quot;name&quot;: &quot;loc147&quot;,
      &quot;title&quot;: &quot;loc147&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;id&quot;: 447626473,
      &quot;name&quot;: &quot;loc148&quot;,
      &quot;title&quot;: &quot;loc148&quot;,
      &quot;description&quot;: null
    }
  ],
  &quot;organizations&quot;: [
    {
      &quot;id&quot;: 114267492,
      &quot;name&quot;: &quot;Empty Organization&quot;,
      &quot;title&quot;: &quot;Empty Organization&quot;,
      &quot;description&quot;: null
    }
  ]
}</pre>

  <h3>參數</h3>
  <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>compute_resource </strong><br>
      <small>
        必填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a Hash</p>
</li>
        </ul>

    </td>

  </tr>

    <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[name] </strong><br>
      <small>
        必填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[provider] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>供應者包含了 Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[url] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>URL for Libvirt, oVirt, OpenStack and Rackspace</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[description] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[user] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>oVirt、EC2、VMware、OpenStack 的使用者名稱。EC2 的存取金鑰。</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[password] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>Ovirt、EC2、Vmware、Openstack 的密碼。EC2 的祕密金鑰</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[uuid] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>Deprecated, please use datacenter</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[datacenter] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>適用於 Ovirt、Vmware Datacenter</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[use_v4] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for oVirt only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[ovirt_quota] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for oVirt only, ID of quota to use</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[public_key] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for oVirt only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[region] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for EC2 only, use ‘us-gov-west-1’ for GovCloud region</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[tenant] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>僅適用於 Openstack</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[domain] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>僅適用於 Openstack</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[server] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>適用於 Vmware</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[set_console_password] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>僅適用於 Libvirt 和 VMware</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[display_type] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for Libvirt only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>VNC</code>, <code>SPICE</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[caching_enabled] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>enable caching, for VMware only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[location_ids] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>將位置取代為特定 ID</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[organization_ids] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>將組織取代為特定 ID。</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  


    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/update.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-update'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            PUT /api/compute_resources/:id
          </a>
          <br>
          <small>更新運算資源</small>
        </h2>
    </div>


    <div id='description-update' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">PUT /api/compute_resources/367690737
{
  &quot;compute_resource&quot;: {
    &quot;location_ids&quot;: [
      447626474,
      447626475,
      447626476
    ]
  }
}
200
{
  &quot;description&quot;: &quot;mycompute&quot;,
  &quot;url&quot;: &quot;test:///default&quot;,
  &quot;created_at&quot;: &quot;2019-02-20 13:25:27 UTC&quot;,
  &quot;updated_at&quot;: &quot;2019-02-20 13:25:27 UTC&quot;,
  &quot;id&quot;: 367690737,
  &quot;name&quot;: &quot;mycompute&quot;,
  &quot;provider&quot;: &quot;Libvirt&quot;,
  &quot;provider_friendly_name&quot;: &quot;Libvirt&quot;,
  &quot;display_type&quot;: &quot;vnc&quot;,
  &quot;set_console_password&quot;: true,
  &quot;images&quot;: [],
  &quot;compute_attributes&quot;: [],
  &quot;locations&quot;: [
    {
      &quot;id&quot;: 447626474,
      &quot;name&quot;: &quot;loc149&quot;,
      &quot;title&quot;: &quot;loc149&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;id&quot;: 447626475,
      &quot;name&quot;: &quot;loc150&quot;,
      &quot;title&quot;: &quot;loc150&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;id&quot;: 447626476,
      &quot;name&quot;: &quot;loc151&quot;,
      &quot;title&quot;: &quot;loc151&quot;,
      &quot;description&quot;: null
    }
  ],
  &quot;organizations&quot;: [
    {
      &quot;id&quot;: 447626438,
      &quot;name&quot;: &quot;Organization 1&quot;,
      &quot;title&quot;: &quot;Organization 1&quot;,
      &quot;description&quot;: null
    }
  ]
}</pre>

  <h3>參數</h3>
  <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 a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>compute_resource </strong><br>
      <small>
        必填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a Hash</p>
</li>
        </ul>

    </td>

  </tr>

    <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[name] </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[provider] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>供應者包含了 Libvirt, Ovirt, EC2, Vmware, Openstack, Rackspace, GCE</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[url] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>URL for Libvirt, oVirt, OpenStack and Rackspace</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[description] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[user] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>oVirt、EC2、VMware、OpenStack 的使用者名稱。EC2 的存取金鑰。</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[password] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>Ovirt、EC2、Vmware、Openstack 的密碼。EC2 的祕密金鑰</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[uuid] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>Deprecated, please use datacenter</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[datacenter] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>適用於 Ovirt、Vmware Datacenter</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[use_v4] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for oVirt only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[ovirt_quota] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for oVirt only, ID of quota to use</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[public_key] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for oVirt only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[region] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for EC2 only, use ‘us-gov-west-1’ for GovCloud region</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[tenant] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>僅適用於 Openstack</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[domain] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>僅適用於 Openstack</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[server] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>適用於 Vmware</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[set_console_password] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>僅適用於 Libvirt 和 VMware</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[display_type] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>for Libvirt only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>VNC</code>, <code>SPICE</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[caching_enabled] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>enable caching, for VMware only</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be one of: <code>true</code>, <code>false</code>, <code>1</code>, <code>0</code>.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[location_ids] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>將位置取代為特定 ID</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>compute_resource[organization_ids] </strong><br>
      <small>
        選填
        , 允許空值
      </small>
    </td>
    <td>
      
<p>將組織取代為特定 ID。</p>

        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be an array of any type</p>
</li>
        </ul>

    </td>

  </tr>

  


    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/destroy.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-destroy'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            DELETE /api/compute_resources/:id
          </a>
          <br>
          <small>刪除運算資源</small>
        </h2>
    </div>


    <div id='description-destroy' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">DELETE /api/compute_resources/932571420
{
  &quot;compute_resource&quot;: {}
}
200
{
  &quot;id&quot;: 932571420,
  &quot;name&quot;: &quot;yourcompute&quot;,
  &quot;description&quot;: &quot;yourcompute&quot;,
  &quot;url&quot;: &quot;test:///default&quot;,
  &quot;user&quot;: &quot;MyString&quot;,
  &quot;password&quot;: &quot;1234567&quot;,
  &quot;uuid&quot;: &quot;yourcompute&quot;,
  &quot;created_at&quot;: &quot;2019-02-20T13:29:14.049Z&quot;,
  &quot;updated_at&quot;: &quot;2019-02-20T13:29:14.049Z&quot;,
  &quot;attrs&quot;: {},
  &quot;caching_enabled&quot;: true,
  &quot;domain&quot;: null,
  &quot;http_proxy_id&quot;: null
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_images.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_images'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_images
          </a>
          <br>
          <small>列出運算資源的可用映像檔</small>
        </h2>
    </div>


    <div id='description-available_images' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/928692541-amazon123/available_images
200
[
  {
    &quot;name&quot;: &quot;some_image&quot;,
    &quot;uuid&quot;: &quot;123&quot;
  }
]</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_clusters.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_clusters'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_clusters
          </a>
          <br>
          <small>列出運算資源的可用叢集</small>
        </h2>
    </div>


    <div id='description-available_clusters' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/305613588-Vmware/available_clusters
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_vmware_object&quot;,
      &quot;id&quot;: &quot;my11-test35-uuid99&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_flavors.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_flavors'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_flavors
          </a>
          <br>
          <small>列出運算資源的可用選擇</small>
        </h2>
    </div>


    <div id='description-available_flavors' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/928692541-amazon123/available_flavors
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_ec2_object&quot;,
      &quot;id&quot;: &quot;123&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_folders.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_folders'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_folders
          </a>
          <br>
          <small>列出運算資源的可用資料夾</small>
        </h2>
    </div>


    <div id='description-available_folders' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/305613588-Vmware/available_folders
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_vmware_object&quot;,
      &quot;id&quot;: &quot;my11-test35-uuid99&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_zones.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_zones'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_zones
          </a>
          <br>
          <small>列出運算資源的可用區域</small>
        </h2>
    </div>


    <div id='description-available_zones' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/928692541-amazon123/available_zones
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_ec2_object&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_networks.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_networks'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_networks
          </a>
          <br>
          <small>列出運算資源的可用網路</small>
        </h2>
        <h2>
          <a href='#description-available_networks'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_clusters/:cluster_id/available_networks
          </a>
          <br>
          <small>列出運算資源叢集的可用網路</small>
        </h2>
    </div>


    <div id='description-available_networks' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/305613588-Vmware/available_clusters/123-456-789/available_networks
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_vmware_object&quot;,
      &quot;id&quot;: &quot;my11-test35-uuid99&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>cluster_id </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_resource_pools.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_resource_pools'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_clusters/:cluster_id/available_resource_pools
          </a>
          <br>
          <small>列出運算資源叢集的資源集區</small>
        </h2>
    </div>


    <div id='description-available_resource_pools' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/305613588-Vmware/available_clusters/123-456-789/available_resource_pools
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_vmware_object&quot;,
      &quot;id&quot;: &quot;my11-test35-uuid99&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>cluster_id </strong><br>
      <small>
        必填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/storage_domain.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-storage_domain'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/storage_domains/:storage_domain_id
          </a>
          <br>
          <small>列出某個儲存區域的屬性</small>
        </h2>
    </div>


    <div id='description-storage_domain' class='collapse accordion-body'>
      




  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>storage_domain_id </strong><br>
      <small>
        必填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_storage_domains.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_storage_domains'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_storage_domains
          </a>
          <br>
          <small>列出運算資源的儲存區域</small>
        </h2>
        <h2>
          <a href='#description-available_storage_domains'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_storage_domains/:storage_domain
          </a>
          <br>
          <small>列出某個儲存區域的屬性</small>
        </h2>
        <h2>
          <a href='#description-available_storage_domains'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_clusters/:cluster_id/available_storage_domains
          </a>
          <br>
          <small>列出運算資源的儲存區域</small>
        </h2>
    </div>


    <div id='description-available_storage_domains' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/305613588-Vmware/available_storage_domains
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_vmware_object&quot;,
      &quot;id&quot;: &quot;my11-test35-uuid99&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>cluster_id </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>storage_domain </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/storage_pod.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-storage_pod'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/storage_pods/:storage_pod_id
          </a>
          <br>
          <small>列出某個儲存容器的屬性</small>
        </h2>
    </div>


    <div id='description-storage_pod' class='collapse accordion-body'>
      




  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>storage_pod_id </strong><br>
      <small>
        必填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_storage_pods.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_storage_pods'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_storage_pods
          </a>
          <br>
          <small>列出運算資源的儲存容器</small>
        </h2>
        <h2>
          <a href='#description-available_storage_pods'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_storage_pods/:storage_pod
          </a>
          <br>
          <small>列出某個儲存容器的屬性</small>
        </h2>
        <h2>
          <a href='#description-available_storage_pods'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_clusters/:cluster_id/available_storage_pods
          </a>
          <br>
          <small>列出運算資源的儲存容器</small>
        </h2>
    </div>


    <div id='description-available_storage_pods' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/305613588-Vmware/available_storage_pods
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_vmware_object&quot;,
      &quot;id&quot;: &quot;my11-test35-uuid99&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>cluster_id </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>storage_pod </strong><br>
      <small>
        選填
        
      </small>
    </td>
    <td>
      
        <p><strong>Validations:</strong></p>
        <ul>
            <li>
<p>Must be a String</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/available_security_groups.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-available_security_groups'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/compute_resources/:id/available_security_groups
          </a>
          <br>
          <small>列出運算資源的可用安全群組</small>
        </h2>
    </div>


    <div id='description-available_security_groups' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">GET /api/compute_resources/928692541-amazon123/available_security_groups
200
{
  &quot;total&quot;: 9,
  &quot;subtotal&quot;: 9,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;name&quot;: &quot;test_ec2_object&quot;,
      &quot;group_id&quot;: &quot;123&quot;
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/associate.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-associate'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            PUT /api/compute_resources/:id/associate
          </a>
          <br>
          <small>將 VM 與主機建立關連</small>
        </h2>
    </div>


    <div id='description-associate' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">PUT /api/compute_resources/980190963-compute_resource293/associate
{
  &quot;compute_resource&quot;: {}
}
200
{
  &quot;total&quot;: 10,
  &quot;subtotal&quot;: 10,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: null,
    &quot;order&quot;: null
  },
  &quot;results&quot;: [
    {
      &quot;ip&quot;: null,
      &quot;ip6&quot;: null,
      &quot;environment_id&quot;: null,
      &quot;environment_name&quot;: null,
      &quot;last_report&quot;: null,
      &quot;mac&quot;: null,
      &quot;realm_id&quot;: null,
      &quot;realm_name&quot;: null,
      &quot;sp_mac&quot;: null,
      &quot;sp_ip&quot;: null,
      &quot;sp_name&quot;: null,
      &quot;domain_id&quot;: null,
      &quot;domain_name&quot;: null,
      &quot;architecture_id&quot;: null,
      &quot;architecture_name&quot;: null,
      &quot;operatingsystem_id&quot;: null,
      &quot;operatingsystem_name&quot;: null,
      &quot;subnet_id&quot;: null,
      &quot;subnet_name&quot;: null,
      &quot;subnet6_id&quot;: null,
      &quot;subnet6_name&quot;: null,
      &quot;sp_subnet_id&quot;: null,
      &quot;ptable_id&quot;: null,
      &quot;ptable_name&quot;: null,
      &quot;medium_id&quot;: null,
      &quot;medium_name&quot;: null,
      &quot;pxe_loader&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_name&quot;: &quot;Admin User&quot;,
      &quot;owner_type&quot;: &quot;User&quot;,
      &quot;enabled&quot;: true,
      &quot;managed&quot;: false,
      &quot;use_image&quot;: null,
      &quot;image_file&quot;: &quot;&quot;,
      &quot;uuid&quot;: &quot;2eeec255-baa3-4065-8835-4a8e36b66e45&quot;,
      &quot;compute_resource_id&quot;: 980190963,
      &quot;compute_resource_name&quot;: &quot;compute_resource293&quot;,
      &quot;compute_profile_id&quot;: null,
      &quot;compute_profile_name&quot;: null,
      &quot;capabilities&quot;: [
        &quot;image&quot;,
        &quot;key_pair&quot;
      ],
      &quot;provision_method&quot;: &quot;image&quot;,
      &quot;certname&quot;: &quot;host1494&quot;,
      &quot;image_id&quot;: null,
      &quot;image_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-02-20 13:29:14 UTC&quot;,
      &quot;last_compile&quot;: null,
      &quot;global_status&quot;: 0,
      &quot;global_status_label&quot;: &quot;OK&quot;,
      &quot;organization_id&quot;: 447626438,
      &quot;organization_name&quot;: &quot;Organization 1&quot;,
      &quot;location_id&quot;: 255093256,
      &quot;location_name&quot;: &quot;Location 1&quot;,
      &quot;puppet_status&quot;: 0,
      &quot;model_name&quot;: null,
      &quot;name&quot;: &quot;host1494&quot;,
      &quot;id&quot;: 2,
      &quot;puppet_proxy_id&quot;: null,
      &quot;puppet_proxy_name&quot;: null,
      &quot;puppet_ca_proxy_id&quot;: null,
      &quot;puppet_ca_proxy_name&quot;: null,
      &quot;puppet_proxy&quot;: null,
      &quot;puppet_ca_proxy&quot;: null,
      &quot;hostgroup_name&quot;: null,
      &quot;hostgroup_title&quot;: null
    }
  ]
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/compute_resources/refresh_cache.zh_TW.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-refresh_cache'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            PUT /api/compute_resources/:id/refresh_cache
          </a>
          <br>
          <small>Refresh Compute Resource Cache</small>
        </h2>
    </div>


    <div id='description-refresh_cache' class='collapse accordion-body'>
      



  <h3>示例</h3>
    <pre class="prettyprint">PUT /api/compute_resources/305613588-Vmware/refresh_cache
{
  &quot;compute_resource&quot;: {}
}
200
{
  &quot;message&quot;: &quot;Successfully refreshed the cache.&quot;
}</pre>

  <h3>參數</h3>
  <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, space, underscore(_), hypen(-) with no leading or trailing space.</p>
</li>
        </ul>

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
</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>
