forked from docs/doc-exports
Reviewed-by: Drobnak, David <david.drobnak@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
205 lines
16 KiB
HTML
205 lines
16 KiB
HTML
<a name="ChangeGaussMySqlProxySpecification"></a><a name="ChangeGaussMySqlProxySpecification"></a>
|
|
|
|
<h1 class="topictitle1">Changing Specifications of a Database Proxy Instance</h1>
|
|
<div id="body0000001320639345"><div class="section" id="ChangeGaussMySqlProxySpecification__section554334874315"><h4 class="sectiontitle">Function</h4><p id="ChangeGaussMySqlProxySpecification__p1054344854312">This API is used to change specifications of a database proxy instance. Before calling this API:</p>
|
|
<ul id="ChangeGaussMySqlProxySpecification__ul15431748144314"><li id="ChangeGaussMySqlProxySpecification__li15543848174310">Learn how to <a href="gaussdb_03_0001.html">authorize and authenticate</a> it.</li><li id="ChangeGaussMySqlProxySpecification__li1854318482437">Obtain the required <a href="gaussdb_00_0003.html">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section12481122532914"><h4 class="sectiontitle">URI</h4><p id="ChangeGaussMySqlProxySpecification__p465169184618">PUT /v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/flavor</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ChangeGaussMySqlProxySpecification__table13484122512296" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="ChangeGaussMySqlProxySpecification__row17483112511297"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ChangeGaussMySqlProxySpecification__p164851255293">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ChangeGaussMySqlProxySpecification__p16486125112911">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ChangeGaussMySqlProxySpecification__p1348717259291">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ChangeGaussMySqlProxySpecification__p1448882542913">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ChangeGaussMySqlProxySpecification__row8483132519295"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ChangeGaussMySqlProxySpecification__p15489225102912">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ChangeGaussMySqlProxySpecification__p34891125172910">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ChangeGaussMySqlProxySpecification__p34901225172915">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ChangeGaussMySqlProxySpecification__p1549116250298">Project ID of a tenant in a region.</p>
|
|
<p id="ChangeGaussMySqlProxySpecification__p10217192319619">To obtain this value, see <a href="gaussdb_10_0004.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ChangeGaussMySqlProxySpecification__row104831725102910"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ChangeGaussMySqlProxySpecification__p049217259299">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ChangeGaussMySqlProxySpecification__p18493102517298">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ChangeGaussMySqlProxySpecification__p4493192582912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ChangeGaussMySqlProxySpecification__p20494132552912">DB instance ID, which is compliant with the UUID format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ChangeGaussMySqlProxySpecification__row948392517292"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ChangeGaussMySqlProxySpecification__p1549512512920">proxy_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ChangeGaussMySqlProxySpecification__p8496172518293">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ChangeGaussMySqlProxySpecification__p24971025152912">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ChangeGaussMySqlProxySpecification__p14498102522912">Database proxy ID, which is compliant with the UUID format.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section54995251294"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ChangeGaussMySqlProxySpecification__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="ChangeGaussMySqlProxySpecification__row1550016255296"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ChangeGaussMySqlProxySpecification__p17502325162912">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ChangeGaussMySqlProxySpecification__p950312256291">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ChangeGaussMySqlProxySpecification__p115031725152914">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ChangeGaussMySqlProxySpecification__p1950442520293">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ChangeGaussMySqlProxySpecification__row1750015257290"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ChangeGaussMySqlProxySpecification__p19505162514297">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ChangeGaussMySqlProxySpecification__p15506925112918">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ChangeGaussMySqlProxySpecification__p4507725182916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ChangeGaussMySqlProxySpecification__p20508132572911">User token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ChangeGaussMySqlProxySpecification__row8500725182919"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ChangeGaussMySqlProxySpecification__p5509125172913">X-Language</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ChangeGaussMySqlProxySpecification__p55091825182912">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ChangeGaussMySqlProxySpecification__p851002515296">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ChangeGaussMySqlProxySpecification__p11511152513295">Language.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ChangeGaussMySqlProxySpecification__request_TaurusProxyScaleRequest" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="ChangeGaussMySqlProxySpecification__row10512825152915"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="ChangeGaussMySqlProxySpecification__p1951332592914">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="ChangeGaussMySqlProxySpecification__p1551472542910">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="ChangeGaussMySqlProxySpecification__p1151522562918">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="ChangeGaussMySqlProxySpecification__p12516172532915">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ChangeGaussMySqlProxySpecification__row13512172562912"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="ChangeGaussMySqlProxySpecification__p4517325192918">flavor_ref</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="ChangeGaussMySqlProxySpecification__p1251817253296">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="ChangeGaussMySqlProxySpecification__p1851852512297">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="ChangeGaussMySqlProxySpecification__p5519122513299">ID of the new flavor.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section35214250290"><h4 class="sectiontitle">Response Parameters</h4><p id="ChangeGaussMySqlProxySpecification__p552216259297"><strong id="ChangeGaussMySqlProxySpecification__b1411835134017">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ChangeGaussMySqlProxySpecification__response_MysqlJobId" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="ChangeGaussMySqlProxySpecification__row17523525172915"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="ChangeGaussMySqlProxySpecification__p952412258299">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="ChangeGaussMySqlProxySpecification__p185251325202915">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="ChangeGaussMySqlProxySpecification__p1526142510298">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ChangeGaussMySqlProxySpecification__row2523162592920"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ChangeGaussMySqlProxySpecification__p1852782512298">job_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ChangeGaussMySqlProxySpecification__p2527142522916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ChangeGaussMySqlProxySpecification__p10528192592914">Task ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ChangeGaussMySqlProxySpecification__p11529192513295"><strong id="ChangeGaussMySqlProxySpecification__b7142444154017">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ChangeGaussMySqlProxySpecification__response_MysqlErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="ChangeGaussMySqlProxySpecification__row195312259293"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="ChangeGaussMySqlProxySpecification__p10533182519292">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="ChangeGaussMySqlProxySpecification__p953416250296">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="ChangeGaussMySqlProxySpecification__p2535182512293">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ChangeGaussMySqlProxySpecification__row75312251295"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="ChangeGaussMySqlProxySpecification__p853682532918">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="ChangeGaussMySqlProxySpecification__p3536162552910">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="ChangeGaussMySqlProxySpecification__p16537152512912">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ChangeGaussMySqlProxySpecification__row353122582913"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="ChangeGaussMySqlProxySpecification__p1753812259293">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="ChangeGaussMySqlProxySpecification__p853916258293">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="ChangeGaussMySqlProxySpecification__p65409255293">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ChangeGaussMySqlProxySpecification__p1154162511294"><strong id="ChangeGaussMySqlProxySpecification__b1063413319415">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ChangeGaussMySqlProxySpecification__table175412257297" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="ChangeGaussMySqlProxySpecification__row9541152522917"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="ChangeGaussMySqlProxySpecification__p1754362532916">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="ChangeGaussMySqlProxySpecification__p1854492510299">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="ChangeGaussMySqlProxySpecification__p8544625192912">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ChangeGaussMySqlProxySpecification__row25421725192912"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="ChangeGaussMySqlProxySpecification__p4545102515297">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="ChangeGaussMySqlProxySpecification__p16546325142917">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="ChangeGaussMySqlProxySpecification__p155471425162917">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ChangeGaussMySqlProxySpecification__row1754212512919"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="ChangeGaussMySqlProxySpecification__p19548142517296">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="ChangeGaussMySqlProxySpecification__p125491225162914">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="ChangeGaussMySqlProxySpecification__p1755072511291">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section16551125162917"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="ChangeGaussMySqlProxySpecification__screen4552125142917">
|
|
PUT https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/61a4ea66210545909d74a05c27a7179ein07/proxy/e87088f0b6a345e79db19d57c41fde15po01/flavor
|
|
{
|
|
"flavor_ref" :"gaussdb.proxy.xlarge.x86.2"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section145561825162916"><h4 class="sectiontitle">Example Response</h4><p id="ChangeGaussMySqlProxySpecification__p655712522912"><strong id="ChangeGaussMySqlProxySpecification__b2049172417416">Status code: 200</strong></p>
|
|
<p id="ChangeGaussMySqlProxySpecification__p19557525132918">Success.</p>
|
|
<pre class="screen" id="ChangeGaussMySqlProxySpecification__screen555815251298">{
|
|
"job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section1256182522913"><h4 class="sectiontitle">Status Code</h4><p id="ChangeGaussMySqlProxySpecification__p0723374409">For details, see <a href="gaussdb_10_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="ChangeGaussMySqlProxySpecification__section8573525162917"><h4 class="sectiontitle">Error Code</h4><p id="ChangeGaussMySqlProxySpecification__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="topic_300000006.html">Database Proxy</a></div>
|
|
</div>
|
|
</div>
|
|
|