doc-exports/docs/css/api-ref/css_03_0110.html
Zheng, Xiu bf0cbd66f9 CSS API 22.4.1 Version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2023-04-12 00:11:02 +00:00

136 lines
8.8 KiB
HTML

<a name="css_03_0110"></a><a name="css_03_0110"></a>
<h1 class="topictitle1">Enabling the VPC Endpoint Service</h1>
<div id="body0000001526730569"><div class="section" id="css_03_0110__section133911300277"><h4 class="sectiontitle">Function</h4><p id="css_03_0110__p7392130172713">This API is used to enable the VPC endpoint service.</p>
</div>
<p id="css_03_0110__p239317072715"></p>
<div class="section" id="css_03_0110__section1239413012276"><h4 class="sectiontitle">URI</h4><p id="css_03_0110__p439550142713">POST /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/open</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0110__table1439780182715" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0110__row53964015274"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0110__p1039840172715">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="css_03_0110__p1039814052711">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="css_03_0110__p8399140142712">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="css_03_0110__p440017012272">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row103969011271"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0110__p4401802278">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0110__p740220017278">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0110__p104025042720">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0110__p2040310152719">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="css_03_0110__row1239619012716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0110__p640350152711">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0110__p8404808273">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0110__p114048062716">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0110__p1740514092716">ID of the cluster whose VPC endpoint you want to enable.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0110__section194059018271"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0110__request_StartVpecpReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="css_03_0110__row19406507276"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0110__p440712092717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="css_03_0110__p1540819012710">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="css_03_0110__p164082022714">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="css_03_0110__p1340920122710">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row940617018274"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0110__p1040918072718">endpointWithDnsName</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0110__p1641080132715">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0110__p144101505272">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0110__p144118092713">Enable the VPC endpoint.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0110__section1941118032714"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0110__p164128062712"><strong id="css_03_0110__b1641210132711">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0110__response_StartVpecpResponseBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="css_03_0110__row44135014272"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="css_03_0110__p44153017278">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="css_03_0110__p154154072714">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="css_03_0110__p15415403276">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row041313082719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="css_03_0110__p641617072713">action</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="css_03_0110__p12416109274">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="css_03_0110__p341711011272">Operations. The fixed value is <strong id="css_03_0110__b141719082715">createVpcepservice</strong>, indicating that the VPC endpoint is enabled.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0110__section5417200102719"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="css_03_0110__screen174182018277">{
"endpointWithDnsName" : true
}</pre>
</div>
<div class="section" id="css_03_0110__section641811013278"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0110__p10419402278"><strong id="css_03_0110__b1041911013277">Status code: 200</strong></p>
<p id="css_03_0110__p19419100172717">Request succeeded.</p>
<pre class="screen" id="css_03_0110__screen1441910062720">{
"action" : "createVpcepservice"
}</pre>
</div>
<div class="section" id="css_03_0110__section144201408276"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0110__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0110__row04219012276"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0110__p842112013279">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="css_03_0110__p7422160122716">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row7421130182719"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p242212092710">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p042315011277">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0110__row242100132716"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p342320162719">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p18424904278">Invalid request.</p>
<p id="css_03_0110__p10424140192713">Modify the request before retry.</p>
</td>
</tr>
<tr id="css_03_0110__row242119062714"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p242420112712">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p104251032716">The request could not be completed due to a conflict with the current state of the resource.</p>
<p id="css_03_0110__p342512015279">The resource that the client attempts to create already exists, or the update request fails to be processed because of a conflict.</p>
</td>
</tr>
<tr id="css_03_0110__row1642111011274"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p64256019274">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p1142614019270">The server did not meet one of the preconditions contained in the request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0109.html">VPC Endpoint</a></div>
</div>
</div>