<!DOCTYPE html>
<html>
<head>
  <title>Documentação da 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.pt_BR.html'>Foreman v2</a>
    <span class='divider'>/</span>
  </li>
  <li class='active'>
    Locations
    
  </li>
  <li class='pull-right'>
  &nbsp;[ <a href="../../apidoc/v2/locations.ca.html">ca</a> | <a href="../../apidoc/v2/locations.cs_CZ.html">cs_CZ</a> | <a href="../../apidoc/v2/locations.de.html">de</a> | <a href="../../apidoc/v2/locations.en.html">en</a> | <a href="../../apidoc/v2/locations.en_GB.html">en_GB</a> | <a href="../../apidoc/v2/locations.es.html">es</a> | <a href="../../apidoc/v2/locations.fr.html">fr</a> | <a href="../../apidoc/v2/locations.gl.html">gl</a> | <a href="../../apidoc/v2/locations.it.html">it</a> | <a href="../../apidoc/v2/locations.ja.html">ja</a> | <a href="../../apidoc/v2/locations.ko.html">ko</a> | <a href="../../apidoc/v2/locations.nl_NL.html">nl_NL</a> | <a href="../../apidoc/v2/locations.pl.html">pl</a> | <b><a href="../../apidoc/v2/locations.pt_BR.html">pt_BR</a></b> | <a href="../../apidoc/v2/locations.ru.html">ru</a> | <a href="../../apidoc/v2/locations.sv_SE.html">sv_SE</a> | <a href="../../apidoc/v2/locations.zh_CN.html">zh_CN</a> | <a href="../../apidoc/v2/locations.zh_TW.html">zh_TW</a> ]
</li>

</ul>

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






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

    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/locations/index.pt_BR.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-index'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/locations
          </a>
          <br>
          <small>List all locations</small>
        </h2>
    </div>


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



  <h3>Exemplos</h3>
    <pre class="prettyprint">GET /api/locations
200
{
  &quot;total&quot;: 28,
  &quot;subtotal&quot;: 28,
  &quot;page&quot;: 1,
  &quot;per_page&quot;: 20,
  &quot;search&quot;: null,
  &quot;sort&quot;: {
    &quot;by&quot;: &quot;title&quot;,
    &quot;order&quot;: &quot;DESC&quot;
  },
  &quot;results&quot;: [
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626470,
      &quot;name&quot;: &quot;z&quot;,
      &quot;title&quot;: &quot;z&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626469,
      &quot;name&quot;: &quot;y&quot;,
      &quot;title&quot;: &quot;y&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626468,
      &quot;name&quot;: &quot;x&quot;,
      &quot;title&quot;: &quot;x&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626467,
      &quot;name&quot;: &quot;w&quot;,
      &quot;title&quot;: &quot;w&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626466,
      &quot;name&quot;: &quot;v&quot;,
      &quot;title&quot;: &quot;v&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626465,
      &quot;name&quot;: &quot;u&quot;,
      &quot;title&quot;: &quot;u&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626464,
      &quot;name&quot;: &quot;t&quot;,
      &quot;title&quot;: &quot;t&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626463,
      &quot;name&quot;: &quot;s&quot;,
      &quot;title&quot;: &quot;s&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626462,
      &quot;name&quot;: &quot;r&quot;,
      &quot;title&quot;: &quot;r&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626461,
      &quot;name&quot;: &quot;q&quot;,
      &quot;title&quot;: &quot;q&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626460,
      &quot;name&quot;: &quot;p&quot;,
      &quot;title&quot;: &quot;p&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626459,
      &quot;name&quot;: &quot;o&quot;,
      &quot;title&quot;: &quot;o&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626458,
      &quot;name&quot;: &quot;n&quot;,
      &quot;title&quot;: &quot;n&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626457,
      &quot;name&quot;: &quot;m&quot;,
      &quot;title&quot;: &quot;m&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:45 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:45 UTC&quot;,
      &quot;id&quot;: 373111740,
      &quot;name&quot;: &quot;Location 2&quot;,
      &quot;title&quot;: &quot;Location 2&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:45 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:45 UTC&quot;,
      &quot;id&quot;: 255093256,
      &quot;name&quot;: &quot;Location 1&quot;,
      &quot;title&quot;: &quot;Location 1&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626456,
      &quot;name&quot;: &quot;l&quot;,
      &quot;title&quot;: &quot;l&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626455,
      &quot;name&quot;: &quot;k&quot;,
      &quot;title&quot;: &quot;k&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626454,
      &quot;name&quot;: &quot;j&quot;,
      &quot;title&quot;: &quot;j&quot;,
      &quot;description&quot;: null
    },
    {
      &quot;ancestry&quot;: null,
      &quot;parent_id&quot;: null,
      &quot;parent_name&quot;: null,
      &quot;created_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 09:01:48 UTC&quot;,
      &quot;id&quot;: 447626453,
      &quot;name&quot;: &quot;i&quot;,
      &quot;title&quot;: &quot;i&quot;,
      &quot;description&quot;: null
    }
  ]
}</pre>

  <h3>Parâmentros</h3>
  <table class='table'>
    <thead>
      <tr>
        <th>Nome parâmetro</th>
        <th>Descrição</th>
      </tr>
    </thead>
    <tbody>
        <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current location context for the request</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current organization context for the request</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>filtrar resultados</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Classificar campo e ordem, ex.: ‘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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Número de página, iniciando em 1</p>

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

    </td>

  </tr>

  
  <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>per_page </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Número de resultados por página para retornar</p>

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

    </td>

  </tr>

  

    </tbody>
  </table>




    </div>
    <hr>
    <div class='pull-right small'>
      <a href='../../apidoc/v2/locations/show.pt_BR.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-show'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            GET /api/locations/:id
          </a>
          <br>
          <small>Show a location</small>
        </h2>
    </div>


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



  <h3>Exemplos</h3>
    <pre class="prettyprint">GET /api/locations/447626454
200
{
  &quot;select_all_types&quot;: [],
  &quot;description&quot;: null,
  &quot;created_at&quot;: &quot;2019-11-07 08:34:06 UTC&quot;,
  &quot;updated_at&quot;: &quot;2019-11-07 08:34:06 UTC&quot;,
  &quot;ancestry&quot;: null,
  &quot;parent_id&quot;: null,
  &quot;parent_name&quot;: null,
  &quot;id&quot;: 447626454,
  &quot;name&quot;: &quot;loc12&quot;,
  &quot;title&quot;: &quot;loc12&quot;,
  &quot;users&quot;: [],
  &quot;smart_proxies&quot;: [],
  &quot;subnets&quot;: [],
  &quot;compute_resources&quot;: [],
  &quot;media&quot;: [],
  &quot;config_templates&quot;: [],
  &quot;ptables&quot;: [],
  &quot;provisioning_templates&quot;: [],
  &quot;domains&quot;: [],
  &quot;realms&quot;: [],
  &quot;environments&quot;: [],
  &quot;hostgroups&quot;: [],
  &quot;organizations&quot;: [],
  &quot;hosts_count&quot;: 0,
  &quot;parameters&quot;: [
    {
      &quot;priority&quot;: 20,
      &quot;created_at&quot;: &quot;2019-11-07 08:34:06 UTC&quot;,
      &quot;updated_at&quot;: &quot;2019-11-07 08:34:06 UTC&quot;,
      &quot;id&quot;: 767575239,
      &quot;name&quot;: &quot;foo&quot;,
      &quot;parameter_type&quot;: &quot;string&quot;,
      &quot;value&quot;: &quot;*****&quot;
    }
  ]
}</pre>

  <h3>Parâmentros</h3>
  <table class='table'>
    <thead>
      <tr>
        <th>Nome parâmetro</th>
        <th>Descrição</th>
      </tr>
    </thead>
    <tbody>
        <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current location context for the request</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current organization context for the request</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>show_hidden_parameters </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Exibir valores de parâmetros ocultos</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(255,255,255);'>
    <td>
      <strong>id </strong><br>
      <small>
        requerido
        
      </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/locations/create.pt_BR.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-create'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            POST /api/locations
          </a>
          <br>
          <small>Create a location</small>
        </h2>
    </div>


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



  <h3>Exemplos</h3>
    <pre class="prettyprint">POST /api/locations
{
  &quot;location&quot;: {}
}
422
{
  &quot;error&quot;: {
    &quot;id&quot;: null,
    &quot;errors&quot;: {
      &quot;name&quot;: [
        &quot;can&#39;t be blank&quot;
      ]
    },
    &quot;full_messages&quot;: [
      &quot;Name can&#39;t be blank&quot;
    ]
  }
}</pre>

  <h3>Parâmentros</h3>
  <table class='table'>
    <thead>
      <tr>
        <th>Nome parâmetro</th>
        <th>Descrição</th>
      </tr>
    </thead>
    <tbody>
        <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current location context for the request</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current organization context for the request</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>location </strong><br>
      <small>
        requerido
        
      </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>location[name] </strong><br>
      <small>
        requerido
        
      </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>location[description] </strong><br>
      <small>
        opcional
        , nulo permitido
      </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>location[user_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs dos Usuários</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>location[smart_proxy_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do proxy inteligente</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>location[compute_resource_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do recurso de computação</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>location[medium_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de mídia</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>location[config_template_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de modelo de provisionamento</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>location[ptable_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do modelo de partição</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>location[provisioning_template_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de modelo de provisionamento</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>location[domain_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Domínio</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>location[realm_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Realm</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>location[hostgroup_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do grupo de host</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>location[environment_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Ambiente</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>location[subnet_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Ids de Subrede</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>location[parent_id] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>ID Pai</p>

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

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[ignore_types] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Lista de tipos de recurso que serão associados automaticamente</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>location[organization_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Associated organization IDs</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/locations/update.pt_BR.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-update'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            PUT /api/locations/:id
          </a>
          <br>
          <small>Update a location</small>
        </h2>
    </div>


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



  <h3>Exemplos</h3>
    <pre class="prettyprint">POST /api/locations/447626473
{
  &quot;location&quot;: {
    &quot;name&quot;: &quot;XOJvGidQ3V&quot;
  }
}
201
{
  &quot;select_all_types&quot;: [],
  &quot;description&quot;: null,
  &quot;created_at&quot;: &quot;2019-11-07 09:01:49 UTC&quot;,
  &quot;updated_at&quot;: &quot;2019-11-07 09:01:49 UTC&quot;,
  &quot;ancestry&quot;: null,
  &quot;parent_id&quot;: null,
  &quot;parent_name&quot;: null,
  &quot;id&quot;: 447626473,
  &quot;name&quot;: &quot;XOJvGidQ3V&quot;,
  &quot;title&quot;: &quot;XOJvGidQ3V&quot;,
  &quot;users&quot;: [],
  &quot;smart_proxies&quot;: [],
  &quot;subnets&quot;: [],
  &quot;compute_resources&quot;: [],
  &quot;media&quot;: [],
  &quot;config_templates&quot;: [],
  &quot;ptables&quot;: [],
  &quot;provisioning_templates&quot;: [],
  &quot;domains&quot;: [],
  &quot;realms&quot;: [],
  &quot;environments&quot;: [],
  &quot;hostgroups&quot;: [],
  &quot;organizations&quot;: [],
  &quot;hosts_count&quot;: 0,
  &quot;parameters&quot;: []
}</pre>

  <h3>Parâmentros</h3>
  <table class='table'>
    <thead>
      <tr>
        <th>Nome parâmetro</th>
        <th>Descrição</th>
      </tr>
    </thead>
    <tbody>
        <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current location context for the request</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current organization context for the request</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>location </strong><br>
      <small>
        requerido
        
      </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>location[name] </strong><br>
      <small>
        opcional
        
      </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>location[description] </strong><br>
      <small>
        opcional
        , nulo permitido
      </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>location[user_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs dos Usuários</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>location[smart_proxy_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do proxy inteligente</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>location[compute_resource_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do recurso de computação</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>location[medium_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de mídia</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>location[config_template_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de modelo de provisionamento</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>location[ptable_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do modelo de partição</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>location[provisioning_template_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de modelo de provisionamento</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>location[domain_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Domínio</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>location[realm_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Realm</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>location[hostgroup_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs do grupo de host</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>location[environment_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>IDs de Ambiente</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>location[subnet_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Ids de Subrede</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>location[parent_id] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>ID Pai</p>

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

    </td>

  </tr>

  
  <tr style='background-color:rgb(250,250,250);'>
    <td>
      <strong>location[ignore_types] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Lista de tipos de recurso que serão associados automaticamente</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>location[organization_ids] </strong><br>
      <small>
        opcional
        , nulo permitido
      </small>
    </td>
    <td>
      
<p>Associated organization IDs</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(255,255,255);'>
    <td>
      <strong>id </strong><br>
      <small>
        requerido
        
      </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/locations/destroy.pt_BR.html'> >>> </a>
    </div>
    <div>
        <h2>
          <a href='#description-destroy'
           class='accordion-toggle'
           data-toggle='collapse'
           data-parent='#accordion'>
            DELETE /api/locations/:id
          </a>
          <br>
          <small>Delete a location</small>
        </h2>
    </div>


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



  <h3>Exemplos</h3>
    <pre class="prettyprint">DELETE /api/locations/447626472-loc304
{
  &quot;location&quot;: {}
}
404
{
  &quot;error&quot;: {
    &quot;message&quot;: &quot;Resource location not found by id &#39;447626472-loc304&#39;&quot;
  }
}</pre>

  <h3>Parâmentros</h3>
  <table class='table'>
    <thead>
      <tr>
        <th>Nome parâmetro</th>
        <th>Descrição</th>
      </tr>
    </thead>
    <tbody>
        <tr style='background-color:rgb(255,255,255);'>
    <td>
      <strong>location_id </strong><br>
      <small>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current location context for the request</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>
        opcional
        
      </small>
    </td>
    <td>
      
<p>Set the current organization context for the request</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>
        requerido
        
      </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>
