forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
126 lines
10 KiB
HTML
126 lines
10 KiB
HTML
<a name="EN-US_TOPIC_0229339179"></a><a name="EN-US_TOPIC_0229339179"></a>
|
|
|
|
<h1 class="topictitle1">Modifying Attributes of a <span id="text1890392583914">BMS</span><span id="text164541929163913"></span> NIC</h1>
|
|
<div id="body1583740817489"><div class="section" id="EN-US_TOPIC_0229339179__section179015181014"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0229339179__p14701414181114">This API is used to specify whether to delete a NIC when the <span id="EN-US_TOPIC_0229339179__text12885145253918">BMS</span><span id="EN-US_TOPIC_0229339179__text187888564398"></span> is deleted or the NIC is detached.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0229339179__section1366133801220"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0229339179__p19877134415127">PUT /v1/{project_id}/baremetalservers/{server_id}/os-interface/{port_id}</p>
|
|
<p id="EN-US_TOPIC_0229339179__p1118116791317"><a href="#EN-US_TOPIC_0229339179__table247714319133">Table 1</a> lists the parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0229339179__table247714319133"></a><a name="table247714319133"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0229339179__table247714319133" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0229339179__row12477343131313"><th align="left" class="cellrowborder" valign="top" width="25.842584258425845%" id="mcps1.3.2.4.2.4.1.1"><p id="EN-US_TOPIC_0229339179__p10477124314131">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.16251625162516%" id="mcps1.3.2.4.2.4.1.2"><p id="EN-US_TOPIC_0229339179__p1547754311317">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.99489948994899%" id="mcps1.3.2.4.2.4.1.3"><p id="EN-US_TOPIC_0229339179__p747719435133">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0229339179__row64771543101317"><td class="cellrowborder" valign="top" width="25.842584258425845%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0229339179__p20899598">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.16251625162516%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0229339179__p15145867">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.99489948994899%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0229339179__p37593705">Specifies the project ID.</p>
|
|
<p id="EN-US_TOPIC_0229339179__p652825144113">For details about how to obtain the project ID, see <a href="en-us_topic_0171277624.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0229339179__row8477174321316"><td class="cellrowborder" valign="top" width="25.842584258425845%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0229339179__p55594619">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.16251625162516%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0229339179__p6870268">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.99489948994899%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0229339179__p19620867">Specifies the <span id="EN-US_TOPIC_0229339179__text1387942124217">BMS</span><span id="EN-US_TOPIC_0229339179__text128715429422"></span> ID.</p>
|
|
<p id="EN-US_TOPIC_0229339179__p29791113277">You can obtain the BMS ID from the <span id="EN-US_TOPIC_0229339179__en-us_topic_0113746489_text013014803615">BMS</span><span id="EN-US_TOPIC_0229339179__en-us_topic_0113746489_text10131448133612"></span> console or by calling the <a href="en-us_topic_0053158693.html">Querying BMSs (Native OpenStack API)</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0229339179__row194771943101310"><td class="cellrowborder" valign="top" width="25.842584258425845%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0229339179__p1747764318132">port_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.16251625162516%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0229339179__p14477144351313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.99489948994899%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0229339179__p1047716434133">Specifies the <span id="EN-US_TOPIC_0229339179__text52241419164012">BMS</span><span id="EN-US_TOPIC_0229339179__text11128192874017"></span> NIC ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0229339179__section16296871517"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0229339179__ul787317209158"><li id="EN-US_TOPIC_0229339179__li887372061515">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0229339179__table223945416158" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0229339179__row423925451512"><th align="left" class="cellrowborder" valign="top" width="21.89%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="EN-US_TOPIC_0229339179__p41033878">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.1%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="EN-US_TOPIC_0229339179__p35409804">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.029999999999998%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="EN-US_TOPIC_0229339179__p49621912">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37.980000000000004%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="EN-US_TOPIC_0229339179__p59951903">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0229339179__row924075415152"><td class="cellrowborder" valign="top" width="21.89%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="EN-US_TOPIC_0229339179__p19388612">interface_attachment</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.1%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="EN-US_TOPIC_0229339179__p26973745">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.029999999999998%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="EN-US_TOPIC_0229339179__p37389755">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.980000000000004%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="EN-US_TOPIC_0229339179__p10932885">Specifies the attribute to be modified. For details, see <a href="#EN-US_TOPIC_0229339179__table0304200101710">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0229339179__table0304200101710"></a><a name="table0304200101710"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0229339179__table0304200101710" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong id="EN-US_TOPIC_0229339179__b3746431154510">interface_attachment</strong> field data structure description</caption><thead align="left"><tr id="EN-US_TOPIC_0229339179__row33045012173"><th align="left" class="cellrowborder" valign="top" width="21.77%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="EN-US_TOPIC_0229339179__p460712511178">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.48%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="EN-US_TOPIC_0229339179__p196075551716">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.77%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="EN-US_TOPIC_0229339179__p66072052177">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37.980000000000004%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="EN-US_TOPIC_0229339179__p156071853175">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0229339179__row1130470101710"><td class="cellrowborder" valign="top" width="21.77%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="EN-US_TOPIC_0229339179__p1530411081716">delete_on_termination</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="EN-US_TOPIC_0229339179__p1030400111712">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.77%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="EN-US_TOPIC_0229339179__p1530413019172">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.980000000000004%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="EN-US_TOPIC_0229339179__p8304100121712">Specifies whether to delete a NIC when the <span id="EN-US_TOPIC_0229339179__text1426117360404">BMS</span><span id="EN-US_TOPIC_0229339179__text3312154044013"></span> is deleted or the NIC is detached.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0229339179__li17898171216223">Example request<pre class="screen" id="EN-US_TOPIC_0229339179__screen2095512149248">{
|
|
"interface_attachment" : {
|
|
"delete_on_termination": false
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0229339179__section41471619"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0229339179__p8691069">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0229339179__section868814916514"><h4 class="sectiontitle">Returned Values</h4><div class="p" id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p193201622141412">Normal values
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_table753804619176" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_row10735134615172"><th align="left" class="cellrowborder" valign="top" width="42.42%" id="mcps1.3.5.2.1.1.3.1.1"><p id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p19735204616177">Returned Values</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.58%" id="mcps1.3.5.2.1.1.3.1.2"><p id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p207355465176">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_row1473514621713"><td class="cellrowborder" valign="top" width="42.42%" headers="mcps1.3.5.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p13735144611178">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.58%" headers="mcps1.3.5.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p207351246161711">The request has been successfully processed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p47633965">For details about other returned values, see <a href="en-us_topic_0053158690.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0229339179__section14752650154917"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0229339179__en-us_topic_0106040941_p10243161417491">See <a href="en-us_topic_0107541808.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0131036397.html">BMS NIC Management</a></div>
|
|
</div>
|
|
</div>
|
|
|