doc-exports/docs/css/api-ref/css_03_0110.html
Zheng, Xiu 99a2d77599 css api 23.5.1 20240520
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>
2024-06-07 17:47:08 +00:00

138 lines
9.4 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__section331425911203"><h4 class="sectiontitle">Function</h4><p id="css_03_0110__p16316125913203">This API is used to enable the VPC endpoint service.</p>
</div>
<div class="section" id="css_03_0110__section03171259182014"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0110__p9318185992017">You can debug this API in . Automatic authentication is supported.</p>
</div>
<div class="section" id="css_03_0110__section1032010590203"><h4 class="sectiontitle">URI</h4><p id="css_03_0110__p932065911206">POST /v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/open</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0110__table193231759172016" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0110__row193223592207"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0110__p232365919201">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__p20324659142014">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__p153272059102015">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__p932711592209">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row4322115922020"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0110__p1432865932013">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__p1032865942015">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0110__p18329135917204">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0110__p7330259132018">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__row932275911202"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0110__p11330659192010">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__p5330125913203">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0110__p1233135962012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0110__p18331165982014">ID of the cluster that you want to enable the VPC endpoint</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0110__section16336115982012"><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 parameter</caption><thead align="left"><tr id="css_03_0110__row133379591208"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0110__p14338459132017">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__p2339195910203">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__p133391659112018">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__p1034118591205">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row9337185915207"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0110__p434225922010">endpointWithDnsName</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0110__p43422596208">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0110__p5343559132020">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0110__p10344959152013">Indicates whether to enable the private domain name.</p>
<ul id="css_03_0110__ul1734485919205"><li id="css_03_0110__li4344759112018"><strong id="css_03_0110__b813856153514">true</strong>: enabled</li><li id="css_03_0110__li13449593208"><strong id="css_03_0110__b26741812183514">false</strong>: disabled</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0110__section1334517592203"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0110__p103465594201"><strong id="css_03_0110__b1522139196113032">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 parameter</caption><thead align="left"><tr id="css_03_0110__row6347155915201"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="css_03_0110__p33484593205">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__p3349159202012">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__p15349105910209">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row13347859142015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="css_03_0110__p935045952018">action</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="css_03_0110__p8350145922015">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="css_03_0110__p18351175972011">Operation. The fixed value is <strong id="css_03_0110__b14415627153518">createVpcepservice</strong>, indicating that the VPC endpoint is enabled.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0110__section1635175972010"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0110__screen173521259122013">{
"endpointWithDnsName" : true
}</pre>
</div>
<div class="section" id="css_03_0110__section835625972020"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0110__p23561159192014"><strong id="css_03_0110__b1315299552113032">Status code: 200</strong></p>
<p id="css_03_0110__p7357185992013">The request is processed successfully.</p>
<pre class="screen" id="css_03_0110__screen15358559112020">{
"action" : "createVpcepservice"
}</pre>
</div>
<div class="section" id="css_03_0110__section10358859102019"><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__row12360859132014"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0110__p123611059182011">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__p43631759172010">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0110__row43601859162011"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p17363759142016">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p13363185913207">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0110__row336045917205"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p1636425932011">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p17370175916208">Invalid request.</p>
<p id="css_03_0110__p1937012599204">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0110__row1836012595206"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p20370659142010">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p83713590204">The request cannot be processed due to a conflict.</p>
<p id="css_03_0110__p2371125919203">This status code indicates that the resource that the client attempts to create already exists, or the request fails to be processed because of the update of the conflict request.</p>
</td>
</tr>
<tr id="css_03_0110__row036110596208"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0110__p113711593209">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0110__p737215919202">The server does not meet one of the requirements that the requester puts on 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>