doc-exports/docs/rds/api-ref/en-us_topic_0056890255.html
Wang , Deng Ke 5208dcae7b RDS API 20221104 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-10 09:55:48 +00:00

173 lines
12 KiB
HTML

<a name="en-us_topic_0056890255"></a><a name="en-us_topic_0056890255"></a>
<h1 class="topictitle1">Obtaining All DB Instance Specifications</h1>
<div id="body1492603082526"><div class="section" id="en-us_topic_0056890255__section6335675610813"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0056890255__p3162361210813">This API is used to obtain all DB instance specifications.</p>
</div>
<div class="section" id="en-us_topic_0056890255__section1617705710813"><h4 class="sectiontitle">URI</h4><ul id="en-us_topic_0056890255__ul3527327510813"><li id="en-us_topic_0056890255__li4902402610813">URI format<p id="en-us_topic_0056890255__p3856305410813"><a name="en-us_topic_0056890255__li4902402610813"></a><a name="li4902402610813"></a>PATH: /v1.0/{project_id}/flavors</p>
<p id="en-us_topic_0056890255__p1152316810813">Method: GET</p>
</li><li id="en-us_topic_0056890255__li3659964910813">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0056890255__table6096138610813" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0056890255__row1654305710813"><th align="left" class="cellrowborder" valign="top" width="21.240000000000002%" id="mcps1.3.2.2.2.1.2.4.1.1"><p id="en-us_topic_0056890255__p6491926310813"><strong id="en-us_topic_0056890255__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="28.96%" id="mcps1.3.2.2.2.1.2.4.1.2"><p id="en-us_topic_0056890255__p2396892510813"><strong id="en-us_topic_0056890255__b842352706102346">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.8%" id="mcps1.3.2.2.2.1.2.4.1.3"><p id="en-us_topic_0056890255__p6243473910813"><strong id="en-us_topic_0056890255__b842352706163417">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0056890255__row2404909810813"><td class="cellrowborder" valign="top" width="21.240000000000002%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="en-us_topic_0056890255__p181991310813">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="28.96%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="en-us_topic_0056890255__p1319528910813">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="49.8%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="en-us_topic_0056890255__p6218550610813">Specifies the project ID of a tenant in a region.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="en-us_topic_0056890255__ul386119510813"><li id="en-us_topic_0056890255__li273646671817">Restrictions<p id="en-us_topic_0056890255__p57152011145532"><a name="en-us_topic_0056890255__li273646671817"></a><a name="li273646671817"></a>Currently, only the DB engines MySQL and PostgreSQL are supported by the API.</p>
</li></ul>
</div>
<div class="section" id="en-us_topic_0056890255__section43437110813"><h4 class="sectiontitle">Request</h4><p id="en-us_topic_0056890255__p3518407010813">None</p>
</div>
<div class="section" id="en-us_topic_0056890255__section4822117510813"><h4 class="sectiontitle">Normal Response</h4><ul id="en-us_topic_0056890255__ul1360108510813"><li id="en-us_topic_0056890255__li5530090910813">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0056890255__table2794613710813" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0056890255__row1824035410813"><th align="left" class="cellrowborder" valign="top" width="21.07210721072107%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="en-us_topic_0056890255__p107367210813"><strong id="en-us_topic_0056890255__b645303894">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="29.05290529052905%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="en-us_topic_0056890255__p1985860710813"><strong id="en-us_topic_0056890255__b842352706164541">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.874987498749874%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="en-us_topic_0056890255__p6504332610813"><strong id="en-us_topic_0056890255__b820055573">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0056890255__row3401807810813"><td class="cellrowborder" valign="top" width="21.07210721072107%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="en-us_topic_0056890255__p400095110813">flavors</p>
</td>
<td class="cellrowborder" valign="top" width="29.05290529052905%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="en-us_topic_0056890255__p5564158410813">List data structure. For details, see <a href="#en-us_topic_0056890255__table5932144310813">Table 3</a>.</p>
</td>
<td class="cellrowborder" valign="top" width="49.874987498749874%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="en-us_topic_0056890255__p2896089210813">Indicates the specification information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="en-us_topic_0056890255__table5932144310813"></a><a name="table5932144310813"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0056890255__table5932144310813" frame="border" border="1" rules="all"><caption><b>Table 3 </b>flavors field data structure description</caption><thead align="left"><tr id="en-us_topic_0056890255__row3847854010813"><th align="left" class="cellrowborder" valign="top" width="21.07%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="en-us_topic_0056890255__p2975403110813"><strong id="en-us_topic_0056890255__b615228827">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="29.299999999999997%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="en-us_topic_0056890255__p6126631910813"><strong id="en-us_topic_0056890255__b1390943255">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.63%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="en-us_topic_0056890255__p6362478710813"><strong id="en-us_topic_0056890255__b1389121196">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0056890255__row198232910813"><td class="cellrowborder" valign="top" width="21.07%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0056890255__p2635094510813">ram</p>
</td>
<td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0056890255__p5405177710813">Int</p>
</td>
<td class="cellrowborder" valign="top" width="49.63%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0056890255__p1611782610813">Indicates the memory specifications in megabytes (MB).</p>
</td>
</tr>
<tr id="en-us_topic_0056890255__row1084271010813"><td class="cellrowborder" valign="top" width="21.07%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0056890255__p584433110813">id</p>
</td>
<td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0056890255__p362878810813">Int</p>
</td>
<td class="cellrowborder" valign="top" width="49.63%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0056890255__p2549641010813">Indicates the specification ID (Int type). Its default value is <strong id="en-us_topic_0056890255__b842352706114710">1</strong> because RDS uses UUID to store the specification ID and cannot convert it to the Int type.</p>
</td>
</tr>
<tr id="en-us_topic_0056890255__row2814109910813"><td class="cellrowborder" valign="top" width="21.07%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0056890255__p6483651810813">links</p>
</td>
<td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0056890255__p1726661010813">List data structure. For details, see <a href="#en-us_topic_0056890255__table2591008910813">Table 4</a>.</p>
</td>
<td class="cellrowborder" valign="top" width="49.63%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0056890255__p5641816610813">Indicates the link address.</p>
</td>
</tr>
<tr id="en-us_topic_0056890255__row646876310813"><td class="cellrowborder" valign="top" width="21.07%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0056890255__p5420781710813">name</p>
</td>
<td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0056890255__p2875703110813">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.63%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0056890255__p4761814110813">Indicates the specification item name.</p>
</td>
</tr>
<tr id="en-us_topic_0056890255__row54300797114538"><td class="cellrowborder" valign="top" width="21.07%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="en-us_topic_0056890255__p21700115114541">str_id</p>
</td>
<td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="en-us_topic_0056890255__p12878889114541">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.63%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="en-us_topic_0056890255__p36557059114541">Indicates the specification ID (String type).</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="en-us_topic_0056890255__table2591008910813"></a><a name="table2591008910813"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0056890255__table2591008910813" frame="border" border="1" rules="all"><caption><b>Table 4 </b>links field data structure description</caption><thead align="left"><tr id="en-us_topic_0056890255__row3370068410813"><th align="left" class="cellrowborder" valign="top" width="20.47%" id="mcps1.3.4.2.1.3.2.4.1.1"><p id="en-us_topic_0056890255__p4540085310813"><strong id="en-us_topic_0056890255__b9314487">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="29.709999999999997%" id="mcps1.3.4.2.1.3.2.4.1.2"><p id="en-us_topic_0056890255__p5359043810813"><strong id="en-us_topic_0056890255__b98040100">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.82%" id="mcps1.3.4.2.1.3.2.4.1.3"><p id="en-us_topic_0056890255__p4585821610813"><strong id="en-us_topic_0056890255__b37245340">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0056890255__row10564639114448"><td class="cellrowborder" valign="top" width="20.47%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="en-us_topic_0056890255__p64824342114457">rel</p>
</td>
<td class="cellrowborder" valign="top" width="29.709999999999997%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="en-us_topic_0056890255__p16280358114457">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.82%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="en-us_topic_0056890255__p43640602114457">Indicates the link property.</p>
</td>
</tr>
<tr id="en-us_topic_0056890255__row2352800210813"><td class="cellrowborder" valign="top" width="20.47%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="en-us_topic_0056890255__p2672002910813">href</p>
</td>
<td class="cellrowborder" valign="top" width="29.709999999999997%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="en-us_topic_0056890255__p1683875310813">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.82%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="en-us_topic_0056890255__p2176171610813">Indicates the API link. Its value is <strong id="en-us_topic_0056890255__b842352706182645">""</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="en-us_topic_0056890255__ul5440501410813"><li id="en-us_topic_0056890255__li1988307910813">Response example<pre class="codeblock" id="en-us_topic_0056890255__codeblock10744817223051">{
"flavors": [
{
"ram": 2048,
"id": 1,
"links": [
{
"rel": "self",
"href": ""
},
{
"rel": "bookmark",
"href": ""
}
],
"name": "rds.pg.c2.medium",
"str_id": "9ff2a3a5-c859-bbc0-67f7-86ce59432b1d"
},
{
"ram": 4096,
"id": 1,
"links": [
{
"rel": "self",
"href": ""
},
{
"rel": "bookmark",
"href": ""
}
],
"name": "rds.pg.c2.large",
"str_id": "b77b5b7e-f572-dfd9-57af-910547fe0883"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="en-us_topic_0056890255__section639248310813"><h4 class="sectiontitle">Abnormal Response</h4><p id="en-us_topic_0056890255__p4802911010813">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_0021.html">DB Instance Management</a></div>
</div>
</div>