forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
348 lines
25 KiB
HTML
348 lines
25 KiB
HTML
<a name="cce_02_0359"></a><a name="cce_02_0359"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Cluster Certificates (Deprecated)</h1>
|
|
<div id="body0000001210413828"><div class="section" id="cce_02_0359__section1686113493165"><h4 class="sectiontitle">Function</h4><p id="cce_02_0359__p7667449104014">This API is used to obtain certificates of a specified cluster in form of <span class="keyword" id="cce_02_0359__keyword19361458183217">kubeconfig</span> file.</p>
|
|
</div>
|
|
<div class="section" id="cce_02_0359__section8403243161416"><h4 class="sectiontitle">URI</h4><p id="cce_02_0359__p1466714984012">GET /api/v3/projects/{project_id}/clusters/{cluster_id}/clustercert</p>
|
|
<p id="cce_02_0359__p1667949144018"><a href="#cce_02_0359__table2027961241820">Table 1</a> describes the parameters of this API.</p>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table2027961241820"></a><a name="table2027961241820"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table2027961241820" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Description</caption><thead align="left"><tr id="cce_02_0359__row122809120186"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.4.1.1"><p id="cce_02_0359__p91421758131813">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12%" id="mcps1.3.3.2.4.1.2"><p id="cce_02_0359__p101421758131816">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="68%" id="mcps1.3.3.2.4.1.3"><p id="cce_02_0359__p19143115818187">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row32801312121810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="cce_02_0359__p1714415589184">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.3.2.4.1.2 "><p id="cce_02_0359__p814518580186">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68%" headers="mcps1.3.3.2.4.1.3 "><p id="cce_02_0359__p5145175891811">Project ID. For details about how to obtain the project ID, see <a href="cce_02_0271.html">How to Obtain Parameters in the API URI</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row19993973274"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.4.1.1 "><p id="cce_02_0359__p1699317712718">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.3.2.4.1.2 "><p id="cce_02_0359__p89934722719">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68%" headers="mcps1.3.3.2.4.1.3 "><p id="cce_02_0359__p1149162812272">Cluster ID. For details about how to obtain the cluster ID, see <a href="cce_02_0271.html">How to Obtain Parameters in the API URI</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="section" id="cce_02_0359__section947084713911"><h4 class="sectiontitle">Request</h4><p id="cce_02_0359__p10314164115415"><strong id="cce_02_0359__b162259487412">Request parameters</strong>:</p>
|
|
<p id="cce_02_0359__p7105145203655"><a href="#cce_02_0359__table538113720514">Table 2</a> describes the request parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table538113720514"></a><a name="table538113720514"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table538113720514" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="cce_02_0359__en-us_topic_0102499074_row55001954122614"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="cce_02_0359__en-us_topic_0102499074_p115009545264">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.4.4.2.4.1.2"><p id="cce_02_0359__en-us_topic_0102499074_p175001547265">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="61%" id="mcps1.3.4.4.2.4.1.3"><p id="cce_02_0359__en-us_topic_0102499074_p16500154162611">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__en-us_topic_0102499074_row199801811203412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="cce_02_0359__en-us_topic_0102499074_p69808112344">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.4.2.4.1.2 "><p id="cce_02_0359__en-us_topic_0102499074_p3980111103414">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61%" headers="mcps1.3.4.4.2.4.1.3 "><p id="cce_02_0359__en-us_topic_0102499074_p169801011203416">Message body type (format). Possible values:</p>
|
|
<ul id="cce_02_0359__en-us_topic_0102499074_ul7385444163617"><li id="cce_02_0359__en-us_topic_0102499074_li18385114483612">application/json;charset=utf-8</li><li id="cce_02_0359__en-us_topic_0102499074_li3516132853714">application/json</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__en-us_topic_0102499074_row3500125412260"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="cce_02_0359__en-us_topic_0102499074_p105001654202618">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.4.4.2.4.1.2 "><p id="cce_02_0359__en-us_topic_0102499074_p20500954182618">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="61%" headers="mcps1.3.4.4.2.4.1.3 "><p id="cce_02_0359__p18824197845">Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details on how to obtain a user token, see <a href="cce_02_0004.html">API Usage Guidelines</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="cce_02_0359__p1611232212217"><strong id="cce_02_0359__b18637103252113">Example request</strong>:</p>
|
|
<p id="cce_02_0359__p10992402120">N/A</p>
|
|
</div>
|
|
<div class="section" id="cce_02_0359__section61819725020"><h4 class="sectiontitle">Response</h4><p id="cce_02_0359__p146697490405"><strong id="cce_02_0359__b267074913401">Response parameters</strong>:</p>
|
|
<p id="cce_02_0359__p967014911405"><a href="#cce_02_0359__table10794441185312">Table 3</a> describes the response parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table10794441185312"></a><a name="table10794441185312"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table10794441185312" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="cce_02_0359__row479704155313"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.4.2.4.1.1"><p id="cce_02_0359__p1479884175317">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="cce_02_0359__p1279917411533">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.5.4.2.4.1.3"><p id="cce_02_0359__p7800174116531">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row280113412539"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p12340185616220">kind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p1822894016484">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p722774012483">API type. The value is fixed at <strong id="cce_02_0359__b199262510521">Config</strong> and cannot be changed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row68061041135317"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p23406568227">apiVersion</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p622611406488">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p162251840154816">API version. The value is fixed at <strong id="cce_02_0359__b892253618533">v1</strong> and cannot be changed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row75713500227"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p1340145692215">preferences</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p1157220503223">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p145729504227">This field is not used currently and is left unspecified by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row1481016412536"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p1234075612226">clusters</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p8224204054815"><a href="#cce_02_0359__table2157957598">clusters</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p16223840194816">Cluster list.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row178131418531"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p15340175622213">users</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p222117402485"><a href="#cce_02_0359__table7846125310316">users</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p10221174014489">-</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row581674195314"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p1034085618224">contexts</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p19219104018481"><a href="#cce_02_0359__table1653965354">contexts</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p221974010482">Context list.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row16820841145310"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="cce_02_0359__p17340756192216">current-context</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="cce_02_0359__p20820114145010">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.5.4.2.4.1.3 "><p id="cce_02_0359__p9820191425019">Current context.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table2157957598"></a><a name="table2157957598"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table2157957598" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Data structure of the <strong id="cce_02_0359__b18592259401">clusters</strong> field</caption><thead align="left"><tr id="cce_02_0359__row1161175165911"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.2.4.1.1"><p id="cce_02_0359__p111637517599">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.6.2.4.1.2"><p id="cce_02_0359__p11651358593">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.6.2.4.1.3"><p id="cce_02_0359__p416645155912">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row616710518596"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.4.1.1 "><p id="cce_02_0359__p8749132512311">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.6.2.4.1.2 "><p id="cce_02_0359__p181688520596">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.6.2.4.1.3 "><p id="cce_02_0359__p69881827105120">Cluster name.</p>
|
|
<ul id="cce_02_0359__ul189480357510"><li id="cce_02_0359__li18948183545116">If the <strong id="cce_02_0359__b6196437211">publicIp</strong> parameter does not exist (that is, no EIP exists), there is only one cluster in the cluster list, and the value of this parameter is <strong id="cce_02_0359__b108621843">internalCluster</strong>.</li><li id="cce_02_0359__li199481435115112">If the <strong id="cce_02_0359__b84042716416">publicIp</strong> parameter exists (that is, the EIP exists), there is more than one cluster in the cluster list, and the value of this parameter is <strong id="cce_02_0359__b154115271644">externalCluster</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row1717013525912"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.2.4.1.1 "><p id="cce_02_0359__p1474962552312">cluster</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.6.2.4.1.2 "><p id="cce_02_0359__p1617116516594"><a href="#cce_02_0359__table519211353218">cluster</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.6.2.4.1.3 "><p id="cce_02_0359__p197819347238">Cluster information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table519211353218"></a><a name="table519211353218"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table519211353218" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Data structure of the <strong id="cce_02_0359__b1145219207614">cluster</strong> field</caption><thead align="left"><tr id="cce_02_0359__row321083518215"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.7.2.4.1.1"><p id="cce_02_0359__p12164356219">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.7.2.4.1.2"><p id="cce_02_0359__p17224123512111">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.7.2.4.1.3"><p id="cce_02_0359__p122293355211">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row3234635142115"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.7.2.4.1.1 "><p id="cce_02_0359__p464235772320">server</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.7.2.4.1.2 "><p id="cce_02_0359__p1015317134399">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.7.2.4.1.3 "><p id="cce_02_0359__p151548136395">Node IP address.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row16252935192119"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.7.2.4.1.1 "><p id="cce_02_0359__p166421257162313">certificate-authority-data</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.7.2.4.1.2 "><p id="cce_02_0359__p1022104625510">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.7.2.4.1.3 "><p id="cce_02_0359__p222016469555">Certificate authorization data.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table7846125310316"></a><a name="table7846125310316"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table7846125310316" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Data structure of the <strong id="cce_02_0359__b983611571571">users</strong> field</caption><thead align="left"><tr id="cce_02_0359__row18491253439"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.8.2.4.1.1"><p id="cce_02_0359__p1185213531136">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.8.2.4.1.2"><p id="cce_02_0359__p168531539311">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.8.2.4.1.3"><p id="cce_02_0359__p48557530314">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row48561353538"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.2.4.1.1 "><p id="cce_02_0359__p1081619137243">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.8.2.4.1.2 "><p id="cce_02_0359__p8681520149">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.8.2.4.1.3 "><p id="cce_02_0359__p2681320241">The value is fixed to <strong id="cce_02_0359__b56951334589">user</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row2086016536310"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.2.4.1.1 "><p id="cce_02_0359__p1481615137243">user</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.8.2.4.1.2 "><p id="cce_02_0359__p26718205410"><a href="#cce_02_0359__table205311581434">user</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.8.2.4.1.3 "><p id="cce_02_0359__p266920549">Stores the certificate information and ClientKey information of a specified user.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table205311581434"></a><a name="table205311581434"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table205311581434" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Data structure of the <strong id="cce_02_0359__b4855142218124">user</strong> field</caption><thead align="left"><tr id="cce_02_0359__row14571558933"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.9.2.4.1.1"><p id="cce_02_0359__p1558125817311">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.9.2.4.1.2"><p id="cce_02_0359__p116015581134">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.9.2.4.1.3"><p id="cce_02_0359__p12611058739">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row126110585314"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.9.2.4.1.1 "><p id="cce_02_0359__p4958942122415">client-certificate-data</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.9.2.4.1.2 "><p id="cce_02_0359__p69201306371">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.9.2.4.1.3 "><p id="cce_02_0359__p6155132833316">Client certificate.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row1266155814310"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.9.2.4.1.1 "><p id="cce_02_0359__p169582420243">client-key-data</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.9.2.4.1.2 "><p id="cce_02_0359__p1890215353719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.9.2.4.1.3 "><p id="cce_02_0359__p16973125711346">Contains PEM encoding data from the TLS client key file.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table1653965354"></a><a name="table1653965354"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table1653965354" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Data structure of the <strong id="cce_02_0359__b1772851891116">contexts</strong> field</caption><thead align="left"><tr id="cce_02_0359__row1654419517516"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.10.2.4.1.1"><p id="cce_02_0359__p754585755">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.10.2.4.1.2"><p id="cce_02_0359__p3546952053">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.10.2.4.1.3"><p id="cce_02_0359__p11548135655">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row25491955514"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.10.2.4.1.1 "><p id="cce_02_0359__p1115011101251">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.10.2.4.1.2 "><p id="cce_02_0359__p12552755513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.10.2.4.1.3 "><p id="cce_02_0359__p55125122395">Context name.</p>
|
|
<ul id="cce_02_0359__ul157991814135715"><li id="cce_02_0359__li1799191455713">If the <strong id="cce_02_0359__b16909127171319">publicIp</strong> parameter does not exist (that is, no EIP exists), there is only one cluster in the cluster list, and the value of this parameter is <strong id="cce_02_0359__b19104701314">internal</strong>.</li><li id="cce_02_0359__li679961410570">If the <strong id="cce_02_0359__b193515299133">publicIp</strong> parameter exists (that is, the EIP exists), there is more than one cluster in the cluster list, and the value of this parameter is <strong id="cce_02_0359__b1538129121311">external</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row125534519519"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.10.2.4.1.1 "><p id="cce_02_0359__p19150610112518">context</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.10.2.4.1.2 "><p id="cce_02_0359__p12556559518"><a href="#cce_02_0359__table47913919518">context</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.10.2.4.1.3 "><p id="cce_02_0359__p107081923192519">Context information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__table47913919518"></a><a name="table47913919518"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__table47913919518" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Data structure of the <strong id="cce_02_0359__b14127110161415">context</strong> field</caption><thead align="left"><tr id="cce_02_0359__row2851791957"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.11.2.4.1.1"><p id="cce_02_0359__p387896517">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.11.2.4.1.2"><p id="cce_02_0359__p1891591554">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.11.2.4.1.3"><p id="cce_02_0359__p119112912513">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__row793396511"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.4.1.1 "><p id="cce_02_0359__p1997111301250">cluster</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.11.2.4.1.2 "><p id="cce_02_0359__p2951292054">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.11.2.4.1.3 "><p id="cce_02_0359__p879115407257">Cluster context.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_02_0359__row15979918515"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.4.1.1 "><p id="cce_02_0359__p15971153052514">user</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.11.2.4.1.2 "><p id="cce_02_0359__p9100891155">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.11.2.4.1.3 "><p id="cce_02_0359__p1791940192516">User context.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="cce_02_0359__en-us_topic_0079614900_p24465425"><strong id="cce_02_0359__b1618018910150">Response example</strong>:</p>
|
|
<pre class="screen" id="cce_02_0359__screen197821555132619">{
|
|
"kind": "Config",
|
|
"apiVersion": "v1",
|
|
"preferences": {},
|
|
"clusters": [
|
|
{
|
|
"name": "internalCluster",
|
|
"cluster": {
|
|
"server": "https://192.168.1.7:5443",
|
|
"certificate-authority-data": ""
|
|
}
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"name": "user",
|
|
"user": {
|
|
"client-certificate-data": "",
|
|
"client-key-data": ""
|
|
}
|
|
}
|
|
],
|
|
"contexts": [
|
|
{
|
|
"name": "internal",
|
|
"context": {
|
|
"cluster": "internalCluster",
|
|
"user": "user"
|
|
}
|
|
}
|
|
],
|
|
"current-context": "internal"
|
|
}</pre>
|
|
<div class="section" id="cce_02_0359__s50f1049a6a4d404c895cf636eb8f3bf1"><h4 class="sectiontitle">Status Code</h4><p id="cce_02_0359__en-us_topic_0079614900_p21869221"><a href="#cce_02_0359__en-us_topic_0079614900_table46761928">Table 10</a> describes the status code of this API.</p>
|
|
|
|
<div class="tablenoborder"><a name="cce_02_0359__en-us_topic_0079614900_table46761928"></a><a name="en-us_topic_0079614900_table46761928"></a><table cellpadding="4" cellspacing="0" summary="" id="cce_02_0359__en-us_topic_0079614900_table46761928" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Status code</caption><thead align="left"><tr id="cce_02_0359__en-us_topic_0079614900_row33254664"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.14.3.2.3.1.1"><p id="cce_02_0359__p55616028205955">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.14.3.2.3.1.2"><p id="cce_02_0359__p8604418205955">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_02_0359__en-us_topic_0079614900_row41084259"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.14.3.2.3.1.1 "><p id="cce_02_0359__en-us_topic_0079614900_p39490674">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.14.3.2.3.1.2 "><p id="cce_02_0359__en-us_topic_0079614900_p44628050">Certificates of the specified cluster are successfully obtained.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="cce_02_0359__p347213715512">For details about error status codes, see <a href="cce_02_0084.html">Status Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_02_0092.html">Cluster Management</a></div>
|
|
</div>
|
|
</div>
|
|
|