1
0
forked from docs/doc-exports
doc-exports/docs/gaussdb_mysql/api-ref/CreateGaussMySqlProxy.html
Wang , Deng Ke 350d6ddb90 Added the total_count field to the example response in Querying Resource Quotas.
Reviewed-by: Drobnak, David <david.drobnak@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-10-23 12:40:55 +00:00

277 lines
20 KiB
HTML

<a name="CreateGaussMySqlProxy"></a><a name="CreateGaussMySqlProxy"></a>
<h1 class="topictitle1">Enabling Database Proxy</h1>
<div id="body0000001092940872"><div class="section" id="CreateGaussMySqlProxy__section4284989"><h4 class="sectiontitle">Function</h4><p id="CreateGaussMySqlProxy__p28332047">This API is used to enable database proxy in ELB mode. Before using this API:</p>
<ul id="CreateGaussMySqlProxy__ul924420236520"><li id="CreateGaussMySqlProxy__li136356359522">Learn how to <a href="gaussdb_03_0001.html">authorize and authenticate</a> it.</li><li id="CreateGaussMySqlProxy__li1991981933613">Obtain the required <a href="gaussdb_00_0003.html">region and endpoint</a>.</li></ul>
</div>
<div class="section" id="CreateGaussMySqlProxy__section197767269509"><h4 class="sectiontitle">URI</h4><p id="CreateGaussMySqlProxy__p1776926115013">POST /v3/{project_id}/instances/{instance_id}/proxy</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__table107766267506" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row1277632618502"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreateGaussMySqlProxy__p18777182614501">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreateGaussMySqlProxy__p2777112615018">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreateGaussMySqlProxy__p277722645011">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreateGaussMySqlProxy__p17777202645014">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row1677613260509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p197772026105017">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p197773267500">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p677710266502">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p12127170539">Project ID of a tenant in a region.</p>
<p id="CreateGaussMySqlProxy__p6127501330">To obtain this value, see <a href="gaussdb_10_0004.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row137761926185013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p7778152610506">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p157782268508">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p9778112619500">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p377832618508">DB instance ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateGaussMySqlProxy__section177781626165017"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row16778102625018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreateGaussMySqlProxy__p1577972625011">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreateGaussMySqlProxy__p3779152618509">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreateGaussMySqlProxy__p1780152605020">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreateGaussMySqlProxy__p4780826185012">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row177791426135013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateGaussMySqlProxy__p14780102615014">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateGaussMySqlProxy__p97801326185014">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateGaussMySqlProxy__p27806266504">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateGaussMySqlProxy__p27805269509">User token.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row2779826145020"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateGaussMySqlProxy__p37805265509">X-Language</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateGaussMySqlProxy__p8780726195017">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateGaussMySqlProxy__p147805269509">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateGaussMySqlProxy__p3781172618505">Language.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__request_OpenMysqlProxyRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row378114262500"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateGaussMySqlProxy__p47811926175010">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateGaussMySqlProxy__p6781142665014">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateGaussMySqlProxy__p678132685020">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateGaussMySqlProxy__p187821526165015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row5781826195010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p278219261503">flavor_ref</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p57822026185015">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p6782112619509">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p1278252611509">Proxy specification code.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row1878172610507"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p8782426195018">node_num</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p878292620507">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p478292619507">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p1978232635019">Number of proxy instance nodes. The value is an integer from 2 to 32.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row378116263505"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p14783102616506">proxy_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p11783626105010">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p57831726175014">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p9783172619509">Proxy instance name. DB instances of the same type can have same names under the same tenant. The name consists of 4 to 64 characters and starts with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row7781182611502"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p1578362619503">proxy_mode</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p57831326135011">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p117839268501">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p1178332619503">Proxy instance type. The default type is <strong id="CreateGaussMySqlProxy__b433816023310">readwrite</strong>.</p>
<p id="CreateGaussMySqlProxy__p578302635019">Valid value:</p>
<ul id="CreateGaussMySqlProxy__ul157831326155013"><li id="CreateGaussMySqlProxy__li167841826195020"><strong id="CreateGaussMySqlProxy__b1578413264500">readwrite</strong></li><li id="CreateGaussMySqlProxy__li978412615506"><strong id="CreateGaussMySqlProxy__b13784162655011">readonly</strong></li></ul>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row67817261503"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateGaussMySqlProxy__p117844268505">nodes_read_weight</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateGaussMySqlProxy__p1878402685010">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateGaussMySqlProxy__p117841226125016">Array of <a href="#CreateGaussMySqlProxy__request_NodesWeight">NodesWeight</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateGaussMySqlProxy__p17841626125010">Read weight of the node.</p>
<p id="CreateGaussMySqlProxy__p19350173610508">If <strong id="CreateGaussMySqlProxy__b1944018309367">proxy_mode</strong> is set to <strong id="CreateGaussMySqlProxy__b6110134173614">readonly</strong>, you can assign weights only for read replicas.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateGaussMySqlProxy__request_NodesWeight"></a><a name="request_NodesWeight"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__request_NodesWeight" frame="border" border="1" rules="all"><caption><b>Table 4 </b>NodesWeight</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row16784132610507"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="CreateGaussMySqlProxy__p1478516261504">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="CreateGaussMySqlProxy__p1278562617507">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="CreateGaussMySqlProxy__p1785202615501">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="CreateGaussMySqlProxy__p1978582695014">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row187841026205016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateGaussMySqlProxy__p178582615012">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateGaussMySqlProxy__p1678532610508">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateGaussMySqlProxy__p117855262504">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateGaussMySqlProxy__p157861926185018">Node ID.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row1578416261504"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateGaussMySqlProxy__p1178662615018">weight</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateGaussMySqlProxy__p97861926195015">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateGaussMySqlProxy__p1178692612501">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateGaussMySqlProxy__p9786122685017">Weight assigned to the node. Value: <strong id="CreateGaussMySqlProxy__b129349173116">0</strong> to <strong id="CreateGaussMySqlProxy__b13293169173111">1000</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateGaussMySqlProxy__section10786172695018"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateGaussMySqlProxy__p197861326195017"><strong id="CreateGaussMySqlProxy__b17832915672348">Status code: 201</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__response_MysqlJobId" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row3786626135015"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="CreateGaussMySqlProxy__p16787182612504">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="CreateGaussMySqlProxy__p57871226185011">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="CreateGaussMySqlProxy__p97871226125019">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row15786152617502"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateGaussMySqlProxy__p7787122616506">job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateGaussMySqlProxy__p1078742614500">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateGaussMySqlProxy__p157876264501">Task ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="CreateGaussMySqlProxy__p12787122645012"><strong id="CreateGaussMySqlProxy__b47139171025246">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__response_MysqlErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row10788122675017"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="CreateGaussMySqlProxy__p57889261504">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="CreateGaussMySqlProxy__p3788626135019">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="CreateGaussMySqlProxy__p5788226105019">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row6788172616503"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateGaussMySqlProxy__p178832625015">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateGaussMySqlProxy__p37888262504">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateGaussMySqlProxy__p17883261509">Error code.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row67881026135011"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateGaussMySqlProxy__p9789192613508">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateGaussMySqlProxy__p157891726105015">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateGaussMySqlProxy__p2789226145015">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="CreateGaussMySqlProxy__p117894267501"><strong id="CreateGaussMySqlProxy__b14789126105011">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateGaussMySqlProxy__table19789112675012" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="CreateGaussMySqlProxy__row14789026125017"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="CreateGaussMySqlProxy__p13789326195012">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="CreateGaussMySqlProxy__p0790326195015">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="CreateGaussMySqlProxy__p1079012619504">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateGaussMySqlProxy__row1878912615503"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateGaussMySqlProxy__p57907265502">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateGaussMySqlProxy__p67901826125014">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateGaussMySqlProxy__p8790926195012">Error code.</p>
</td>
</tr>
<tr id="CreateGaussMySqlProxy__row878952612500"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateGaussMySqlProxy__p15790152635017">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateGaussMySqlProxy__p15790172610507">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateGaussMySqlProxy__p167901926145010">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateGaussMySqlProxy__section4790102614509"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="CreateGaussMySqlProxy__screen179112615503">
POST https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/43e4feaab48f11e89039fa163ebaa7e4br01/proxy
{
"flavor_ref" : "gaussdb.mysql.large.x86.4",
"node_num" : 2,
"proxy_name" : "gaussdb-proxy",
"proxy_mode" : "readonly",
"nodes_read_weight" : [ {
"id" : "45021bf73a244312a3f2af95092feeecno07",
"weight" : 50
}, {
"id" : "d78a65690cea4af5ad14585e110ff89bno07",
"weight" : 400
} ]
}</pre>
</div>
<div class="section" id="CreateGaussMySqlProxy__section5792172616507"><h4 class="sectiontitle">Example Response</h4><p id="CreateGaussMySqlProxy__p27927268507"><strong id="CreateGaussMySqlProxy__b7449979812348">Status code: 201</strong></p>
<p id="CreateGaussMySqlProxy__p9792122612506">Success.</p>
<pre class="screen" id="CreateGaussMySqlProxy__screen879219269502">{
"job_id" : "04efe8e2-9255-44ae-a98b-d87cae411890"
}</pre>
</div>
<div class="section" id="CreateGaussMySqlProxy__section4778540915440"><h4 class="sectiontitle">Status Code</h4><p id="CreateGaussMySqlProxy__p0723374409">For details, see <a href="gaussdb_10_0002.html">Status Codes</a>.</p>
</div>
<div class="section" id="CreateGaussMySqlProxy__section946032144017"><h4 class="sectiontitle">Error Code</h4><p id="CreateGaussMySqlProxy__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>