forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
246 lines
18 KiB
HTML
246 lines
18 KiB
HTML
<a name="dli_02_0336"></a><a name="dli_02_0336"></a>
|
|
|
|
<h1 class="topictitle1">Viewing Scaling History of an Elastic Resource Pool</h1>
|
|
<div id="body0000001372224721"><div class="section" id="dli_02_0336__section517762110225"><h4 class="sectiontitle">Function</h4><p id="dli_02_0336__p1543213212225">This API is used to view scaling history of an elastic resource pool.</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section19180621182218"><h4 class="sectiontitle">URI</h4><p id="dli_02_0336__p243272122218">GET /v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/scale-records</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0336__table018232118224" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0336__row84333213223"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="dli_02_0336__p2433192119223">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="dli_02_0336__p15433821162211">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="dli_02_0336__p1043372102218">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="dli_02_0336__p16433132117222">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0336__row3433321152214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="dli_02_0336__p7433192142210">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="dli_02_0336__p12433821162219">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="dli_02_0336__p104331021112214">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="dli_02_0336__p17433182162218">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row543392192214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="dli_02_0336__p2433122192219">elastic_resource_pool_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="dli_02_0336__p1043316213227">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="dli_02_0336__p12433122111224">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="dli_02_0336__p1643316218221">Elastic resource pool name</p>
|
|
<p id="dli_02_0336__p84395426152">The value can contain 1 to 128 characters.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0336__table1119611215223" frame="border" border="1" rules="all"><caption><b>Table 2 </b>query parameters</caption><thead align="left"><tr id="dli_02_0336__row9433182114228"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="dli_02_0336__p8433172119227">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="dli_02_0336__p14433521122219">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="dli_02_0336__p184334219221">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="dli_02_0336__p743392152217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0336__row20433521152213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="dli_02_0336__p1343342172218">start_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="dli_02_0336__p1643318213227">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="dli_02_0336__p843352118227">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="dli_02_0336__p2920191315230">Start time of the historical scaling records you want to query. The time must be 30 days earlier than the current time and earlier than the <strong id="dli_02_0336__b458833612512">end_time</strong>. The value is a UNIX timestamp in milliseconds.</p>
|
|
<ul id="dli_02_0336__ul15590518182319"><li id="dli_02_0336__li145901818152311">If <strong id="dli_02_0336__b123165495216">start_time</strong> is left empty, data generated in the recent seven days before <strong id="dli_02_0336__b1757521785317">end_time</strong> will be queried. The <strong id="dli_02_0336__b148754115313">end_time</strong> cannot be later than 30 days after the current time.</li><li id="dli_02_0336__li18590121892311">If both <strong id="dli_02_0336__b5360449563">start_time</strong> and <strong id="dli_02_0336__b144866185619">end_time</strong> are left empty, data generated in the recent 15 days before the current time will be queried.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row1043315219225"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="dli_02_0336__p12433112102213">end_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="dli_02_0336__p3434921152215">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="dli_02_0336__p843412152215">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="dli_02_0336__p17584162416234">End time of the historical scaling records. The value cannot be earlier than the <strong id="dli_02_0336__b11209341104219">start_time</strong> or later than the current time. The value is a UNIX timestamp in milliseconds.</p>
|
|
<ul id="dli_02_0336__ul1874328162315"><li id="dli_02_0336__li774028152314">If <strong id="dli_02_0336__b765193818587">end_time</strong> is left empty, data generated since the <strong id="dli_02_0336__b119529522581">start_time</strong> will be queried.</li><li id="dli_02_0336__li274152862314">If both <strong id="dli_02_0336__b636518252007">start_time</strong> and <strong id="dli_02_0336__b137119259014">end_time</strong> are left empty, data generated in the recent 15 days before the current time will be queried.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row18434621162210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="dli_02_0336__p14434202118224">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="dli_02_0336__p15434721102215">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="dli_02_0336__p64341321162215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="dli_02_0336__p114346212224">Scaling status</p>
|
|
<p id="dli_02_0336__p44341621202217">Enumerated values:</p>
|
|
<ul id="dli_02_0336__ul17434102113227"><li id="dli_02_0336__li9434142112221"><strong id="dli_02_0336__b9915622423">success</strong></li><li id="dli_02_0336__li943432116223"><strong id="dli_02_0336__b9212262024">fail</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row13434182152213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="dli_02_0336__p1143422115226">offset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="dli_02_0336__p1743432102210">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="dli_02_0336__p1743432117224">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="dli_02_0336__p144345214222">Offset</p>
|
|
<p id="dli_02_0336__p143462172218">Minimum value: <strong id="dli_02_0336__b736973615310">0</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row1843412117221"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="dli_02_0336__p17434321162213">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="dli_02_0336__p17434112152216">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="dli_02_0336__p16434321192216">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="dli_02_0336__p164346212225">Number of records displayed on a page</p>
|
|
<p id="dli_02_0336__p104341521162216">Minimum value: <strong id="dli_02_0336__b19927155339">0</strong></p>
|
|
<p id="dli_02_0336__p11434182112215">Maximum value: <strong id="dli_02_0336__b796322649">100</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section320872117229"><h4 class="sectiontitle">Request</h4><p id="dli_02_0336__p57879139810">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section3212182122210"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0336__table1421642118223" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="dli_02_0336__row114356212221"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.4.1.1"><p id="dli_02_0336__p104352021112211">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.4.1.2"><p id="dli_02_0336__p184355215225">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.2.2.4.1.3"><p id="dli_02_0336__p5435172119221">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0336__row54357215224"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.4.1.1 "><p id="dli_02_0336__p1435122112216">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.4.1.2 "><p id="dli_02_0336__p17435162117221">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.4.1.3 "><p id="dli_02_0336__p343542132212">Number of elements in the array</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row1743562112213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.4.1.1 "><p id="dli_02_0336__p194352211228">items</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.4.1.2 "><p id="dli_02_0336__p443552120228">Array of arrays</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.2.2.4.1.3 "><p id="dli_02_0336__p1643522162218">Data returned in the array For details, see <a href="#dli_02_0336__table10219162172215">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0336__table10219162172215"></a><a name="table10219162172215"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0336__table10219162172215" frame="border" border="1" rules="all"><caption><b>Table 4 </b>items parameters</caption><thead align="left"><tr id="dli_02_0336__row4435121112215"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="dli_02_0336__p1543517218229">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="dli_02_0336__p12435172112222">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="dli_02_0336__p4435152182211">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0336__row943520210227"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p5435172102215">max_cu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p1543542119229">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p943512218229">Maximum number of CUs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row443512212222"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p7435182110222">min_cu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p1435132119226">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p4435192112227">Minimum number of CUs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row1843515216222"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p1343522119226">current_cu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p84354215221">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p74354212224">Scaled number of CUs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row114358215225"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p104351521122215">origin_cu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p143572119225">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p1435142111221">Original number of CUs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row1435192112215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p1743516219224">target_cu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p144351021162212">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p1436152116229">Target number of CUs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row9436132117223"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p243682192212">record_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p64366219228">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p184366215223">Operation completion time</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row1643622152213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p743632114222">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p16436182116229">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p94368212227">Scaling status, which can be success or failure</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0336__row17436921112213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="dli_02_0336__p34361721142213">fail_reason</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="dli_02_0336__p13436102112225">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="dli_02_0336__p1243614218223">Failure cause</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section1324012172216"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="dli_02_0336__screen1582312852817">GET https://{endpoint}/v3/{project_id}/elastic-resource-pools/{elastic_resource_pool_name}/scale-records?start_time=1650784624000&end_time=1652625304002&status=&limit=20&offset=1 </pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section1524292122213"><h4 class="sectiontitle">Example Response</h4><p id="dli_02_0336__p743872172219">The following is an example for a successful query:</p>
|
|
<pre class="screen" id="dli_02_0336__screen1443818214227">{
|
|
"count" : 1,
|
|
"items" : [ {
|
|
"max_cu" : 64,
|
|
"min_cu" : 16,
|
|
"current_cu" : 16,
|
|
"target_cu" : 16,
|
|
"origin_cu" : 16,
|
|
"record_time" : 1650784624000,
|
|
"status" : "fail",
|
|
"fail_reason" : "Internal error, please contact technical support."
|
|
} ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section0245122112212"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0336__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="dli_02_0336__row14549638195017"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="dli_02_0336__p1855003825016">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="dli_02_0336__p4550193845010">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0336__row254913813502"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="dli_02_0336__p85503380505">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="dli_02_0336__p95501338105012">OK</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0336__section62491421122211"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0336__p16438142192213">For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0325.html">APIs Related to Elastic Resource Pools</a></div>
|
|
</div>
|
|
</div>
|
|
|