forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
119 lines
8.6 KiB
HTML
119 lines
8.6 KiB
HTML
<a name="deh_02_0025"></a><a name="deh_02_0025"></a>
|
|
|
|
<h1 class="topictitle1">Querying Available DeH Types</h1>
|
|
<div id="body1512563929534"><div class="section" id="deh_02_0025__section36279478"><h4 class="sectiontitle">Function</h4><p id="deh_02_0025__p17161430">This API is used to query available DeH types in an AZ.</p>
|
|
</div>
|
|
<div class="section" id="deh_02_0025__section58079852"><h4 class="sectiontitle">URI</h4><p id="deh_02_0025__p13131183413214">Get /v1.0/{project_id}/availability-zone/{availability_zone}/dedicated-host-types</p>
|
|
<p id="deh_02_0025__p19290124818215"><a href="#deh_02_0025__table572214121015">Table 1</a> describes the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="deh_02_0025__table572214121015"></a><a name="table572214121015"></a><table cellpadding="4" cellspacing="0" summary="" id="deh_02_0025__table572214121015" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters description</caption><thead align="left"><tr id="deh_02_0025__row572516410109"><th align="left" class="cellrowborder" valign="top" width="21.23787621237876%" id="mcps1.3.2.4.2.5.1.1"><p id="deh_02_0025__p107252049107"><strong id="deh_02_0025__b334893110258">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.44765523447655%" id="mcps1.3.2.4.2.5.1.2"><p id="deh_02_0025__p726975522919"><strong id="deh_02_0025__b13444183213253">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.48755124487551%" id="mcps1.3.2.4.2.5.1.3"><p id="deh_02_0025__p072564201017"><strong id="deh_02_0025__b041613338256">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.826917308269174%" id="mcps1.3.2.4.2.5.1.4"><p id="deh_02_0025__p47253421017"><strong id="deh_02_0025__b1030643472510">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="deh_02_0025__row107256481017"><td class="cellrowborder" valign="top" width="21.23787621237876%" headers="mcps1.3.2.4.2.5.1.1 "><p id="deh_02_0025__p1872514451016">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.44765523447655%" headers="mcps1.3.2.4.2.5.1.2 "><p id="deh_02_0025__p12269175511291">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.48755124487551%" headers="mcps1.3.2.4.2.5.1.3 "><p id="deh_02_0025__p147251646108">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.826917308269174%" headers="mcps1.3.2.4.2.5.1.4 "><p id="deh_02_0025__p6725747104">Specifies the project ID.</p>
|
|
<p id="deh_02_0025__p7376194915119">For details about how to obtain the project ID, see <a href="https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328009.html" target="_blank" rel="noopener noreferrer">Obtaining Required Information</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="deh_02_0025__row184436404555"><td class="cellrowborder" valign="top" width="21.23787621237876%" headers="mcps1.3.2.4.2.5.1.1 "><p id="deh_02_0025__p164455404556">availability_zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.44765523447655%" headers="mcps1.3.2.4.2.5.1.2 "><p id="deh_02_0025__p29241051175512">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.48755124487551%" headers="mcps1.3.2.4.2.5.1.3 "><p id="deh_02_0025__p1592535185519">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.826917308269174%" headers="mcps1.3.2.4.2.5.1.4 "><p id="deh_02_0025__p1544524011550">Specifies the AZ.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="deh_02_0025__section61627937"><h4 class="sectiontitle">Request</h4><p id="deh_02_0025__p39731334185718">None</p>
|
|
</div>
|
|
<div class="section" id="deh_02_0025__section17780525"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="deh_02_0025__table89989015379" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="deh_02_0025__row999810011375"><th align="left" class="cellrowborder" valign="top" width="22.37%" id="mcps1.3.4.2.2.5.1.1"><p id="deh_02_0025__p2978145183720"><strong id="deh_02_0025__b192781257112517">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.42%" id="mcps1.3.4.2.2.5.1.2"><p id="deh_02_0025__p89785517377"><strong id="deh_02_0025__b11294585258">In</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.79%" id="mcps1.3.4.2.2.5.1.3"><p id="deh_02_0025__p69781257377"><strong id="deh_02_0025__b9511259152518">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="41.42%" id="mcps1.3.4.2.2.5.1.4"><p id="deh_02_0025__p189781453371"><strong id="deh_02_0025__b6818959172518">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="deh_02_0025__row999920203719"><td class="cellrowborder" valign="top" width="22.37%" headers="mcps1.3.4.2.2.5.1.1 "><p id="deh_02_0025__p1697814543710">dedicated_host_types</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.42%" headers="mcps1.3.4.2.2.5.1.2 "><p id="deh_02_0025__p49781454374">body</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.79%" headers="mcps1.3.4.2.2.5.1.3 "><p id="deh_02_0025__p14978956371">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="41.42%" headers="mcps1.3.4.2.2.5.1.4 "><p id="deh_02_0025__p109781451370">Specifies the available DeH types. For details, see <a href="#deh_02_0025__table1790111341615">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="deh_02_0025__table1790111341615"></a><a name="table1790111341615"></a><table cellpadding="4" cellspacing="0" summary="" id="deh_02_0025__table1790111341615" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="deh_02_0025__b15561248153711">dedicated_host_types</strong> field description</caption><thead align="left"><tr id="deh_02_0025__row139026348620"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.1"><p id="deh_02_0025__p169029348616"><strong id="deh_02_0025__b18066924612352">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.2"><p id="deh_02_0025__p1673105114616"><strong id="deh_02_0025__b14695155063710">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.2.4.1.3"><p id="deh_02_0025__p1673113511267"><strong id="deh_02_0025__b237855323720">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="deh_02_0025__row149021134666"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="deh_02_0025__p1585610435617">host_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="deh_02_0025__p483315587618">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="deh_02_0025__p128331586612">Specifies the DeH type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="deh_02_0025__row556613381617"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.1 "><p id="deh_02_0025__p1985613431367">host_type_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.2 "><p id="deh_02_0025__p1083311581962">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.2.4.1.3 "><p id="deh_02_0025__p283317581567">Specifies the name of the DeH type.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="deh_02_0025__section1768432015261"><h4 class="sectiontitle">Example Request</h4><p id="deh_02_0025__p829271181312">Query the DeH types available in <strong id="deh_02_0025__b149021650182516">az1</strong>.</p>
|
|
<pre class="screen" id="deh_02_0025__screen1436873374712">GET https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/availability-zone/az1/dedicated-host-types</pre>
|
|
</div>
|
|
<div class="section" id="deh_02_0025__section156132912611"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="deh_02_0025__screen13957451061">{
|
|
"dedicated_host_types": [
|
|
{
|
|
"host_type": "c4",
|
|
"host_type_name": "dedicated_general_purpose"
|
|
},
|
|
{
|
|
"host_type": "m4",
|
|
"host_type_name": "memory_optimized"
|
|
}
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="deh_02_0025__section9992350"><h4 class="sectiontitle">Status Code</h4><p id="deh_02_0025__p5641212">See <a href="deh_02_0016.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="deh_02_0017.html">API</a></div>
|
|
</div>
|
|
</div>
|
|
|