forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
276 lines
20 KiB
HTML
276 lines
20 KiB
HTML
<a name="gaussdb_06_0006"></a><a name="gaussdb_06_0006"></a>
|
|
|
|
<h1 class="topictitle1">Modifying an Automated Backup Policy</h1>
|
|
<div id="body1595840412324"><div class="section" id="gaussdb_06_0006__section44230431101549"><h4 class="sectiontitle">Function</h4><p id="gaussdb_06_0006__p1350220403353">This API is used to modify an automated backup policy. Before using this API:</p>
|
|
<ul id="gaussdb_06_0006__ul924420236520"><li id="gaussdb_06_0006__li136356359522">Learn how to <a href="gaussdb_03_0001.html">authorize and authenticate</a> it.</li><li id="gaussdb_06_0006__li1991981933613">Obtain the required <a href="gaussdb_00_0003.html">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="gaussdb_06_0006__section144701450151819"><h4 class="sectiontitle">URI</h4><p id="gaussdb_06_0006__p847065011184">PUT /v3/{project_id}/instances/{instance_id}/backups/policy/update</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__table44711950141817" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="gaussdb_06_0006__row4471950161819"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="gaussdb_06_0006__p164711950101820">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="gaussdb_06_0006__p194711050131812">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="gaussdb_06_0006__p94711350141817">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="gaussdb_06_0006__p347116508184">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row144711250151811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="gaussdb_06_0006__p647115505184">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="gaussdb_06_0006__p94721350151813">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="gaussdb_06_0006__p1647255031819">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="gaussdb_06_0006__p53643590274">Project ID of a tenant in a region.</p>
|
|
<p id="gaussdb_06_0006__p6364195902711">To obtain this value, see <a href="gaussdb_10_0004.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row14712501184"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="gaussdb_06_0006__p15472175061811">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="gaussdb_06_0006__p7472135071810">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="gaussdb_06_0006__p19472185015188">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="gaussdb_06_0006__p647265018189">DB instance ID, which is compliant with the UUID format.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="gaussdb_06_0006__section147218509186"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="gaussdb_06_0006__row647314501189"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="gaussdb_06_0006__p1447475017180">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="gaussdb_06_0006__p947495014188">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="gaussdb_06_0006__p1647495011815">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="gaussdb_06_0006__p3474195021817">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row1247385041817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="gaussdb_06_0006__p1747415501180">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="gaussdb_06_0006__p17474155031817">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="gaussdb_06_0006__p5474650191817">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="gaussdb_06_0006__p9474165031819">User token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row1347355011185"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="gaussdb_06_0006__p13474115014186">X-Language</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="gaussdb_06_0006__p3475135018181">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="gaussdb_06_0006__p1847545021817">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="gaussdb_06_0006__p17475115010184">Language.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__request_MysqlUpdateBackupPolicyRequest" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="gaussdb_06_0006__row1347545051817"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="gaussdb_06_0006__p17475105061811">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="gaussdb_06_0006__p12475650111811">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="gaussdb_06_0006__p54752509188">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="gaussdb_06_0006__p247625019180">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row18475115051819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="gaussdb_06_0006__p19476125020188">backup_policy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="gaussdb_06_0006__p7476135015183">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="gaussdb_06_0006__p8476165031815"><a href="#gaussdb_06_0006__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_06_0006__p147625016186">Database information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="gaussdb_06_0006__request_MysqlBackupPolicy"></a><a name="request_MysqlBackupPolicy"></a><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__request_MysqlBackupPolicy" frame="border" border="1" rules="all"><caption><b>Table 4 </b>MysqlBackupPolicy</caption><thead align="left"><tr id="gaussdb_06_0006__row1947610509187"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="gaussdb_06_0006__p16477150141815">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="gaussdb_06_0006__p1347775001814">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="gaussdb_06_0006__p9477550161816">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="gaussdb_06_0006__p15477850101810">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row1247635015182"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_06_0006__p12477135016186">start_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_06_0006__p64772502184">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_06_0006__p2047755091812">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_06_0006__p1475143620280">Backup time window. Automated backups will be triggered during the backup time window.</p>
|
|
<p id="gaussdb_06_0006__p117512369281">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_06_0006__ul1575116363287"><li id="gaussdb_06_0006__li1175112369282">The <strong id="gaussdb_06_0006__b6676164910195">HH</strong> value must be 1 greater than the <strong id="gaussdb_06_0006__b20681649131916">hh</strong> value.</li><li id="gaussdb_06_0006__li17751536202819">The values of <strong id="gaussdb_06_0006__b14578353201911">mm</strong> and <strong id="gaussdb_06_0006__b1658355315193">MM</strong> must be the same and must be set to <strong id="gaussdb_06_0006__b2583175351912">00</strong>.</li></ul>
|
|
<p id="gaussdb_06_0006__p12751133602820">Example value:</p>
|
|
<p id="gaussdb_06_0006__p1750735412373">21:00-22:00</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row164761150181816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_06_0006__p17477115018181">keep_days</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_06_0006__p19478105011188">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_06_0006__p19478550191819">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_06_0006__p1019673012815">Backup retention days.</p>
|
|
<p id="gaussdb_06_0006__p15196113042813">Value: <strong id="gaussdb_06_0006__b1779694331">1</strong> to <strong id="gaussdb_06_0006__b12796941038">732</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row2476250161813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_06_0006__p124788509181">period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_06_0006__p04784509186">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_06_0006__p17478145041819">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_06_0006__p2879245202814">Backup cycle configuration. Data will be automatically backed up on the selected days every week.</p>
|
|
<p id="gaussdb_06_0006__p108791145162810">Value range: The value is a number separated by commas (,), indicating the days of the week.</p>
|
|
<p id="gaussdb_06_0006__p687984519288">For example, the value <strong id="gaussdb_06_0006__b13680142354411">1,2,3,4</strong> indicates that the backup period is Monday, Tuesday, Wednesday, and Thursday.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row11476125061816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="gaussdb_06_0006__p184781350101819">retention_num_backup_level-1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="gaussdb_06_0006__p947816507188">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="gaussdb_06_0006__p1847815031820">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="gaussdb_06_0006__p9164115152812">Number of retained level-1 backups. The default value is <strong id="gaussdb_06_0006__b2819928272408">0</strong>. This parameter is mandatory when the level-1 backup function is enabled. This parameter is unavailable when the level-1 backup function is disabled. Value:</p>
|
|
<ul id="gaussdb_06_0006__ul31649518286"><li id="gaussdb_06_0006__li19164105142817">0</li><li id="gaussdb_06_0006__li5164351152811">1</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="gaussdb_06_0006__section44798502185"><h4 class="sectiontitle">Response Parameters</h4><p id="gaussdb_06_0006__p194791550151817"><strong id="gaussdb_06_0006__b94055780425046">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__response_MysqlUpdateBackupPolicyResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="gaussdb_06_0006__row2047911505186"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="gaussdb_06_0006__p8479135021810">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="gaussdb_06_0006__p5479125081811">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="gaussdb_06_0006__p7480145031817">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row1479145081815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="gaussdb_06_0006__p1778512217286">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="gaussdb_06_0006__p5785725282">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="gaussdb_06_0006__p18785127285">Backup status. Value:</p>
|
|
<ul id="gaussdb_06_0006__ul378518217283"><li id="gaussdb_06_0006__li187854214286"><strong id="gaussdb_06_0006__b11322183412112">BUILDING</strong>: modification in progress</li><li id="gaussdb_06_0006__li177851217288"><strong id="gaussdb_06_0006__b074815409117">COMPLETED</strong>: modification completed</li><li id="gaussdb_06_0006__li378518210283"><strong id="gaussdb_06_0006__b19865194171113">FAILED</strong>: modification failed</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row54791050141819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="gaussdb_06_0006__p378572152811">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="gaussdb_06_0006__p1678519222812">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="gaussdb_06_0006__p3785192132815">DB instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row1847945051819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="gaussdb_06_0006__p197852252813">instance_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="gaussdb_06_0006__p17851424289">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="gaussdb_06_0006__p7785424280">DB instance name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="gaussdb_06_0006__p848013504188"><strong id="gaussdb_06_0006__b155682845025238">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__response_MysqlErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="gaussdb_06_0006__row04811550171812"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="gaussdb_06_0006__p24811950141811">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="gaussdb_06_0006__p164814503181">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="gaussdb_06_0006__p194812050121819">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row19481125016186"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="gaussdb_06_0006__p448120509187">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="gaussdb_06_0006__p3481145031817">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="gaussdb_06_0006__p748275010185">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row1048185031818"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="gaussdb_06_0006__p14482450141816">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="gaussdb_06_0006__p19482175015180">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="gaussdb_06_0006__p1948265015185">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="gaussdb_06_0006__p2482115017180"><strong id="gaussdb_06_0006__b15482195017186">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="gaussdb_06_0006__table948225021810" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="gaussdb_06_0006__row44821550141817"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="gaussdb_06_0006__p8482950121813">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="gaussdb_06_0006__p1648305061812">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="gaussdb_06_0006__p0483165010184">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="gaussdb_06_0006__row11482105016188"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="gaussdb_06_0006__p194837509183">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="gaussdb_06_0006__p1748315508186">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="gaussdb_06_0006__p848313509182">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="gaussdb_06_0006__row194821750151814"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="gaussdb_06_0006__p748317506186">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="gaussdb_06_0006__p04831550131813">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="gaussdb_06_0006__p5483105018188">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="gaussdb_06_0006__section94831150101814"><h4 class="sectiontitle">Example Request</h4><p id="gaussdb_06_0006__p1448315018189">Modifying a backup policy</p>
|
|
<pre class="screen" id="gaussdb_06_0006__screen1748415505186">
|
|
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/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_06_0006__section18484950111813"><h4 class="sectiontitle">Example Response</h4><p id="gaussdb_06_0006__p2048417505181"><strong id="gaussdb_06_0006__b207164592725046">Status code: 200</strong></p>
|
|
<p id="gaussdb_06_0006__p17484150171813">Success.</p>
|
|
<pre class="screen" id="gaussdb_06_0006__screen12485850191818">{
|
|
"status" : "COMPLETED",
|
|
"instance_id" : "ef25188419f941309882d2986b2210b9in07",
|
|
"instance_name" : "TaurusDB"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="gaussdb_06_0006__section4778540915440"><h4 class="sectiontitle">Status Code</h4><p id="gaussdb_06_0006__p0723374409">For details, see <a href="gaussdb_10_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="gaussdb_06_0006__section946032144017"><h4 class="sectiontitle">Error Code</h4><p id="gaussdb_06_0006__p19357163913406">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_06_0002.html">Backup Management</a></div>
|
|
</div>
|
|
</div>
|
|
|