forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
155 lines
14 KiB
HTML
155 lines
14 KiB
HTML
<a name="rds_17_0001"></a><a name="rds_17_0001"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining the Number of Instances After Diagnosis</h1>
|
|
<div id="body0000002409878041"><div class="section" id="rds_17_0001__en-us_topic_0000001745831081_section61759636"><h4 class="sectiontitle">Function</h4><p id="rds_17_0001__p33831530">This API is used to obtain the number of instances after diagnosis.</p>
|
|
<ul id="rds_17_0001__ul10163594121"><li id="rds_17_0001__en-us_topic_0240111818_li836513175363">Before calling an API, you need to understand the API in <a href="rds_03_0001.html">Authentication</a>.</li><li id="rds_17_0001__en-us_topic_0240111818_li1991981933613">Before calling this API, obtain the required <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_17_0001__en-us_topic_0000001745831081_section18965813"><h4 class="sectiontitle">URI</h4><ul id="rds_17_0001__en-us_topic_0000001745831081_ul13194498"><li id="rds_17_0001__en-us_topic_0000001745831081_li41603465301">URI format<p id="rds_17_0001__en-us_topic_0000001745831081_p11160246123012"><a name="rds_17_0001__en-us_topic_0000001745831081_li41603465301"></a><a name="en-us_topic_0000001745831081_li41603465301"></a>GET https://{<em id="rds_17_0001__en-us_topic_0000001745831081_i1288545311165">endpoint</em>}/v3/{project_id}/instances/diagnosis</p>
|
|
</li></ul>
|
|
<ul id="rds_17_0001__en-us_topic_0000001745831081_ul55999443"><li id="rds_17_0001__en-us_topic_0000001745831081_li21405046">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_17_0001__en-us_topic_0000001745831081_table58427690" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_17_0001__en-us_topic_0000001745831081_row1482002"><th align="left" class="cellrowborder" valign="top" width="21.3%" id="mcps1.3.2.3.1.1.2.4.1.1"><p id="rds_17_0001__en-us_topic_0000001745831081_p52933326"><strong id="rds_17_0001__b113811911191810">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.899999999999999%" id="mcps1.3.2.3.1.1.2.4.1.2"><p id="rds_17_0001__en-us_topic_0000001745831081_p59740974"><strong id="rds_17_0001__b1839916121188">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.800000000000004%" id="mcps1.3.2.3.1.1.2.4.1.3"><p id="rds_17_0001__en-us_topic_0000001745831081_p7180698"><strong id="rds_17_0001__b1115714132181">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_17_0001__en-us_topic_0000001745831081_row44765691"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.2.3.1.1.2.4.1.1 "><p id="rds_17_0001__en-us_topic_0000001745831081_p2142393">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.2.3.1.1.2.4.1.2 "><p id="rds_17_0001__en-us_topic_0000001745831081_p39316155">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.2.3.1.1.2.4.1.3 "><p id="rds_17_0001__p30492010">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_17_0001__p7139608914">For details about how to obtain the project ID, see <a href="rds_03_0002.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_17_0001__en-us_topic_0000001745831081_table10505152913256" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="rds_17_0001__en-us_topic_0000001745831081_row13549129152512"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.1.2.2.5.1.1"><p id="rds_17_0001__en-us_topic_0000001745831081_p13549172916259"><strong id="rds_17_0001__b1139912194401">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.1.2.2.5.1.2"><p id="rds_17_0001__en-us_topic_0000001745831081_p14549182913258"><strong id="rds_17_0001__b2015248549">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.1.2.2.5.1.3"><p id="rds_17_0001__en-us_topic_0000001745831081_p9549182942510"><strong id="rds_17_0001__b164351427191812">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.1.2.2.5.1.4"><p id="rds_17_0001__en-us_topic_0000001745831081_p195492292258"><strong id="rds_17_0001__b204863207401">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_17_0001__en-us_topic_0000001745831081_row9549529142513"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.1.2.2.5.1.1 "><p id="rds_17_0001__en-us_topic_0000001745831081_p18549829192515">engine</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.1.2.2.5.1.2 "><p id="rds_17_0001__en-us_topic_0000001745831081_p75491229152515">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.1.2.2.5.1.3 "><p id="rds_17_0001__en-us_topic_0000001745831081_p554932912516">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.1.2.2.5.1.4 "><p id="rds_17_0001__en-us_topic_0000001745831081_p145491129202516">Engine type.</p>
|
|
<p id="rds_17_0001__en-us_topic_0000001745831081_p1654962912255">Enumerated values:</p>
|
|
<ul id="rds_17_0001__en-us_topic_0000001745831081_ul185491929182510"><li id="rds_17_0001__en-us_topic_0000001745831081_li19549132919250">mysql</li><li id="rds_17_0001__en-us_topic_0000001745831081_li135501829112510">postgresql</li><li id="rds_17_0001__en-us_topic_0000001745831081_li105501229122511">sqlserver</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_17_0001__en-us_topic_0000001745831081_section36474591"><h4 class="sectiontitle">Request</h4><ul id="rds_17_0001__en-us_topic_0000001745831081_ul1183180183717"><li id="rds_17_0001__en-us_topic_0000001745831081_li1283110163719">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_17_0001__table12536623333" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="rds_17_0001__row153612211337"><th align="left" class="cellrowborder" valign="top" width="19.7%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="rds_17_0001__p95111733143318">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.780000000000001%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="rds_17_0001__p13511123373311">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.959999999999999%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="rds_17_0001__p125111433133312">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.559999999999995%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="rds_17_0001__p551110331335">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_17_0001__row05378213331"><td class="cellrowborder" valign="top" width="19.7%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="rds_17_0001__p1163015550331">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.780000000000001%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="rds_17_0001__p1963035563316">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.959999999999999%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="rds_17_0001__p1630105520331">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.559999999999995%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="rds_17_0001__p1086851153317">Specifies the user token.</p>
|
|
<p id="rds_17_0001__p1057635831">The user token is a response to the API used to <a href="https://docs.otc.t-systems.com/en-us/api/iam/en-us_topic_0057845583.html" target="_blank" rel="noopener noreferrer">obtain a user token</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="rds_17_0001__en-us_topic_0000001745831081_li4411135064210">URI example<p id="rds_17_0001__en-us_topic_0000001745831081_p1454414211213"><a name="rds_17_0001__en-us_topic_0000001745831081_li4411135064210"></a><a name="en-us_topic_0000001745831081_li4411135064210"></a>GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/diagnosis?engine=sqlserver</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_17_0001__en-us_topic_0000001745831081_section59835867"><h4 class="sectiontitle">Response</h4><ul id="rds_17_0001__en-us_topic_0000001745831081_ul66273227"><li id="rds_17_0001__en-us_topic_0000001745831081_li59588135">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_17_0001__en-us_topic_0000001745831081_table66531170" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameter description</caption><thead align="left"><tr id="rds_17_0001__en-us_topic_0000001745831081_row12984378"><th align="left" class="cellrowborder" valign="top" width="19.220000000000002%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="rds_17_0001__en-us_topic_0000001745831081_p45101667"><strong id="rds_17_0001__b253588611">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.01%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="rds_17_0001__en-us_topic_0000001745831081_p29356372">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="67.77%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="rds_17_0001__en-us_topic_0000001745831081_p29055926"><strong id="rds_17_0001__b1292906612">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_17_0001__en-us_topic_0000001745831081_row1562610185558"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="rds_17_0001__en-us_topic_0000001745831081_p17912102115263">diagnosis</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.01%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="rds_17_0001__en-us_topic_0000001745831081_p28299952183823">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.77%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="rds_17_0001__en-us_topic_0000001745831081_p144381223194814">Diagnosis details.</p>
|
|
<p id="rds_17_0001__en-us_topic_0000001745831081_p60622679185558">For details, see <a href="#rds_17_0001__en-us_topic_0000001745831081_table1950773843311">Table 5</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_17_0001__en-us_topic_0000001745831081_table1950773843311"></a><a name="en-us_topic_0000001745831081_table1950773843311"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_17_0001__en-us_topic_0000001745831081_table1950773843311" frame="border" border="1" rules="all"><caption><b>Table 5 </b>diagnosis field data structure description</caption><thead align="left"><tr id="rds_17_0001__en-us_topic_0000001745831081_row1950719385338"><th align="left" class="cellrowborder" valign="top" width="19.220000000000002%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="rds_17_0001__en-us_topic_0000001745831081_p165072385333"><strong id="rds_17_0001__b1829758538">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.04%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="rds_17_0001__en-us_topic_0000001745831081_p175081838173315">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="67.74%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="rds_17_0001__en-us_topic_0000001745831081_p1250813820337"><strong id="rds_17_0001__b815468152">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_17_0001__en-us_topic_0000001745831081_row20508638193311"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="rds_17_0001__en-us_topic_0000001745831081_p27511643192610">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="rds_17_0001__en-us_topic_0000001745831081_p13751124317264">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="rds_17_0001__en-us_topic_0000001745831081_p157511543162620">Diagnosis item.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_17_0001__en-us_topic_0000001745831081_row1750883815335"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="rds_17_0001__en-us_topic_0000001745831081_p97511043162610">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="rds_17_0001__en-us_topic_0000001745831081_p137511843162618">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="rds_17_0001__en-us_topic_0000001745831081_p47517431262">Number of instances.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_17_0001__en-us_topic_0000001745831081_ul26818564"><li id="rds_17_0001__en-us_topic_0000001745831081_li40040492">Example normal response<pre class="screen" id="rds_17_0001__screen18899135813313">{
|
|
"diagnosis" : [ {
|
|
"name" : "high_pressure",
|
|
"count" : 1
|
|
}, {
|
|
"name" : "lock_wait",
|
|
"count" : 2
|
|
} ]
|
|
}</pre>
|
|
</li><li id="rds_17_0001__en-us_topic_0000001745831081_li15461118163817">Abnormal response<p id="rds_17_0001__p46896054"><a name="rds_17_0001__en-us_topic_0000001745831081_li15461118163817"></a><a name="en-us_topic_0000001745831081_li15461118163817"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_17_0001__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_17_0001__en-us_topic_0032347778_ul7858132212142"><li id="rds_17_0001__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_17_0001__en-us_topic_0032347778_p1040982941020"><a name="rds_17_0001__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_17_0001__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_17_0001__en-us_topic_0032347778_p0723374409"><a name="rds_17_0001__en-us_topic_0032347778_li11583183218149"></a><a name="en-us_topic_0032347778_li11583183218149"></a>For details, see <a href="en-us_topic_0032488240.html">Status Codes</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_17_0001__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_17_0001__en-us_topic_0032347778_p19357163913406">For details, see <a href="en-us_topic_0032488241.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_17_0000.html">Instance Diagnosis</a></div>
|
|
</div>
|
|
</div>
|
|
|