forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
144 lines
12 KiB
HTML
144 lines
12 KiB
HTML
<a name="en-us_topic_0032347783"></a><a name="en-us_topic_0032347783"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining All DB Instance Specifications</h1>
|
|
<div id="body32913796"><div class="section" id="en-us_topic_0032347783__section25483595"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0032347783__p48771786">This API is used to obtain all instance specifications of a specified database version ID in a specified region.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0032347783__section28025763"><h4 class="sectiontitle">URI</h4><ul id="en-us_topic_0032347783__ul58200593"><li id="en-us_topic_0032347783__li54043292">URI format<p id="en-us_topic_0032347783__p16627584"><a name="en-us_topic_0032347783__li54043292"></a><a name="li54043292"></a>PATH: /rds/v1/{project_id}/flavors</p>
|
|
<p id="en-us_topic_0032347783__p3898332815457">Method: GET</p>
|
|
</li><li id="en-us_topic_0032347783__li15430535">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0032347783__table4657088" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0032347783__row60083059"><th align="left" class="cellrowborder" valign="top" width="21.67%" id="mcps1.3.2.2.2.1.2.4.1.1"><p id="en-us_topic_0032347783__p34889605"><strong id="en-us_topic_0032347783__b842352706102328_1">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.51%" id="mcps1.3.2.2.2.1.2.4.1.2"><p id="en-us_topic_0032347783__p7485743"><strong id="en-us_topic_0032347783__b842352706102346_1">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.82%" id="mcps1.3.2.2.2.1.2.4.1.3"><p id="en-us_topic_0032347783__p2365466"><strong id="en-us_topic_0032347783__b842352706163417_1">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0032347783__row57385070"><td class="cellrowborder" valign="top" width="21.67%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="en-us_topic_0032347783__p17679057">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.51%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="en-us_topic_0032347783__p22717550">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.82%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="en-us_topic_0032347783__p11677197163722">Specifies the project ID of a tenant in a region.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0032347783__section50905282"><h4 class="sectiontitle">Request</h4><ul id="en-us_topic_0032347783__ul60281275161848"><li id="en-us_topic_0032347783__li5660565161848">Parameter description
|
|
<div class="tablenoborder"><a name="en-us_topic_0032347783__table50945089161848"></a><a name="table50945089161848"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0032347783__table50945089161848" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0032347783__row57468408161848"><th align="left" class="cellrowborder" valign="top" width="21.87%" id="mcps1.3.3.2.1.1.2.4.1.1"><p id="en-us_topic_0032347783__p24429446161848"><strong id="en-us_topic_0032347783__b842352706102328_3">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.500000000000004%" id="mcps1.3.3.2.1.1.2.4.1.2"><p id="en-us_topic_0032347783__p32628076161848"><strong id="en-us_topic_0032347783__b842352706102346_5">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.629999999999995%" id="mcps1.3.3.2.1.1.2.4.1.3"><p id="en-us_topic_0032347783__p25628499161848"><strong id="en-us_topic_0032347783__b842352706163417_5">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0032347783__row62642530161848"><td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.3.2.1.1.2.4.1.1 "><p id="en-us_topic_0032347783__p40880194161848">dbId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.500000000000004%" headers="mcps1.3.3.2.1.1.2.4.1.2 "><p id="en-us_topic_0032347783__p22961435161848">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.629999999999995%" headers="mcps1.3.3.2.1.1.2.4.1.3 "><p id="en-us_topic_0032347783__p47936916161848">Specifies the database version ID (<strong id="en-us_topic_0032347783__b842352706195346">dataStores.id</strong> in the response message in <a href="en-us_topic_0032347782.html">Database Version Queries</a>).</p>
|
|
<p id="en-us_topic_0032347783__p57684949161848">Valid value: The value cannot be empty. The string length and whether the string complying with UUID regular expression rules are verified.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0032347783__row49402496161848"><td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.3.2.1.1.2.4.1.1 "><p id="en-us_topic_0032347783__p42179265161848">region</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.500000000000004%" headers="mcps1.3.3.2.1.1.2.4.1.2 "><p id="en-us_topic_0032347783__p61077343161848">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.629999999999995%" headers="mcps1.3.3.2.1.1.2.4.1.3 "><p id="en-us_topic_0032347783__p48317761161848">Specifies the region where the DB instance is deployed.</p>
|
|
<p id="en-us_topic_0032347783__p1715661014187">Valid value:</p>
|
|
<p id="en-us_topic_0032347783__p3825082612023">The value cannot be empty. For details about how to obtain this parameter value, see <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="en-us_topic_0032347783__li8041730113646">Request example<pre class="codeblock" id="en-us_topic_0032347783__codeblock3708258894255">/rds/v1/375d8d8fad1f43039e23d3b6c0f60a19/flavors?dbId=e8a8b8cc-63f8-4fb5-8d4a-24c502317a6&region=eu-de</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0032347783__section55494360"><h4 class="sectiontitle">Normal Response</h4><ul id="en-us_topic_0032347783__ul43449544"><li id="en-us_topic_0032347783__li55501577">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0032347783__table29752153" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0032347783__row62070345"><th align="left" class="cellrowborder" valign="top" width="21.11%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="en-us_topic_0032347783__p61642077"><strong id="en-us_topic_0032347783__b842352706102328_5">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.71%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="en-us_topic_0032347783__p26952341"><strong id="en-us_topic_0032347783__b842352706164541_1">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.18%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="en-us_topic_0032347783__p35656026"><strong id="en-us_topic_0032347783__b842352706163417_7">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0032347783__row2456979"><td class="cellrowborder" valign="top" width="21.11%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="en-us_topic_0032347783__p64797609">flavors</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="en-us_topic_0032347783__p14114947">List data structure. For details, see <a href="#en-us_topic_0032347783__table34207804">Table 4</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.18%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="en-us_topic_0032347783__p22140377">Indicates the DB instance specifications information list.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="en-us_topic_0032347783__table34207804"></a><a name="table34207804"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0032347783__table34207804" frame="border" border="1" rules="all"><caption><b>Table 4 </b>flavors field data structure description</caption><thead align="left"><tr id="en-us_topic_0032347783__row41360766"><th align="left" class="cellrowborder" valign="top" width="21.87%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="en-us_topic_0032347783__p61887768"><strong id="en-us_topic_0032347783__b842352706102328_7">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.52%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="en-us_topic_0032347783__p46853302"><strong id="en-us_topic_0032347783__b842352706164541_3">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.61%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="en-us_topic_0032347783__p37021121"><strong id="en-us_topic_0032347783__b842352706163417_9">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0032347783__row45920800"><td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0032347783__p28597308">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.52%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0032347783__p34680572">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.61%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0032347783__p57662920">Indicates the specification ID. Its value is unique.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0032347783__row49204239"><td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0032347783__p26120409">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.52%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0032347783__p35378404">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.61%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0032347783__p47078488">Indicates the specification item name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0032347783__row21053208"><td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0032347783__p27588283">ram</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.52%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0032347783__p20058459">Int</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.61%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0032347783__p14122463">Indicates the memory size in megabytes (MB).</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0032347783__row5478338319340"><td class="cellrowborder" valign="top" width="21.87%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0032347783__p32176836193428">specCode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.52%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0032347783__p731283419340">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.61%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0032347783__p12328599195618">Indicates the resource specification code.</p>
|
|
<p id="en-us_topic_0032347783__p39382216112854">Use <strong id="en-us_topic_0032347783__b842352706171033">rds.mysql.n1.xlarge</strong> as an example.</p>
|
|
<p id="en-us_topic_0032347783__p43848530195618"><strong id="en-us_topic_0032347783__b842352706163930">rds</strong> indicates RDS, <strong id="en-us_topic_0032347783__b842352706163952">mysql</strong> indicates the DB engine, and <strong id="en-us_topic_0032347783__b84235270616408">n1.xlarge</strong> indicates the performance specification (large-memory). </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0032347783__ul3068848"><li id="en-us_topic_0032347783__li27619632">Response example<pre class="codeblock" id="en-us_topic_0032347783__codeblock1595400517759">{
|
|
"flavors": [
|
|
{
|
|
"id": "bf07a6d4-844a-4023-a776-fc5c5fb71fb4",
|
|
"name": "OTC_MYHP_LARGE",
|
|
"ram": 4096,
|
|
"specCode": "rds.mysql.n1.large"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0032347783__section29687198"><h4 class="sectiontitle">Abnormal Response</h4><p id="en-us_topic_0032347783__p1193073">For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_06_0016.html">DB Instance Management</a></div>
|
|
</div>
|
|
</div>
|
|
|