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>
125 lines
15 KiB
HTML
125 lines
15 KiB
HTML
<a name="EN-US_TOPIC_0000001917130688"></a><a name="EN-US_TOPIC_0000001917130688"></a>
|
|
|
|
<h1 class="topictitle1">Modifying Parameters of a Specified DB Instance</h1>
|
|
<div id="body0000001207167815"><div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_section563650143816"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p159487012381">This API is used to modify parameters in the parameter template of a specified DB instance. Before calling this API:</p>
|
|
<ul id="EN-US_TOPIC_0000001917130688__en-us_topic_0128427213_ul12259155218373"><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0000001917290508_en-us_topic_0000001791349281_li3231171417412">Learn how to <a href="opengauss_api_0010.html">authenticate</a> this API.</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0000001917290508_en-us_topic_0000001791349281_li41227910453">Understand the API in <a href="opengauss_api_0012.html">Using APIs</a>.</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0000001917290508_en-us_topic_0000001791349281_en-us_topic_0110967248_li1991981933613">Obtain the required <a href="https://docs.otc.t-systems.com/regions-and-endpoints/index.html" target="_blank" rel="noopener noreferrer">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_section1461493103419"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000001917130688__p159517251425">The values of the modified parameters must be within the default value range of the specified database version.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_section116519011384"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_ul159481406386"><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li5948150163815">URI format<p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p494814063811"><a name="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li5948150163815"></a><a name="en-us_topic_0136489341_li5948150163815"></a>PUT https://{<em id="EN-US_TOPIC_0000001917130688__en-us_topic_0128427213_i1958383021511">Endpoint</em>}/v3/{project_id}/instances/{instance_id}/configurations</p>
|
|
</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li4411135064210">Example<p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1454414211213"><a name="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li4411135064210"></a><a name="en-us_topic_0136489341_li4411135064210"></a>https://gaussdb.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/configurations</p>
|
|
</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li1694811003813">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_table156666010383" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row18948107387"><th align="left" class="cellrowborder" valign="top" width="21.21%" id="mcps1.3.3.2.3.1.2.4.1.1"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1194880153810"><strong id="EN-US_TOPIC_0000001917130688__b425519146810">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.14%" id="mcps1.3.3.2.3.1.2.4.1.2"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p594815053817"><strong id="EN-US_TOPIC_0000001917130688__b153575151880">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="64.64999999999999%" id="mcps1.3.3.2.3.1.2.4.1.3"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p394813018383"><strong id="EN-US_TOPIC_0000001917130688__b269915201088">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row2948130153820"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.3.1.2.4.1.1 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p129488015381">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.14%" headers="mcps1.3.3.2.3.1.2.4.1.2 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p29482006386">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.64999999999999%" headers="mcps1.3.3.2.3.1.2.4.1.3 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1594814073813">Project ID of a tenant in a region.</p>
|
|
<p id="EN-US_TOPIC_0000001917130688__p8544202712219">To obtain this value, see <a href="opengauss_api_0034.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row17948707388"><td class="cellrowborder" valign="top" width="21.21%" headers="mcps1.3.3.2.3.1.2.4.1.1 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1094811012382">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.14%" headers="mcps1.3.3.2.3.1.2.4.1.2 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p4948205386">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.64999999999999%" headers="mcps1.3.3.2.3.1.2.4.1.3 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p194814033815">DB instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_section37136013381"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_ul2096411013810"><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li9964307381">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_table17301053815" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row17964120113817"><th align="left" class="cellrowborder" valign="top" width="24.69%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1296414014382"><strong id="EN-US_TOPIC_0000001917130688__b39281618999">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.150000000000002%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p119641902388"><strong id="EN-US_TOPIC_0000001917130688__b598718191894">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p14964140103819"><strong id="EN-US_TOPIC_0000001917130688__b583662016917">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="36.730000000000004%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1596410023814"><strong id="EN-US_TOPIC_0000001917130688__b1589702314913">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row7964102380"><td class="cellrowborder" valign="top" width="24.69%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p179641309380">values</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.150000000000002%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p169644053814">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p09646073812">Map<String,String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="36.730000000000004%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p09641305389">Parameter values defined by users based on the default parameter templates.</p>
|
|
<p id="EN-US_TOPIC_0000001917130688__p939979154010">Example: For <strong id="EN-US_TOPIC_0000001917130688__b1035131153212">failed_login_attempts: 4</strong>, <strong id="EN-US_TOPIC_0000001917130688__b96648614327">failed_login_attempts</strong> indicates the parameter name, and <strong id="EN-US_TOPIC_0000001917130688__b157611639163212">4</strong> indicated the changed parameter value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__section7105234135917"><h4 class="sectiontitle">Example Request</h4><ul id="EN-US_TOPIC_0000001917130688__ul29401421155811"><li id="EN-US_TOPIC_0000001917130688__li9940192185817">Changing the value of <strong id="EN-US_TOPIC_0000001917130688__b7431944201510">failed_login_attempts</strong> to <strong id="EN-US_TOPIC_0000001917130688__b104444451518">4</strong> (The change is applied without a DB instance reboot.)<pre class="screen" id="EN-US_TOPIC_0000001917130688__screen3161255807">{
|
|
"values": {
|
|
"failed_login_attempts": "4"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
<div class="p" id="EN-US_TOPIC_0000001917130688__p4453932114815"><ul id="EN-US_TOPIC_0000001917130688__ul11128395581"><li id="EN-US_TOPIC_0000001917130688__li1611223918582">Changing the value of <strong id="EN-US_TOPIC_0000001917130688__b135711536141719">track_activity_query_size</strong> to <strong id="EN-US_TOPIC_0000001917130688__b848019404178">2048</strong> and the value of <strong id="EN-US_TOPIC_0000001917130688__b1197818478178">max_replication_slots</strong> to <strong id="EN-US_TOPIC_0000001917130688__b18230185121718">25</strong> (The changes are applied after the DB instance is rebooted.)<pre class="screen" id="EN-US_TOPIC_0000001917130688__screen4818175403">{
|
|
"values": {
|
|
"track_activity_query_size": "2048",
|
|
"max_replication_slots": "30"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_section77762093812"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_ul11964501387"><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li1596420173819">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_table1477614093818" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row6964308384"><th align="left" class="cellrowborder" valign="top" width="25.509999999999998%" id="mcps1.3.6.2.1.1.2.4.1.1"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1096410017380"><strong id="EN-US_TOPIC_0000001917130688__b286835973318">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40.82%" id="mcps1.3.6.2.1.1.2.4.1.2"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p129648023816"><strong id="EN-US_TOPIC_0000001917130688__b13168617348">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.67%" id="mcps1.3.6.2.1.1.2.4.1.3"><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p169647014384"><strong id="EN-US_TOPIC_0000001917130688__b2871159347">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_row096412073812"><td class="cellrowborder" valign="top" width="25.509999999999998%" headers="mcps1.3.6.2.1.1.2.4.1.1 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p896419003819">restart_required</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40.82%" headers="mcps1.3.6.2.1.1.2.4.1.2 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p1396417033819">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.67%" headers="mcps1.3.6.2.1.1.2.4.1.3 "><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_p0964100183811">Whether a reboot is required.</p>
|
|
<ul id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_ul896417073811"><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li13964170183816"><strong id="EN-US_TOPIC_0000001917130688__b19535132263415">true</strong>: A reboot is required.</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li179641703387"><strong id="EN-US_TOPIC_0000001917130688__b1841827123419">false</strong>: A reboot is not required.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li2203123217153">Example normal response<ul id="EN-US_TOPIC_0000001917130688__ul13217122811520"><li id="EN-US_TOPIC_0000001917130688__li1821718280523">A reboot is not required.<pre class="codeblock" id="EN-US_TOPIC_0000001917130688__codeblock950844445210">{
|
|
"restart_required": false
|
|
}</pre>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001917130688__ul7276193175112"><li id="EN-US_TOPIC_0000001917130688__li11276133114510">A reboot is required.<pre class="codeblock" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_codeblock296470103817">{
|
|
"restart_required": true
|
|
}</pre>
|
|
</li></ul>
|
|
</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li20408118173316">Abnormal response<p id="EN-US_TOPIC_0000001917130688__en-us_topic_0000001704033841_en-us_topic_0128427213_p29415884"><a name="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_li20408118173316"></a><a name="en-us_topic_0136489341_li20408118173316"></a>For details, see <a href="opengauss_api_0031.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0128427213_section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_ul7858132212142"><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_li58581622171411">Normal<p id="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_p1040982941020"><a name="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_li58581622171411"></a><a name="en-us_topic_0110967248_li58581622171411"></a>200</p>
|
|
</li><li id="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_li11583183218149">Abnormal<p id="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_p65078394148"><a name="EN-US_TOPIC_0000001917130688__en-us_topic_0110967248_li11583183218149"></a><a name="en-us_topic_0110967248_li11583183218149"></a>For details, see <a href="opengauss_api_0032.html">Status Codes</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130688__en-us_topic_0136489341_section946032144017"><h4 class="sectiontitle">Error Code</h4><p id="EN-US_TOPIC_0000001917130688__en-us_topic_0000001704033841_en-us_topic_0110967248_p19357163913406">For details, see <a href="opengauss_api_0033.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="opengauss_api_0023.html">Parameter Configuration</a></div>
|
|
</div>
|
|
</div>
|
|
|