Files
doc-exports/docs/taurusdb/api-ref/gaussdb_11_0025.html
wangdengke2 ee9f8aa0b6 taurusdb_api
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>
2025-10-30 15:48:33 +00:00

287 lines
23 KiB
HTML

<a name="gaussdb_11_0025"></a><a name="gaussdb_11_0025"></a>
<h1 class="topictitle1">Modifying the Backup Policy</h1>
<div id="body8662426"><div class="section" id="gaussdb_11_0025__en-us_topic_0000001297344597_section44230431101549"><h4 class="sectiontitle">Function</h4><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p1350220403353">This API is used to modify the backup policy. Before calling this API:</p>
<ul id="gaussdb_11_0025__en-us_topic_0000001297344597_ul924420236520"><li id="gaussdb_11_0025__en-us_topic_0000001267522832_en-us_topic_0000001250985350_li136356359522">Learn how to <a href="gaussdb_03_0001.html">authorize and authenticate</a> it.</li><li id="gaussdb_11_0025__en-us_topic_0000001267522832_en-us_topic_0000001250985350_li1991981933613">Obtain the required <a href="gaussdb_00_0003.html">region and endpoint</a>.</li></ul>
</div>
<div class="section" id="gaussdb_11_0025__en-us_topic_0000001297344597_section31729879101549"><h4 class="sectiontitle">URI</h4><ul id="gaussdb_11_0025__en-us_topic_0000001297344597_ul19983374101549"><li id="gaussdb_11_0025__en-us_topic_0000001297344597_li45632644101549">URI format<p id="gaussdb_11_0025__en-us_topic_0000001297344597_p8040618101549"><a name="gaussdb_11_0025__en-us_topic_0000001297344597_li45632644101549"></a><a name="en-us_topic_0000001297344597_li45632644101549"></a>PUT https://{endpoint}/mysql/v3/{project_id}/instances/{instance_id}/backups/policy/update</p>
</li><li id="gaussdb_11_0025__en-us_topic_0000001297344597_li54691335131412">URI example<p id="gaussdb_11_0025__p1494154252018"><a name="gaussdb_11_0025__en-us_topic_0000001297344597_li54691335131412"></a><a name="en-us_topic_0000001297344597_li54691335131412"></a>PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/97b026aa9cc4417888c14c84a1ad9860/instances/c3ec2c6148ad4d71b1a8411a62df0d3cin07/backups/policy/update</p>
</li><li id="gaussdb_11_0025__en-us_topic_0000001297344597_li47310355101549">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__en-us_topic_0000001297344597_table23140016101549" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="gaussdb_11_0025__en-us_topic_0000001297344597_row27795795101549"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.2.3.1.2.5.1.1"><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p36866898101549"><strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b20503133664718">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.2.2.3.1.2.5.1.2"><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p156174610411">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11%" id="mcps1.3.2.2.3.1.2.5.1.3"><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p33428750101549">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59%" id="mcps1.3.2.2.3.1.2.5.1.4"><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p23374190101549"><strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b132785452864718">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__en-us_topic_0000001297344597_row14261210101549"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.2.3.1.2.5.1.1 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p104922035165518">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.2.3.1.2.5.1.2 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p1956194615414">String</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.2.2.3.1.2.5.1.3 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p18047737101549">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.2.2.3.1.2.5.1.4 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p52580603101549">Project ID of a tenant in a region.</p>
<p id="gaussdb_11_0025__en-us_topic_0000001297344597_p16476914175718">To obtain this value, see <a href="gaussdb_10_0004.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__en-us_topic_0000001297344597_row197844933113"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.2.3.1.2.5.1.1 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p2153719152911">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.2.3.1.2.5.1.2 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p8572046164115">String</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.2.2.3.1.2.5.1.3 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p346994410599">No</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.2.2.3.1.2.5.1.4 "><p id="gaussdb_11_0025__en-us_topic_0000001297344597_p84691144145915">DB instance ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="gaussdb_11_0025__section1242614319372"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__en-us_topic_0000001181402750_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="gaussdb_11_0025__row1842733119372"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="gaussdb_11_0025__p184271731153713">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="gaussdb_11_0025__p10428193113717">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="gaussdb_11_0025__p9428183113715">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="gaussdb_11_0025__p15428193143716">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__row442712316379"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="gaussdb_11_0025__p144282312376">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="gaussdb_11_0025__p194292310372">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="gaussdb_11_0025__p042953119378">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="gaussdb_11_0025__p154291531123711">User token.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row174271331103716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="gaussdb_11_0025__p1042983120378">X-Language</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="gaussdb_11_0025__p2043023113372">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="gaussdb_11_0025__p44301431193711">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="gaussdb_11_0025__p043093118372">Language.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row1756574621620"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="gaussdb_11_0025__p15665114311157">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="gaussdb_11_0025__p36651643101518">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="gaussdb_11_0025__p10665443181514">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="gaussdb_11_0025__p1866504318159">MIME type of the request body. You are advised to use the default value <strong id="gaussdb_11_0025__b103780109674244">application/json</strong>. For APIs used to upload objects or images, the value can vary depending on the flow type.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__en-us_topic_0000001181402750_request_MysqlUpdateBackupPolicyRequest" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="gaussdb_11_0025__row443093183715"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="gaussdb_11_0025__p1843173112372">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="gaussdb_11_0025__p17431103116376">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="gaussdb_11_0025__p1643233123713">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="gaussdb_11_0025__p343263143713">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__row15430131193710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="gaussdb_11_0025__p1443214315371">backup_policy</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="gaussdb_11_0025__p44321731153719">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="gaussdb_11_0025__p18433173118378"><a href="#gaussdb_11_0025__en-us_topic_0000001181402750_request_MysqlBackupPolicy">MysqlBackupPolicy</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="gaussdb_11_0025__p1043353112374">Database information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="gaussdb_11_0025__en-us_topic_0000001181402750_request_MysqlBackupPolicy"></a><a name="en-us_topic_0000001181402750_request_MysqlBackupPolicy"></a><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__en-us_topic_0000001181402750_request_MysqlBackupPolicy" frame="border" border="1" rules="all"><caption><b>Table 4 </b>MysqlBackupPolicy</caption><thead align="left"><tr id="gaussdb_11_0025__row4433163113714"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="gaussdb_11_0025__p11434931193716">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="gaussdb_11_0025__p1943453123712">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="gaussdb_11_0025__p124341311375">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="gaussdb_11_0025__p24351731123711">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__row15433103113714"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_11_0025__p1343533113372">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_11_0025__p1543519319376">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_11_0025__p1843514314379">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_11_0025__p5461151135817">Backup time window. Automated backups will be triggered during the backup time window.</p>
<p id="gaussdb_11_0025__p1388331819512">The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.</p>
<ul id="gaussdb_11_0025__ul12883111815519"><li id="gaussdb_11_0025__li28833188515">The <strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b6676164910195">HH</strong> value must be 1 greater than the <strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b20681649131916">hh</strong> value.</li><li id="gaussdb_11_0025__li088301865116">The values of <strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b14578353201911">mm</strong> and <strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b1658355315193">MM</strong> must be the same and must be set to <strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b2583175351912">00</strong>.</li></ul>
<p id="gaussdb_11_0025__p168831618155114">Example value:</p>
<p id="gaussdb_11_0025__p37207419489"><strong id="gaussdb_11_0025__b116871033201019">21:00-22:00</strong></p>
</td>
</tr>
<tr id="gaussdb_11_0025__row2043373114374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_11_0025__p643603193710">keep_days</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_11_0025__p6436113117373">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_11_0025__p143616310372">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_11_0025__p7437133153715">Backup retention days.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row5433231143716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_11_0025__p5437143183711">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_11_0025__p143773143713">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_11_0025__p2437123117374">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_11_0025__p1246114518580">Backup cycle configuration. Data will be automatically backed up on the selected days every week.</p>
<p id="gaussdb_11_0025__p1170513488514">Value range: The value is a number separated by commas (,), indicating the days of the week.</p>
<p id="gaussdb_11_0025__p1470514835117">For example, the value <strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b13680142354411">1,2,3,4</strong> indicates that the backup period is Monday, Tuesday, Wednesday, and Thursday.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row643383113711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_11_0025__p44381931113714">retention_num_backup_level1</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_11_0025__p243811317374">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_11_0025__p12439103115375">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_11_0025__p1446110514588">Number of retained level-1 backups. The default value is <strong id="gaussdb_11_0025__b69457985274244">0</strong>. This parameter is valid when the level-1 backup function is enabled. Valid value:</p>
<ul id="gaussdb_11_0025__ul13914117613"><li id="gaussdb_11_0025__li99141515616"><strong id="gaussdb_11_0025__b795275071010">0</strong></li><li id="gaussdb_11_0025__li79141512620"><strong id="gaussdb_11_0025__b167987548105">1</strong></li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="gaussdb_11_0025__section14440831143718"><h4 class="sectiontitle">Response Parameters</h4><p id="gaussdb_11_0025__p1444083123715"><strong id="gaussdb_11_0025__b944043113717">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__en-us_topic_0000001181402750_response_MysqlUpdateBackupPolicyResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="gaussdb_11_0025__row944113111373"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="gaussdb_11_0025__p0441231103717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="gaussdb_11_0025__p9442153112375">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="gaussdb_11_0025__p12442131103717">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__row6441123110375"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="gaussdb_11_0025__p344210312372">status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="gaussdb_11_0025__p5443183111379">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="gaussdb_11_0025__p879391122016">Backup status. Value:</p>
<ul id="gaussdb_11_0025__ul167931311192015"><li id="gaussdb_11_0025__li7793121110207"><strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b11322183412112">BUILDING</strong>: Modification in progress</li><li id="gaussdb_11_0025__li2079351152015"><strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b074815409117">COMPLETED</strong>: Modification completed</li><li id="gaussdb_11_0025__li6793811122013"><strong id="gaussdb_11_0025__en-us_topic_0000001297344597_b19865194171113">FAILED</strong>: Modification failed</li></ul>
</td>
</tr>
<tr id="gaussdb_11_0025__row54411931103716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="gaussdb_11_0025__p154431231203713">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="gaussdb_11_0025__p2444103153720">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="gaussdb_11_0025__p044416314377">Instance ID.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row11441173116377"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="gaussdb_11_0025__p244411317373">instance_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="gaussdb_11_0025__p1944553163720">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="gaussdb_11_0025__p3445113103719">Instance name.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="gaussdb_11_0025__p8445173183711"><strong id="gaussdb_11_0025__b54923801672511">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__en-us_topic_0000001181402750_response_MysqlErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="gaussdb_11_0025__row3445193119378"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="gaussdb_11_0025__p7446931133715">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="gaussdb_11_0025__p744663119377">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="gaussdb_11_0025__p12447133193718">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__row1244619319372"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="gaussdb_11_0025__p744718311377">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="gaussdb_11_0025__p204471331183710">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="gaussdb_11_0025__p184479317376">Error code.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row13446123193711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="gaussdb_11_0025__p1244803117374">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="gaussdb_11_0025__p344853133710">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="gaussdb_11_0025__p1448143118377">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="gaussdb_11_0025__p4448231173710"><strong id="gaussdb_11_0025__b22112678164018">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_11_0025__table1844923114374" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="gaussdb_11_0025__row1449183173717"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="gaussdb_11_0025__p19449231163716">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="gaussdb_11_0025__p74491831163715">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="gaussdb_11_0025__p1745043123715">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="gaussdb_11_0025__row184493318375"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="gaussdb_11_0025__p11450531173719">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="gaussdb_11_0025__p11450133143713">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="gaussdb_11_0025__p3451103153715">Error code.</p>
</td>
</tr>
<tr id="gaussdb_11_0025__row154495311373"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="gaussdb_11_0025__p6451931163714">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="gaussdb_11_0025__p1045123123710">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="gaussdb_11_0025__p94519314379">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="gaussdb_11_0025__section345233112379"><h4 class="sectiontitle">Example Request</h4><p id="gaussdb_11_0025__p13452133183713">Modifying the backup policy</p>
<pre class="screen" id="gaussdb_11_0025__screen15452231123718">
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/mysql/v3/054e292c9880d4992f02c0196d3ea468/instances/ba62a0b83a1b42bfab275829d86ac0fdin07/backups/policy/update
{
"backup_policy" : {
"keep_days" : 7,
"start_time" : "19:00-20:00",
"period" : "1,2,3,4,5"
}
}</pre>
</div>
<div class="section" id="gaussdb_11_0025__section1845416318372"><h4 class="sectiontitle">Example Response</h4><p id="gaussdb_11_0025__p34541731153711"><strong id="gaussdb_11_0025__b54553310372">Status code: 200</strong></p>
<p id="gaussdb_11_0025__p9455123116370">Success.</p>
<pre class="screen" id="gaussdb_11_0025__screen1845593113375">{
"status" : "COMPLETED",
"instance_id" : "ef25188419f941309882d2986b2210b9in07",
"instance_name" : "taurusdb"
}</pre>
</div>
<div class="section" id="gaussdb_11_0025__section4778540915440"><h4 class="sectiontitle">Status Code</h4><p id="gaussdb_11_0025__p0723374409">For details, see <a href="gaussdb_10_0002.html">Status Codes</a>.</p>
</div>
<div class="section" id="gaussdb_11_0025__section2557116171718"><h4 class="sectiontitle">Error Code</h4><p id="gaussdb_11_0025__p855716160178">For details, see <a href="gaussdb_10_0003.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="gaussdb_11_0021.html">Backup Management</a></div>
</div>
</div>