forked from docs/doc-exports
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>
131 lines
10 KiB
HTML
131 lines
10 KiB
HTML
<a name="UpdateClusterGroupAssociatedClusters"></a><a name="UpdateClusterGroupAssociatedClusters"></a>
|
|
|
|
<h1 class="topictitle1">Adding Clusters to a Fleet</h1>
|
|
<div id="body47421718161010"><div class="section" id="UpdateClusterGroupAssociatedClusters__section874312182103"><h4 class="sectiontitle">Function</h4><p id="UpdateClusterGroupAssociatedClusters__p1274319180101">This API is used to add clusters to a fleet. One or more clusters can be added at the same time. This API cannot be used to remove all or some clusters from a fleet.</p>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section16744418131013"><h4 class="sectiontitle">URI</h4><p id="UpdateClusterGroupAssociatedClusters__p374571818103">PUT /v1/clustergroups/{clustergroupid}/associatedclusters</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedClusters__table774681811019" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameter</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedClusters__row1274581861016"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdateClusterGroupAssociatedClusters__p97470180100">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdateClusterGroupAssociatedClusters__p1747181810106">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdateClusterGroupAssociatedClusters__p474871815107">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdateClusterGroupAssociatedClusters__p9749201851013">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedClusters__row14746131881019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p07493182106">clustergroupid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p6750818101017">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateClusterGroupAssociatedClusters__p137511218101019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateClusterGroupAssociatedClusters__p1875121871010">Fleet ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section187527183103"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedClusters__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedClusters__row3753218181010"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdateClusterGroupAssociatedClusters__p1175491841016">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdateClusterGroupAssociatedClusters__p11755111814105">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdateClusterGroupAssociatedClusters__p5756181881019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdateClusterGroupAssociatedClusters__p137561718131016">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedClusters__row10753161819109"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p1875717189109">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p1375817183104">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateClusterGroupAssociatedClusters__p575871811108">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateClusterGroupAssociatedClusters__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="UpdateClusterGroupAssociatedClusters__row2953132213218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p20110172212422">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p411018227429">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateClusterGroupAssociatedClusters__p7110152218429">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateClusterGroupAssociatedClusters__p12110172216422">Message body type (format). Only <strong id="UpdateClusterGroupAssociatedClusters__b179225747341722">application/json</strong> is supported.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedClusters__request_UpdateClusterGroupAssociatedClustersRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameter in the request body</caption><thead align="left"><tr id="UpdateClusterGroupAssociatedClusters__row1676131871014"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateClusterGroupAssociatedClusters__p2763718111011">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateClusterGroupAssociatedClusters__p117631218131013">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateClusterGroupAssociatedClusters__p77646188106">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateClusterGroupAssociatedClusters__p10765131811109">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedClusters__row1876120185103"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p17661418201018">clusterIds</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p1676719189109">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateClusterGroupAssociatedClusters__p976814186109">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateClusterGroupAssociatedClusters__p14768718161013">Cluster IDs for updating information about clusters associated with a fleet</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section187696187102"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateClusterGroupAssociatedClusters__p8770181811100">None</p>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section18770418151017"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateClusterGroupAssociatedClusters__p07711818171017">Updating clusters in a fleet</p>
|
|
<pre class="screen" id="UpdateClusterGroupAssociatedClusters__screen477211841020">{
|
|
"clusterids" : [ "xxxx-xxxx-xxxx" ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section5777818141015"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateClusterGroupAssociatedClusters__p1777831819105">None</p>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section9778101851011"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateClusterGroupAssociatedClusters__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateClusterGroupAssociatedClusters__row178091818100"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdateClusterGroupAssociatedClusters__p19781918151011">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdateClusterGroupAssociatedClusters__p0782151812108">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateClusterGroupAssociatedClusters__row16780171801018"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p17783101819106">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p117833184101">Clusters have been added to the fleet.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedClusters__row1278014185103"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p878418185103">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p178571816101">Client request error. The server could not execute the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateClusterGroupAssociatedClusters__row278031815109"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateClusterGroupAssociatedClusters__p878517180102">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateClusterGroupAssociatedClusters__p2786318121019">Internal server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateClusterGroupAssociatedClusters__section07861118161018"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateClusterGroupAssociatedClusters__p17789518131010">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>
|
|
|