Files
doc-exports/docs/ucs/api-ref/CreateFederationCert.html
qiujiandong1 535e30e292 UCS API initial update 20250523 version
Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2026-02-23 09:12:31 +00:00

405 lines
28 KiB
HTML

<a name="CreateFederationCert"></a><a name="CreateFederationCert"></a>
<h1 class="topictitle1">Creating a Federation Connection and Downloading kubeconfig</h1>
<div id="body6388181881013"><div class="section" id="CreateFederationCert__section123889185102"><h4 class="sectiontitle">Function</h4><p id="CreateFederationCert__p638918181106">This API is used to create a VPC endpoint for connecting to the federation API server and downloading kubeconfig of the federation API server after federation is enabled for a fleet.</p>
</div>
<div class="section" id="CreateFederationCert__section1038915189108"><h4 class="sectiontitle">URI</h4><p id="CreateFederationCert__p739020187104">POST /v1/clustergroups/{clustergroupid}/cert</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__table13392111810106" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameter</caption><thead align="left"><tr id="CreateFederationCert__row1839171871018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreateFederationCert__p1392191831010">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreateFederationCert__p939331815104">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreateFederationCert__p6394118151012">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreateFederationCert__p14395118121010">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row239111810105"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateFederationCert__p123952189103">clustergroupid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateFederationCert__p1739611182102">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateFederationCert__p23961018171020">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateFederationCert__p19397131881017">Fleet ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateFederationCert__section17398131816101"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="CreateFederationCert__row20398618151019"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreateFederationCert__p1940021815106">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreateFederationCert__p040114185100">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreateFederationCert__p18401171813104">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreateFederationCert__p3402101819103">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row83991218101017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateFederationCert__p194031518121019">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateFederationCert__p1740451813106">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateFederationCert__p104051318161020">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateFederationCert__p1266617331861">Identity authentication information. 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.</p>
</td>
</tr>
<tr id="CreateFederationCert__row1865141020222"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateFederationCert__p20110172212422">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateFederationCert__p411018227429">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateFederationCert__p7110152218429">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateFederationCert__p12110172216422">Message body type (format). Only <strong id="CreateFederationCert__b177935142241725">application/json</strong> is supported.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__request_CreateFederationCertRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters in the request body</caption><thead align="left"><tr id="CreateFederationCert__row1540761861013"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateFederationCert__p8409141817101">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateFederationCert__p1640971814108">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateFederationCert__p1941341817108">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateFederationCert__p18414201811012">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row16407101812101"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateFederationCert__p1541521814104">projectID</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateFederationCert__p15416171817108">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateFederationCert__p941821810103">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateFederationCert__p1141971816103">Project ID</p>
</td>
</tr>
<tr id="CreateFederationCert__row1640714183108"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateFederationCert__p841991851011">vpcID</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateFederationCert__p1942014181108">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateFederationCert__p842101881020">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateFederationCert__p5421201810100">VPC ID, which must belong to the project specified by <strong id="CreateFederationCert__b47744917237">projectID</strong>.</p>
</td>
</tr>
<tr id="CreateFederationCert__row14072018111010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateFederationCert__p13422201819105">subnetID</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateFederationCert__p1342311812101">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateFederationCert__p042314183107">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateFederationCert__p144241818181013">Subnet ID, which must belong to the VPC specified by <strong id="CreateFederationCert__b55091854192317">vpcID</strong>.</p>
</td>
</tr>
<tr id="CreateFederationCert__row5407121819105"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateFederationCert__p2042514181105">duration</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateFederationCert__p642510182103">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateFederationCert__p142631813105">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateFederationCert__p742711181104">Validity period of the certificate in kubeconfig, in days.</p>
<p id="CreateFederationCert__p342719187103">Minimum value: <strong id="CreateFederationCert__b10018022417">1</strong></p>
<p id="CreateFederationCert__p44281818201011">Maximum value: <strong id="CreateFederationCert__b692251520246">1825</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateFederationCert__section122975146614"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateFederationCert__p102973141265"><strong id="CreateFederationCert__b55362608465417">Status code: 201</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_KubeConfig" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameters in the response body</caption><thead align="left"><tr id="CreateFederationCert__row429716149617"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="CreateFederationCert__p1929713141569">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="CreateFederationCert__p172976149611">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="CreateFederationCert__p1429818141963">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row182972140616"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateFederationCert__p15298814962">kind</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateFederationCert__p1729881417619">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateFederationCert__p162983141462">API type. The value is fixed at <strong id="CreateFederationCert__b147113917544">Config</strong> and cannot be changed.</p>
</td>
</tr>
<tr id="CreateFederationCert__row229712141666"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateFederationCert__p1329891411612">apiVersion</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateFederationCert__p329817148619">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateFederationCert__p19298171415616">API version. The value is fixed at <strong id="CreateFederationCert__b156221841115411">v1</strong> and cannot be changed.</p>
</td>
</tr>
<tr id="CreateFederationCert__row429717144617"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateFederationCert__p129818144618">clusters</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateFederationCert__p82981141661">Array of <a href="#CreateFederationCert__response_NamedCluster">NamedCluster</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateFederationCert__p12298814963">Cluster list</p>
</td>
</tr>
<tr id="CreateFederationCert__row7297111420618"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateFederationCert__p202981114564">users</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateFederationCert__p2298181419618">Array of <a href="#CreateFederationCert__response_NamedAuthInfo">NamedAuthInfo</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateFederationCert__p1298314265">Certificate information and client key information of specified users</p>
</td>
</tr>
<tr id="CreateFederationCert__row142971514365"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateFederationCert__p729861411611">contexts</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateFederationCert__p329815141619">Array of <a href="#CreateFederationCert__response_NamedContext">NamedContext</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateFederationCert__p7298181414618">Context list</p>
</td>
</tr>
<tr id="CreateFederationCert__row13297141412614"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateFederationCert__p829812142619">current-context</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateFederationCert__p72982145615">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateFederationCert__p9299014467">Current context</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateFederationCert__response_NamedCluster"></a><a name="response_NamedCluster"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_NamedCluster" frame="border" border="1" rules="all"><caption><b>Table 5 </b>NamedCluster</caption><thead align="left"><tr id="CreateFederationCert__row129913141616"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="CreateFederationCert__p172999143618">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="CreateFederationCert__p92996141661">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="CreateFederationCert__p142991114867">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row1829919141615"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="CreateFederationCert__p172992141765">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="CreateFederationCert__p14299214064">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="CreateFederationCert__p1129914141465">Cluster name</p>
</td>
</tr>
<tr id="CreateFederationCert__row1929920148610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="CreateFederationCert__p1429921414612">cluster</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="CreateFederationCert__p92998141065"><a href="#CreateFederationCert__response_ClusterCert">ClusterCert</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="CreateFederationCert__p182994144613">Cluster information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateFederationCert__response_ClusterCert"></a><a name="response_ClusterCert"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_ClusterCert" frame="border" border="1" rules="all"><caption><b>Table 6 </b>ClusterCert</caption><thead align="left"><tr id="CreateFederationCert__row230013141361"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="CreateFederationCert__p123003146613">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="CreateFederationCert__p530016141662">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="CreateFederationCert__p153005143610">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row1130011415618"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateFederationCert__p1630014141169">server</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateFederationCert__p14300171412618">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateFederationCert__p14300131415615">Server address</p>
</td>
</tr>
<tr id="CreateFederationCert__row430015145613"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateFederationCert__p5300814762">certificate-authority-data</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateFederationCert__p53004141962">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateFederationCert__p63008142619">Certificate authorization data</p>
</td>
</tr>
<tr id="CreateFederationCert__row1230013141267"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="CreateFederationCert__p133003148618">insecure-skip-tls-verify</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="CreateFederationCert__p43006143612">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="CreateFederationCert__p630018143615">Whether to skip server certificate verification</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateFederationCert__response_NamedAuthInfo"></a><a name="response_NamedAuthInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_NamedAuthInfo" frame="border" border="1" rules="all"><caption><b>Table 7 </b>NamedAuthInfo</caption><thead align="left"><tr id="CreateFederationCert__row1230116141461"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="CreateFederationCert__p730113141063">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="CreateFederationCert__p630181413610">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="CreateFederationCert__p43011714366">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row630112148616"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="CreateFederationCert__p5301131418612">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="CreateFederationCert__p530101417615">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="CreateFederationCert__p03021314562">Username</p>
</td>
</tr>
<tr id="CreateFederationCert__row1130161420617"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="CreateFederationCert__p730291414611">user</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="CreateFederationCert__p5302121413614"><a href="#CreateFederationCert__response_AuthInfo">AuthInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="CreateFederationCert__p173021314266">Certificate information and client key information of a specified user</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateFederationCert__response_AuthInfo"></a><a name="response_AuthInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_AuthInfo" frame="border" border="1" rules="all"><caption><b>Table 8 </b>AuthInfo</caption><thead align="left"><tr id="CreateFederationCert__row1430215149610"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="CreateFederationCert__p1430214141764">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="CreateFederationCert__p12303514467">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="CreateFederationCert__p12303151410614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row123023147615"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateFederationCert__p12303161411613">client-certificate-data</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateFederationCert__p19303181418618">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateFederationCert__p1530314143618">Client certificate</p>
</td>
</tr>
<tr id="CreateFederationCert__row14302314563"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateFederationCert__p1530321417619">client-key-data</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateFederationCert__p193034141617">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateFederationCert__p93031914567">PEM encoding data from the TLS client key file</p>
</td>
</tr>
<tr id="CreateFederationCert__row1030220145611"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="CreateFederationCert__p1030311148616">token</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="CreateFederationCert__p9303191415617">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="CreateFederationCert__p1630314144619">Authentication token</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateFederationCert__response_NamedContext"></a><a name="response_NamedContext"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_NamedContext" frame="border" border="1" rules="all"><caption><b>Table 9 </b>NamedContext</caption><thead align="left"><tr id="CreateFederationCert__row20303414466"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p id="CreateFederationCert__p133041143610">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p id="CreateFederationCert__p330481414620">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p id="CreateFederationCert__p130412141369">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row11303814169"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="CreateFederationCert__p03049145615">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="CreateFederationCert__p163041914764">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="CreateFederationCert__p13304414463">Context name</p>
</td>
</tr>
<tr id="CreateFederationCert__row43032143610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="CreateFederationCert__p830411148615">context</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="CreateFederationCert__p730414144620"><a href="#CreateFederationCert__response_Context">Context</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="CreateFederationCert__p1530401413611">Context information</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateFederationCert__response_Context"></a><a name="response_Context"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__response_Context" frame="border" border="1" rules="all"><caption><b>Table 10 </b>Context</caption><thead align="left"><tr id="CreateFederationCert__row7304114467"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="CreateFederationCert__p230414141163">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="CreateFederationCert__p1530481412615">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="CreateFederationCert__p83042141465">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row12304141420611"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateFederationCert__p23052144616">cluster</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateFederationCert__p193056141164">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateFederationCert__p530515141364">Cluster context</p>
</td>
</tr>
<tr id="CreateFederationCert__row103045141960"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="CreateFederationCert__p1630516147617">user</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="CreateFederationCert__p123050141963">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="CreateFederationCert__p3305114164">User context</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateFederationCert__section183057141865"><h4 class="sectiontitle">Example Requests</h4><p id="CreateFederationCert__p730513145616">Creating a federation connection and downloading kubeconfig</p>
<pre class="screen" id="CreateFederationCert__screen1830551419616">{
"projectID" : "08d44be1ef00d22e2f6fc0061f54a2f1",
"vpcID" : "11c9fe72-5a90-4295-bcfe-774726fb9066",
"subnetID" : "0de91d89-1e06-4e24-b371-35d5d3d3779b",
"duration" : 30
}</pre>
<p id="CreateFederationCert__p593313327329">Example Responses</p>
<p id="CreateFederationCert__p15305714963"><strong id="CreateFederationCert__b203173119165417">Status code: 201</strong></p>
<p id="CreateFederationCert__p143053141560">kubeconfig file</p>
<pre class="screen" id="CreateFederationCert__screen10306171411617">{
"kind" : "Config",
"apiVersion" : "v1",
"clusters" : [ {
"name" : "cluster-demo",
"cluster" : {
"server" : "https://ip:port",
"certificate-authority-data" : ""
}
} ],
"users" : [ {
"name" : "user",
"user" : {
"client-certificate-data" : "",
"client-key-data" : "",
"token" : ""
}
} ],
"contexts" : [ {
"name" : "demo",
"context" : {
"cluster" : "cluster-demo",
"user" : "user"
}
} ],
"current-context" : "demo"
}</pre>
</div>
<div class="section" id="CreateFederationCert__section18442218121013"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateFederationCert__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateFederationCert__row144449187100"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.6.2.1.3.1.1"><p id="CreateFederationCert__p2044681831012">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.6.2.1.3.1.2"><p id="CreateFederationCert__p194471318181011">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateFederationCert__row944571810101"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.6.2.1.3.1.1 "><p id="CreateFederationCert__p1745010183102">201</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.6.2.1.3.1.2 "><p id="CreateFederationCert__p645111811017">kubeconfig file</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateFederationCert__section0451101818102"><h4 class="sectiontitle">Error Codes</h4><p id="CreateFederationCert__p1045212183102">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000001.html">Fleets</a></div>
</div>
</div>