ecs_umn_0307

Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
This commit is contained in:
guoyanyan 2023-03-14 15:26:57 +00:00 committed by zuul
parent a217e13b31
commit 2ce2f88b51
9 changed files with 872 additions and 626 deletions

View File

@ -10,9 +10,9 @@
</li><li id="EN-US_TOPIC_0030878383__en-us_topic_0029320966_li110100322530">On the <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1458122962419">Inbound Rules</strong> tab, click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b84235270615562">Add Rule</strong>. In the displayed dialog box, set required parameters to add an inbound rule.<p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p10544530320">You can click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b84235270617413">+</strong> to add more inbound rules.</p> </li><li id="EN-US_TOPIC_0030878383__en-us_topic_0029320966_li110100322530">On the <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1458122962419">Inbound Rules</strong> tab, click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b84235270615562">Add Rule</strong>. In the displayed dialog box, set required parameters to add an inbound rule.<p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p10544530320">You can click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b84235270617413">+</strong> to add more inbound rules.</p>
<div class="fignone" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_fig1786518124129"><span class="figcap"><b>Figure 1 </b>Add Inbound Rule</span><br><span><img id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_image186617129126" src="en-us_image_0284920908.png" title="Click to enlarge" class="imgResize"></span></div> <div class="fignone" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_fig1786518124129"><span class="figcap"><b>Figure 1 </b>Add Inbound Rule</span><br><span><img id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_image186617129126" src="en-us_image_0284920908.png" title="Click to enlarge" class="imgResize"></span></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_table111445216564" width="90%" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Inbound rule parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row1811565205613"><th align="left" class="cellrowborder" valign="top" width="12.55%" id="mcps1.3.2.2.7.5.2.4.1.1"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p51151452125620"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1533844785">Parameter</strong></p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_table111445216564" width="90%" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Inbound rule parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row1811565205613"><th align="left" class="cellrowborder" valign="top" width="12.55%" id="mcps1.3.2.2.7.5.2.4.1.1"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p51151452125620"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1028171861">Parameter</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="69.45%" id="mcps1.3.2.2.7.5.2.4.1.2"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p5115552175613"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1511944916">Description</strong></p> <th align="left" class="cellrowborder" valign="top" width="69.45%" id="mcps1.3.2.2.7.5.2.4.1.2"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p5115552175613"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b90206595">Description</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.2.2.7.5.2.4.1.3"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p711565219563"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b984193573219">Example Value</strong></p> <th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.2.2.7.5.2.4.1.3"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p711565219563"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b984193573219">Example Value</strong></p>
</th> </th>
@ -21,7 +21,7 @@
<tbody><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row9115105219562"><td class="cellrowborder" rowspan="2" valign="top" width="12.55%" headers="mcps1.3.2.2.7.5.2.4.1.1 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p151157525565">Protocol &amp; Port</p> <tbody><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row9115105219562"><td class="cellrowborder" rowspan="2" valign="top" width="12.55%" headers="mcps1.3.2.2.7.5.2.4.1.1 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p151157525565">Protocol &amp; Port</p>
<p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p3510193211510"></p> <p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p3510193211510"></p>
</td> </td>
<td class="cellrowborder" valign="top" width="69.45%" headers="mcps1.3.2.2.7.5.2.4.1.2 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1711515526562"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1939852442315">Protocol</strong>: The network protocol. Currently, the value can be <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1872293921">All</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b2016345034">TCP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1551779593">UDP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1411609873">ICMP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b175264618215">GRE</strong>, or others.</p> <td class="cellrowborder" valign="top" width="69.45%" headers="mcps1.3.2.2.7.5.2.4.1.2 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1711515526562"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1939852442315">Protocol</strong>: The network protocol. Currently, the value can be <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b290811368">All</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b674125780">TCP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b356611973">UDP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b696494636">ICMP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b175264618215">GRE</strong>, or others.</p>
</td> </td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.2.7.5.2.4.1.3 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p193908441914">TCP</p> <td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.2.7.5.2.4.1.3 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p193908441914">TCP</p>
</td> </td>
@ -58,12 +58,12 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</li><li id="EN-US_TOPIC_0030878383__li114871417141">On the <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b663618586245">Outbound Rules</strong> tab, click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1886644711">Add Rule</strong>. In the displayed dialog box, set required parameters to add an outbound rule.<p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p161151454111115">You can click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b842352706174116">+</strong> to add more outbound rules.</p> </li><li id="EN-US_TOPIC_0030878383__li114871417141">On the <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b663618586245">Outbound Rules</strong> tab, click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b330136624">Add Rule</strong>. In the displayed dialog box, set required parameters to add an outbound rule.<p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p161151454111115">You can click <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b842352706174116">+</strong> to add more outbound rules.</p>
<div class="fignone" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_fig11809848184019"><span class="figcap"><b>Figure 2 </b>Add Outbound Rule</span><br><span><img id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_image138102048204017" src="en-us_image_0284993717.png" title="Click to enlarge" class="imgResize"></span></div> <div class="fignone" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_fig11809848184019"><span class="figcap"><b>Figure 2 </b>Add Outbound Rule</span><br><span><img id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_image138102048204017" src="en-us_image_0284993717.png" title="Click to enlarge" class="imgResize"></span></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_table0614192319232" width="90%" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Outbound rule parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row19614623202312"><th align="left" class="cellrowborder" valign="top" width="12.55%" id="mcps1.3.2.2.8.5.2.4.1.1"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p361592319230"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b584976601">Parameter</strong></p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_table0614192319232" width="90%" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Outbound rule parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row19614623202312"><th align="left" class="cellrowborder" valign="top" width="12.55%" id="mcps1.3.2.2.8.5.2.4.1.1"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p361592319230"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1166457109">Parameter</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="69.45%" id="mcps1.3.2.2.8.5.2.4.1.2"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1961514231232"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b107750324">Description</strong></p> <th align="left" class="cellrowborder" valign="top" width="69.45%" id="mcps1.3.2.2.8.5.2.4.1.2"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1961514231232"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b983036244">Description</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.2.2.8.5.2.4.1.3"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1061552372311"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b78071625745">Example Value</strong></p> <th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.2.2.8.5.2.4.1.3"><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1061552372311"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b78071625745">Example Value</strong></p>
</th> </th>
@ -72,7 +72,7 @@
<tbody><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row76161523132311"><td class="cellrowborder" rowspan="2" valign="top" width="12.55%" headers="mcps1.3.2.2.8.5.2.4.1.1 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1761652313238">Protocol &amp; Port</p> <tbody><tr id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_row76161523132311"><td class="cellrowborder" rowspan="2" valign="top" width="12.55%" headers="mcps1.3.2.2.8.5.2.4.1.1 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1761652313238">Protocol &amp; Port</p>
<p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p4616323182310"></p> <p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p4616323182310"></p>
</td> </td>
<td class="cellrowborder" valign="top" width="69.45%" headers="mcps1.3.2.2.8.5.2.4.1.2 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1461632352313"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b114706499477">Protocol</strong>: The network protocol. Currently, the value can be <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b793362057">All</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b207321097">TCP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1762318139">UDP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b359705571">ICMP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b66980248">GRE</strong>, or others.</p> <td class="cellrowborder" valign="top" width="69.45%" headers="mcps1.3.2.2.8.5.2.4.1.2 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p1461632352313"><strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b114706499477">Protocol</strong>: The network protocol. Currently, the value can be <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1435407408">All</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1283886464">TCP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b428457720">UDP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1686624010">ICMP</strong>, <strong id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_b1468245832">GRE</strong>, or others.</p>
</td> </td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.2.8.5.2.4.1.3 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p157082238193">TCP</p> <td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.2.2.8.5.2.4.1.3 "><p id="EN-US_TOPIC_0030878383__en-us_topic_0118534005_p157082238193">TCP</p>
</td> </td>

View File

@ -17,7 +17,7 @@
</li><li id="EN-US_TOPIC_0032380449__li19867939143532">The created <span id="EN-US_TOPIC_0032380449__text10396124611434">ECS</span> automatically runs Cloud-Init/Cloudbase-Init and reads the user data script upon startup.</li></ol> </li><li id="EN-US_TOPIC_0032380449__li19867939143532">The created <span id="EN-US_TOPIC_0032380449__text10396124611434">ECS</span> automatically runs Cloud-Init/Cloudbase-Init and reads the user data script upon startup.</li></ol>
</div> </div>
<div class="section" id="EN-US_TOPIC_0032380449__section0609912614"><h4 class="sectiontitle">User Data Scripts of Linux ECSs</h4><p id="EN-US_TOPIC_0032380449__p21391511365">Customized user data scripts of Linux <span id="EN-US_TOPIC_0032380449__text2715114718439">ECS</span>s are based on the open-source Cloud-Init architecture. This architecture uses <span id="EN-US_TOPIC_0032380449__text2480141510154">ECS</span> metadata as the data source for automatically configuring the <span id="EN-US_TOPIC_0032380449__text29461951512">ECS</span>s. The customized script types are compatible with open-source Cloud-Init. For details about Cloud-Init, see <a href="http://cloudinit.readthedocs.io/en/latest/topics/format.html" target="_blank" rel="noopener noreferrer">http://cloudinit.readthedocs.io/en/latest/topics/format.html</a>.</p> <div class="section" id="EN-US_TOPIC_0032380449__section0609912614"><h4 class="sectiontitle">User Data Scripts of Linux ECSs</h4><p id="EN-US_TOPIC_0032380449__p21391511365">Customized user data scripts of Linux <span id="EN-US_TOPIC_0032380449__text2715114718439">ECS</span>s are based on the open-source Cloud-Init architecture. This architecture uses <span id="EN-US_TOPIC_0032380449__text2480141510154">ECS</span> metadata as the data source for automatically configuring the <span id="EN-US_TOPIC_0032380449__text29461951512">ECS</span>s. The customized script types are compatible with open-source Cloud-Init. For details about Cloud-Init, see <a href="http://cloudinit.readthedocs.io/en/latest/topics/format.html" target="_blank" rel="noopener noreferrer">http://cloudinit.readthedocs.io/en/latest/topics/format.html</a>.</p>
<ul id="EN-US_TOPIC_0032380449__ul33791011153614"><li id="EN-US_TOPIC_0032380449__li1379171118363">Script execution time: A customized user data script is executed after the time when the status of the target <span id="EN-US_TOPIC_0032380449__text8859348164312">ECS</span> changes to <strong id="EN-US_TOPIC_0032380449__b18338451191519">Running</strong> and before the time when <strong id="EN-US_TOPIC_0032380449__b8889125681519">/etc/init</strong> is executed.<div class="note" id="EN-US_TOPIC_0032380449__note99119444431"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0032380449__p18911134417436">By default, the scripts are executed as user <strong id="EN-US_TOPIC_0032380449__b842352706151636">root</strong>.</p> <ul id="EN-US_TOPIC_0032380449__ul33791011153614"><li id="EN-US_TOPIC_0032380449__li1379171118363">Script execution time: A customized user data script is executed after the status of the target <span id="EN-US_TOPIC_0032380449__text8859348164312">ECS</span> changes to <strong id="EN-US_TOPIC_0032380449__b18338451191519">Running</strong> and before <strong id="EN-US_TOPIC_0032380449__b8889125681519">/etc/init</strong> is executed.<div class="note" id="EN-US_TOPIC_0032380449__note99119444431"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0032380449__p18911134417436">By default, the scripts are executed as user <strong id="EN-US_TOPIC_0032380449__b842352706151636">root</strong>.</p>
</div></div> </div></div>
</li></ul> </li></ul>
<ul id="EN-US_TOPIC_0032380449__ul1398151511364"><li id="EN-US_TOPIC_0032380449__li4398151516364">Script type: Both user-data scripts and Cloud-Config data scripts are supported. <ul id="EN-US_TOPIC_0032380449__ul1398151511364"><li id="EN-US_TOPIC_0032380449__li4398151516364">Script type: Both user-data scripts and Cloud-Config data scripts are supported.
@ -71,7 +71,7 @@ echo "Hello, the time is now $(date -R)" | tee /root/output.txt</pre>
<p id="EN-US_TOPIC_0032380449__p316665544119">After the <span id="EN-US_TOPIC_0032380449__text1654745284317">ECS</span> is created, start it and run the <strong id="EN-US_TOPIC_0032380449__b741518589424">cat </strong><em id="EN-US_TOPIC_0032380449__i39973094314">[file]</em> command to check the script execution result.</p> <p id="EN-US_TOPIC_0032380449__p316665544119">After the <span id="EN-US_TOPIC_0032380449__text1654745284317">ECS</span> is created, start it and run the <strong id="EN-US_TOPIC_0032380449__b741518589424">cat </strong><em id="EN-US_TOPIC_0032380449__i39973094314">[file]</em> command to check the script execution result.</p>
<pre class="screen" id="EN-US_TOPIC_0032380449__screen353671394316">[root@XXXXXXXX ~]# cat /root/output.txt <pre class="screen" id="EN-US_TOPIC_0032380449__screen353671394316">[root@XXXXXXXX ~]# cat /root/output.txt
Hello, the time is now Mon, 16 Jul 2016 16:03:18+0800</pre> Hello, the time is now Mon, 16 Jul 2016 16:03:18+0800</pre>
<p id="EN-US_TOPIC_0032380449__p1849372719381"><strong id="EN-US_TOPIC_0032380449__b895363177">Example 2: Inject a Cloud-Config data script.</strong></p> <p id="EN-US_TOPIC_0032380449__p1849372719381"><strong id="EN-US_TOPIC_0032380449__b513289350">Example 2: Inject a Cloud-Config data script.</strong></p>
<p id="EN-US_TOPIC_0032380449__p104921296416">When creating an <span id="EN-US_TOPIC_0032380449__text231733611919">ECS</span>, set <strong id="EN-US_TOPIC_0032380449__b83221136111911">User Data</strong> to <strong id="EN-US_TOPIC_0032380449__b632319362193">As text</strong> and enter the customized user data script.</p> <p id="EN-US_TOPIC_0032380449__p104921296416">When creating an <span id="EN-US_TOPIC_0032380449__text231733611919">ECS</span>, set <strong id="EN-US_TOPIC_0032380449__b83221136111911">User Data</strong> to <strong id="EN-US_TOPIC_0032380449__b632319362193">As text</strong> and enter the customized user data script.</p>
<pre class="screen" id="EN-US_TOPIC_0032380449__screen188011505456">#cloud-config <pre class="screen" id="EN-US_TOPIC_0032380449__screen188011505456">#cloud-config
bootcmd: bootcmd:
@ -128,7 +128,7 @@ echo "Hello, Powershell Test" &gt; C:\aaaa.txt</pre>
<div class="fignone" id="EN-US_TOPIC_0032380449__fig124617204176"><span class="figcap"><b>Figure 6 </b>Viewing user data (PowerShell)</span><br><span><img id="EN-US_TOPIC_0032380449__image1779081310172" src="en-us_image_0115934291.jpg" title="Click to enlarge" class="imgResize"></span></div> <div class="fignone" id="EN-US_TOPIC_0032380449__fig124617204176"><span class="figcap"><b>Figure 6 </b>Viewing user data (PowerShell)</span><br><span><img id="EN-US_TOPIC_0032380449__image1779081310172" src="en-us_image_0115934291.jpg" title="Click to enlarge" class="imgResize"></span></div>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0032380449__section24296060141539"><h4 class="sectiontitle">Case 1</h4><p id="EN-US_TOPIC_0032380449__p53448248181022">This case illustrates how to use the user data passing function to simplify Linux <span id="EN-US_TOPIC_0032380449__text105881913444">ECS</span> configuration.</p> <div class="section" id="EN-US_TOPIC_0032380449__section24296060141539"><h4 class="sectiontitle">Case 1</h4><p id="EN-US_TOPIC_0032380449__p53448248181022">This case illustrates how to pass user data to simplify Linux <span id="EN-US_TOPIC_0032380449__text105881913444">ECS</span> configuration.</p>
<p id="EN-US_TOPIC_0032380449__p11272187181022">In this example, vim is configured to enable syntax highlighting, display line numbers, and set the tab stop to <strong id="EN-US_TOPIC_0032380449__b84235270614505">4</strong>. The .vimrc configuration file is created and injected into the <strong id="EN-US_TOPIC_0032380449__b842352706145017">/root/.vimrc</strong> directory during ECS creation. After the ECS is created, vim is automatically configured based on your requirements. This improves <span id="EN-US_TOPIC_0032380449__text1773853362519">ECS</span> configuration efficiency, especially in batch <span id="EN-US_TOPIC_0032380449__text38292363258">ECS</span> creation scenarios.</p> <p id="EN-US_TOPIC_0032380449__p11272187181022">In this example, vim is configured to enable syntax highlighting, display line numbers, and set the tab stop to <strong id="EN-US_TOPIC_0032380449__b84235270614505">4</strong>. The .vimrc configuration file is created and injected into the <strong id="EN-US_TOPIC_0032380449__b842352706145017">/root/.vimrc</strong> directory during ECS creation. After the ECS is created, vim is automatically configured based on your requirements. This improves <span id="EN-US_TOPIC_0032380449__text1773853362519">ECS</span> configuration efficiency, especially in batch <span id="EN-US_TOPIC_0032380449__text38292363258">ECS</span> creation scenarios.</p>
<p id="EN-US_TOPIC_0032380449__p3850392814395">User data example:</p> <p id="EN-US_TOPIC_0032380449__p3850392814395">User data example:</p>
<pre class="screen" id="EN-US_TOPIC_0032380449__screen65596078144036">#cloud-config <pre class="screen" id="EN-US_TOPIC_0032380449__screen65596078144036">#cloud-config

View File

@ -8,10 +8,12 @@
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody><tr id="EN-US_TOPIC_0041169567__row4641146173810"><td class="cellrowborder" valign="top" width="18.970000000000002%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0041169567__p8642446133818">2023-02-28</p> <tbody><tr id="EN-US_TOPIC_0041169567__row4641146173810"><td class="cellrowborder" valign="top" width="18.970000000000002%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0041169567__p8642446133818">2023-03-04</p>
</td> </td>
<td class="cellrowborder" valign="top" width="81.03%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0041169567__p1764234618384">Added the following content:</p> <td class="cellrowborder" valign="top" width="81.03%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0041169567__p1764234618384">Added the following content:</p>
<ul id="EN-US_TOPIC_0041169567__ul127071253917"><li id="EN-US_TOPIC_0041169567__li1270717233920"><a href="en-us_topic_0170232209.html">Permissions Management</a></li><li id="EN-US_TOPIC_0041169567__li3510118183917"><a href="en-us_topic_0170265910.html">Permissions Management</a></li></ul> <ul id="EN-US_TOPIC_0041169567__ul127071253917"><li id="EN-US_TOPIC_0041169567__li1270717233920"><a href="en-us_topic_0170232209.html">Permissions Management</a></li><li id="EN-US_TOPIC_0041169567__li3510118183917"><a href="en-us_topic_0170265910.html">Permissions Management</a></li></ul>
<p id="EN-US_TOPIC_0041169567__p285519381010">Modified the following content:</p>
<p id="EN-US_TOPIC_0041169567__p5856133161018">Added P3 ECSs in <a href="en-us_topic_0097289624.html">GPU-accelerated ECSs</a>.</p>
</td> </td>
</tr> </tr>
<tr id="EN-US_TOPIC_0041169567__row13551162319339"><td class="cellrowborder" valign="top" width="18.970000000000002%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0041169567__p655212232335">2022-11-30</p> <tr id="EN-US_TOPIC_0041169567__row13551162319339"><td class="cellrowborder" valign="top" width="18.970000000000002%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0041169567__p655212232335">2022-11-30</p>

View File

@ -188,12 +188,12 @@
</div> </div>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section36703712181817"><h4 class="sectiontitle">Prerequisites</h4><ul id="EN-US_TOPIC_0042400609__ul9343141011371"><li id="EN-US_TOPIC_0042400609__li1934321018371">The target <span id="EN-US_TOPIC_0042400609__text1541528124315">ECS</span> has been logged in.</li><li id="EN-US_TOPIC_0042400609__li3501613173718">Security group rules in the outbound direction meet the following requirements:<ul id="EN-US_TOPIC_0042400609__ul24730372153157"><li id="EN-US_TOPIC_0042400609__li4991456153157"><strong id="EN-US_TOPIC_0042400609__b84235270617418">Protocol</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174111">TCP</strong></li><li id="EN-US_TOPIC_0042400609__li5391447153614"><strong id="EN-US_TOPIC_0042400609__b842352706174117">Port</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174120">80</strong></li><li id="EN-US_TOPIC_0042400609__li57518749153625"><strong id="EN-US_TOPIC_0042400609__b7921153132519">Destination</strong>: <strong id="EN-US_TOPIC_0042400609__b1492117320252">169.254.0.0/16</strong></li></ul> <div class="section" id="EN-US_TOPIC_0042400609__section36703712181817"><h4 class="sectiontitle">Prerequisites</h4><ul id="EN-US_TOPIC_0042400609__ul9343141011371"><li id="EN-US_TOPIC_0042400609__li1934321018371">The target <span id="EN-US_TOPIC_0042400609__text1541528124315">ECS</span> has been logged in.</li><li id="EN-US_TOPIC_0042400609__li3501613173718">Security group rules in the outbound direction meet the following requirements:<ul id="EN-US_TOPIC_0042400609__ul24730372153157"><li id="EN-US_TOPIC_0042400609__li4991456153157"><strong id="EN-US_TOPIC_0042400609__b84235270617418">Protocol</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174111">TCP</strong></li><li id="EN-US_TOPIC_0042400609__li5391447153614"><strong id="EN-US_TOPIC_0042400609__b842352706174117">Port</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174120">80</strong></li><li id="EN-US_TOPIC_0042400609__li57518749153625"><strong id="EN-US_TOPIC_0042400609__b7921153132519">Destination</strong>: <strong id="EN-US_TOPIC_0042400609__b1492117320252">169.254.0.0/16</strong></li></ul>
<div class="note" id="EN-US_TOPIC_0042400609__note2229256715423"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0042400609__p6641537815423">If you use the default security group rules for the outbound direction, the preceding requirements are met. Then, the metadata can be accessed. Default security group rules for the outbound direction are as follows:</p> <div class="note" id="EN-US_TOPIC_0042400609__note2229256715423"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0042400609__p6641537815423">If you use the default security group rules for the outbound direction, the metadata can be accessed because the default rules meet the preceding requirements. Default security group rules for the outbound direction are as follows:</p>
<ul id="EN-US_TOPIC_0042400609__ul57158436154418"><li id="EN-US_TOPIC_0042400609__li43613116154418"><strong id="EN-US_TOPIC_0042400609__b842352706174746">Protocol</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174748">All</strong></li><li id="EN-US_TOPIC_0042400609__li62494343154423"><strong id="EN-US_TOPIC_0042400609__b842352706174753">Port</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174755">All</strong></li><li id="EN-US_TOPIC_0042400609__li45129043154435"><strong id="EN-US_TOPIC_0042400609__b84235270617480">Destination</strong>: <strong id="EN-US_TOPIC_0042400609__b84235270617483">0.0.0.0/0</strong></li></ul> <ul id="EN-US_TOPIC_0042400609__ul57158436154418"><li id="EN-US_TOPIC_0042400609__li43613116154418"><strong id="EN-US_TOPIC_0042400609__b842352706174746">Protocol</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174748">All</strong></li><li id="EN-US_TOPIC_0042400609__li62494343154423"><strong id="EN-US_TOPIC_0042400609__b842352706174753">Port</strong>: <strong id="EN-US_TOPIC_0042400609__b842352706174755">All</strong></li><li id="EN-US_TOPIC_0042400609__li45129043154435"><strong id="EN-US_TOPIC_0042400609__b84235270617480">Destination</strong>: <strong id="EN-US_TOPIC_0042400609__b84235270617483">0.0.0.0/0</strong></li></ul>
</div></div> </div></div>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section29573104171554"><h4 class="sectiontitle">Metadata (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p31080634174749">Displays <span id="EN-US_TOPIC_0042400609__text19755172815432">ECS</span> metadata.</p> <div class="section" id="EN-US_TOPIC_0042400609__section29573104171554"><h4 class="sectiontitle">Metadata (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p31080634174749">This API is used to query <span id="EN-US_TOPIC_0042400609__text19755172815432">ECS</span> metadata.</p>
<ul id="EN-US_TOPIC_0042400609__ul59617153172854"><li id="EN-US_TOPIC_0042400609__li30888617172917">URI<p id="EN-US_TOPIC_0042400609__p32562171172943"><a name="EN-US_TOPIC_0042400609__li30888617172917"></a><a name="li30888617172917"></a>/169.254.169.254/openstack/latest/meta_data.json</p> <ul id="EN-US_TOPIC_0042400609__ul59617153172854"><li id="EN-US_TOPIC_0042400609__li30888617172917">URI<p id="EN-US_TOPIC_0042400609__p32562171172943"><a name="EN-US_TOPIC_0042400609__li30888617172917"></a><a name="li30888617172917"></a>/169.254.169.254/openstack/latest/meta_data.json</p>
</li><li id="EN-US_TOPIC_0042400609__li64325637172923">Usage method<p id="EN-US_TOPIC_0042400609__p17989373172953"><a name="EN-US_TOPIC_0042400609__li64325637172923"></a><a name="li64325637172923"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li64325637172923">Usage method<p id="EN-US_TOPIC_0042400609__p17989373172953"><a name="EN-US_TOPIC_0042400609__li64325637172923"></a><a name="li64325637172923"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li64044148172854">Example<p id="EN-US_TOPIC_0042400609__p37237672172215"><a name="EN-US_TOPIC_0042400609__li64044148172854"></a><a name="li64044148172854"></a>To use cURL to view Linux <span id="EN-US_TOPIC_0042400609__text842802912433">ECS</span> metadata, run the following command:</p> </li><li id="EN-US_TOPIC_0042400609__li64044148172854">Example<p id="EN-US_TOPIC_0042400609__p37237672172215"><a name="EN-US_TOPIC_0042400609__li64044148172854"></a><a name="li64044148172854"></a>To use cURL to view Linux <span id="EN-US_TOPIC_0042400609__text842802912433">ECS</span> metadata, run the following command:</p>
@ -223,7 +223,7 @@
}</pre> }</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section51339028173755"><h4 class="sectiontitle">User Data (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p3102430417439">Displays <span id="EN-US_TOPIC_0042400609__text3811731174315">ECS</span> user data. The value is configured only when you create an <span id="EN-US_TOPIC_0042400609__text9300133218439">ECS</span>. It cannot be changed after the configuration.</p> <div class="section" id="EN-US_TOPIC_0042400609__section51339028173755"><h4 class="sectiontitle">User Data (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p3102430417439">This API is used to query <span id="EN-US_TOPIC_0042400609__text3811731174315">ECS</span> user data. The value is configured only when you create an <span id="EN-US_TOPIC_0042400609__text9300133218439">ECS</span>. It cannot be changed after the configuration.</p>
<ul id="EN-US_TOPIC_0042400609__ul6116086217388"><li id="EN-US_TOPIC_0042400609__li22569917388">URI<p id="EN-US_TOPIC_0042400609__p28707765173835"><a name="EN-US_TOPIC_0042400609__li22569917388"></a><a name="li22569917388"></a>/169.254.169.254/openstack/latest/user_data</p> <ul id="EN-US_TOPIC_0042400609__ul6116086217388"><li id="EN-US_TOPIC_0042400609__li22569917388">URI<p id="EN-US_TOPIC_0042400609__p28707765173835"><a name="EN-US_TOPIC_0042400609__li22569917388"></a><a name="li22569917388"></a>/169.254.169.254/openstack/latest/user_data</p>
</li><li id="EN-US_TOPIC_0042400609__li3657077173813">Usage method<p id="EN-US_TOPIC_0042400609__p45679428173912"><a name="EN-US_TOPIC_0042400609__li3657077173813"></a><a name="li3657077173813"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li3657077173813">Usage method<p id="EN-US_TOPIC_0042400609__p45679428173912"><a name="EN-US_TOPIC_0042400609__li3657077173813"></a><a name="li3657077173813"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li14044809173816">Example<p id="EN-US_TOPIC_0042400609__p20898539103311"><a name="EN-US_TOPIC_0042400609__li14044809173816"></a><a name="li14044809173816"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li14044809173816">Example<p id="EN-US_TOPIC_0042400609__p20898539103311"><a name="EN-US_TOPIC_0042400609__li14044809173816"></a><a name="li14044809173816"></a>Linux:</p>
@ -236,7 +236,7 @@
</div></div> </div></div>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section374011381441"><h4 class="sectiontitle">Network Data (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p9160132110456">Displays information about all NICs attached to an ECS, including their DNS server addresses, network bandwidth, IDs, private IP addresses, EIPs, and MAC addresses.</p> <div class="section" id="EN-US_TOPIC_0042400609__section374011381441"><h4 class="sectiontitle">Network Data (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p9160132110456">This API is used to query information about all NICs attached to an ECS, including their DNS server addresses, network bandwidth, IDs, private IP addresses, EIPs, and MAC addresses.</p>
<ul id="EN-US_TOPIC_0042400609__ul55102293454"><li id="EN-US_TOPIC_0042400609__li14510172919455">URI<p id="EN-US_TOPIC_0042400609__p651015293454"><a name="EN-US_TOPIC_0042400609__li14510172919455"></a><a name="li14510172919455"></a>/openstack/latest/network_data.json</p> <ul id="EN-US_TOPIC_0042400609__ul55102293454"><li id="EN-US_TOPIC_0042400609__li14510172919455">URI<p id="EN-US_TOPIC_0042400609__p651015293454"><a name="EN-US_TOPIC_0042400609__li14510172919455"></a><a name="li14510172919455"></a>/openstack/latest/network_data.json</p>
</li><li id="EN-US_TOPIC_0042400609__li851092924520">Usage method<p id="EN-US_TOPIC_0042400609__p1510112924513"><a name="EN-US_TOPIC_0042400609__li851092924520"></a><a name="li851092924520"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li851092924520">Usage method<p id="EN-US_TOPIC_0042400609__p1510112924513"><a name="EN-US_TOPIC_0042400609__li851092924520"></a><a name="li851092924520"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li14510122964513">Example<div class="note" id="EN-US_TOPIC_0042400609__note1192114501298"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0042400609__p8921205012914"><strong id="EN-US_TOPIC_0042400609__b1843052315586">instance_max_bandwidth</strong> and <strong id="EN-US_TOPIC_0042400609__b12388306585">instance_min_bandwidth</strong> are in the unit of Mbit/s. If the value is <strong id="EN-US_TOPIC_0042400609__b599741214015">-1</strong>, the bandwidth is not limited.</p> </li><li id="EN-US_TOPIC_0042400609__li14510122964513">Example<div class="note" id="EN-US_TOPIC_0042400609__note1192114501298"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0042400609__p8921205012914"><strong id="EN-US_TOPIC_0042400609__b1843052315586">instance_max_bandwidth</strong> and <strong id="EN-US_TOPIC_0042400609__b12388306585">instance_min_bandwidth</strong> are in the unit of Mbit/s. If the value is <strong id="EN-US_TOPIC_0042400609__b599741214015">-1</strong>, the bandwidth is not limited.</p>
@ -274,7 +274,7 @@
}</pre> }</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section921029416614"><h4 class="sectiontitle">Security Key (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p38342039161132">Obtains temporary AKs and SKs.</p> <div class="section" id="EN-US_TOPIC_0042400609__section921029416614"><h4 class="sectiontitle">Security Key (OpenStack Metadata API)</h4><p id="EN-US_TOPIC_0042400609__p38342039161132">This API is used to obtain temporary AKs and SKs.</p>
<div class="note" id="EN-US_TOPIC_0042400609__note8594053165018"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0042400609__ul8608738165031"><li id="EN-US_TOPIC_0042400609__li1032135541617">If an ECS needs to obtain a temporary AK and SK, go to the ECS details page, and configure <strong id="EN-US_TOPIC_0042400609__b9860626211">Agency</strong> for the ECS in the <strong id="EN-US_TOPIC_0042400609__b1364103316113">Management Information</strong> area so that the ECS is authorized on IAM.</li><li id="EN-US_TOPIC_0042400609__li48880997165031">The validity period of a temporary AK and SK is one hour. The temporary AK and SK are updated 10 minutes ahead of the expiration time. During the 10 minutes, both the new and old temporary AKs and SKs can be used.</li><li id="EN-US_TOPIC_0042400609__li21802073165031">When using temporary AKs and SKs, add <strong id="EN-US_TOPIC_0042400609__b842352706202446">'X-Security-Token':{securitytoken}</strong> in the message header. <strong id="EN-US_TOPIC_0042400609__b84235270620252">securitytoken</strong> is the value returned when a call is made to the API.</li></ul> <div class="note" id="EN-US_TOPIC_0042400609__note8594053165018"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0042400609__ul8608738165031"><li id="EN-US_TOPIC_0042400609__li1032135541617">If an ECS needs to obtain a temporary AK and SK, go to the ECS details page, and configure <strong id="EN-US_TOPIC_0042400609__b9860626211">Agency</strong> for the ECS in the <strong id="EN-US_TOPIC_0042400609__b1364103316113">Management Information</strong> area so that the ECS is authorized on IAM.</li><li id="EN-US_TOPIC_0042400609__li48880997165031">The validity period of a temporary AK and SK is one hour. The temporary AK and SK are updated 10 minutes ahead of the expiration time. During the 10 minutes, both the new and old temporary AKs and SKs can be used.</li><li id="EN-US_TOPIC_0042400609__li21802073165031">When using temporary AKs and SKs, add <strong id="EN-US_TOPIC_0042400609__b842352706202446">'X-Security-Token':{securitytoken}</strong> in the message header. <strong id="EN-US_TOPIC_0042400609__b84235270620252">securitytoken</strong> is the value returned when a call is made to the API.</li></ul>
</div></div> </div></div>
<ul id="EN-US_TOPIC_0042400609__ul6007050416845"><li id="EN-US_TOPIC_0042400609__li4325039816845">URI<p id="EN-US_TOPIC_0042400609__p3107564816911"><a name="EN-US_TOPIC_0042400609__li4325039816845"></a><a name="li4325039816845"></a>/openstack/latest/securitykey</p> <ul id="EN-US_TOPIC_0042400609__ul6007050416845"><li id="EN-US_TOPIC_0042400609__li4325039816845">URI<p id="EN-US_TOPIC_0042400609__p3107564816911"><a name="EN-US_TOPIC_0042400609__li4325039816845"></a><a name="li4325039816845"></a>/openstack/latest/securitykey</p>
@ -285,7 +285,7 @@
<p id="EN-US_TOPIC_0042400609__p107479083710"><strong id="EN-US_TOPIC_0042400609__b97471104376">Invoke-RestMethod http://169.254.169.254/openstack/latest/securitykey</strong></p> <p id="EN-US_TOPIC_0042400609__p107479083710"><strong id="EN-US_TOPIC_0042400609__b97471104376">Invoke-RestMethod http://169.254.169.254/openstack/latest/securitykey</strong></p>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section1526795182322"><h4 class="sectiontitle">User Data (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p11678368182359">Displays <span id="EN-US_TOPIC_0042400609__text10625134116119">ECS</span> user data. The value is configured only when you create an <span id="EN-US_TOPIC_0042400609__text9377936856">ECS</span>. It cannot be changed after the configuration.</p> <div class="section" id="EN-US_TOPIC_0042400609__section1526795182322"><h4 class="sectiontitle">User Data (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p11678368182359">This API is used to query <span id="EN-US_TOPIC_0042400609__text10625134116119">ECS</span> user data. The value is configured only when you create an <span id="EN-US_TOPIC_0042400609__text9377936856">ECS</span>. It cannot be changed after the configuration.</p>
<ul id="EN-US_TOPIC_0042400609__ul37996454182359"><li id="EN-US_TOPIC_0042400609__li6423774182359">URI<p id="EN-US_TOPIC_0042400609__p58171718182435"><a name="EN-US_TOPIC_0042400609__li6423774182359"></a><a name="li6423774182359"></a>/169.254.169.254/latest/user-data</p> <ul id="EN-US_TOPIC_0042400609__ul37996454182359"><li id="EN-US_TOPIC_0042400609__li6423774182359">URI<p id="EN-US_TOPIC_0042400609__p58171718182435"><a name="EN-US_TOPIC_0042400609__li6423774182359"></a><a name="li6423774182359"></a>/169.254.169.254/latest/user-data</p>
</li><li id="EN-US_TOPIC_0042400609__li50563660182359">Usage method<p id="EN-US_TOPIC_0042400609__p52419756182359"><a name="EN-US_TOPIC_0042400609__li50563660182359"></a><a name="li50563660182359"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li50563660182359">Usage method<p id="EN-US_TOPIC_0042400609__p52419756182359"><a name="EN-US_TOPIC_0042400609__li50563660182359"></a><a name="li50563660182359"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li2015762182359">Example<p id="EN-US_TOPIC_0042400609__p1564429377"><a name="EN-US_TOPIC_0042400609__li2015762182359"></a><a name="li2015762182359"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li2015762182359">Example<p id="EN-US_TOPIC_0042400609__p1564429377"><a name="EN-US_TOPIC_0042400609__li2015762182359"></a><a name="li2015762182359"></a>Linux:</p>
@ -295,7 +295,7 @@
<pre class="screen" id="EN-US_TOPIC_0042400609__screen16208203115013">ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA==</pre> <pre class="screen" id="EN-US_TOPIC_0042400609__screen16208203115013">ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA==</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section370431618033"><h4 class="sectiontitle">Hostname (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p6479502918044">Displays the name of the host accommodating an <span id="EN-US_TOPIC_0042400609__text107889378434">ECS</span>. The .novalocal suffix will be added later.</p> <div class="section" id="EN-US_TOPIC_0042400609__section370431618033"><h4 class="sectiontitle">Hostname (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p6479502918044">This API is used to query the name of the host accommodating an <span id="EN-US_TOPIC_0042400609__text107889378434">ECS</span>. The .novalocal suffix will be added later.</p>
<ul id="EN-US_TOPIC_0042400609__ul5379770718152"><li id="EN-US_TOPIC_0042400609__li1441732118152">URI<p id="EN-US_TOPIC_0042400609__p6264702918152"><a name="EN-US_TOPIC_0042400609__li1441732118152"></a><a name="li1441732118152"></a>/169.254.169.254/latest/meta-data/hostname</p> <ul id="EN-US_TOPIC_0042400609__ul5379770718152"><li id="EN-US_TOPIC_0042400609__li1441732118152">URI<p id="EN-US_TOPIC_0042400609__p6264702918152"><a name="EN-US_TOPIC_0042400609__li1441732118152"></a><a name="li1441732118152"></a>/169.254.169.254/latest/meta-data/hostname</p>
</li><li id="EN-US_TOPIC_0042400609__li2695235218152">Usage method<p id="EN-US_TOPIC_0042400609__p4124457918152"><a name="EN-US_TOPIC_0042400609__li2695235218152"></a><a name="li2695235218152"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li2695235218152">Usage method<p id="EN-US_TOPIC_0042400609__p4124457918152"><a name="EN-US_TOPIC_0042400609__li2695235218152"></a><a name="li2695235218152"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li3565689518152">Example<p id="EN-US_TOPIC_0042400609__p1262718493910"><a name="EN-US_TOPIC_0042400609__li3565689518152"></a><a name="li3565689518152"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li3565689518152">Example<p id="EN-US_TOPIC_0042400609__p1262718493910"><a name="EN-US_TOPIC_0042400609__li3565689518152"></a><a name="li3565689518152"></a>Linux:</p>
@ -305,7 +305,7 @@
<pre class="screen" id="EN-US_TOPIC_0042400609__screen2274666918152">vm-test.novalocal</pre> <pre class="screen" id="EN-US_TOPIC_0042400609__screen2274666918152">vm-test.novalocal</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section5678065318623"><h4 class="sectiontitle">Instance Type (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p3959627418633">Displays an <span id="EN-US_TOPIC_0042400609__text67711738184310">ECS</span> flavor.</p> <div class="section" id="EN-US_TOPIC_0042400609__section5678065318623"><h4 class="sectiontitle">Instance Type (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p3959627418633">This API is used to query an <span id="EN-US_TOPIC_0042400609__text67711738184310">ECS</span> flavor.</p>
<ul id="EN-US_TOPIC_0042400609__ul277406018653"><li id="EN-US_TOPIC_0042400609__li2496654318653">URI<p id="EN-US_TOPIC_0042400609__p649993741879"><a name="EN-US_TOPIC_0042400609__li2496654318653"></a><a name="li2496654318653"></a>/169.254.169.254/latest/meta-data/instance-type</p> <ul id="EN-US_TOPIC_0042400609__ul277406018653"><li id="EN-US_TOPIC_0042400609__li2496654318653">URI<p id="EN-US_TOPIC_0042400609__p649993741879"><a name="EN-US_TOPIC_0042400609__li2496654318653"></a><a name="li2496654318653"></a>/169.254.169.254/latest/meta-data/instance-type</p>
</li><li id="EN-US_TOPIC_0042400609__li902414018653">Usage method<p id="EN-US_TOPIC_0042400609__p1410839918653"><a name="EN-US_TOPIC_0042400609__li902414018653"></a><a name="li902414018653"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li902414018653">Usage method<p id="EN-US_TOPIC_0042400609__p1410839918653"><a name="EN-US_TOPIC_0042400609__li902414018653"></a><a name="li902414018653"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li5986672918653">Example<p id="EN-US_TOPIC_0042400609__p154516241397"><a name="EN-US_TOPIC_0042400609__li5986672918653"></a><a name="li5986672918653"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li5986672918653">Example<p id="EN-US_TOPIC_0042400609__p154516241397"><a name="EN-US_TOPIC_0042400609__li5986672918653"></a><a name="li5986672918653"></a>Linux:</p>
@ -315,7 +315,7 @@
<pre class="screen" id="EN-US_TOPIC_0042400609__screen2208403618653">s3.medium.2</pre> <pre class="screen" id="EN-US_TOPIC_0042400609__screen2208403618653">s3.medium.2</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section3229992918750"><h4 class="sectiontitle">Local IPv4 (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p1420695118810">Displays the fixed IP address of an <span id="EN-US_TOPIC_0042400609__text86795241275">ECS</span>. If there are multiple NICs, only the IP address of the primary NIC is displayed.</p> <div class="section" id="EN-US_TOPIC_0042400609__section3229992918750"><h4 class="sectiontitle">Local IPv4 (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p1420695118810">This API is used to query the fixed IP address of an <span id="EN-US_TOPIC_0042400609__text86795241275">ECS</span>. If there are multiple NICs, only the IP address of the primary NIC is displayed.</p>
<ul id="EN-US_TOPIC_0042400609__ul4974336918830"><li id="EN-US_TOPIC_0042400609__li4503714318830">URI<p id="EN-US_TOPIC_0042400609__p187792418841"><a name="EN-US_TOPIC_0042400609__li4503714318830"></a><a name="li4503714318830"></a>/169.254.169.254/latest/meta-data/local-ipv4</p> <ul id="EN-US_TOPIC_0042400609__ul4974336918830"><li id="EN-US_TOPIC_0042400609__li4503714318830">URI<p id="EN-US_TOPIC_0042400609__p187792418841"><a name="EN-US_TOPIC_0042400609__li4503714318830"></a><a name="li4503714318830"></a>/169.254.169.254/latest/meta-data/local-ipv4</p>
</li><li id="EN-US_TOPIC_0042400609__li2412995518830">Usage method<p id="EN-US_TOPIC_0042400609__p1584300318830"><a name="EN-US_TOPIC_0042400609__li2412995518830"></a><a name="li2412995518830"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li2412995518830">Usage method<p id="EN-US_TOPIC_0042400609__p1584300318830"><a name="EN-US_TOPIC_0042400609__li2412995518830"></a><a name="li2412995518830"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li836929918830">Example<p id="EN-US_TOPIC_0042400609__p167771444153917"><a name="EN-US_TOPIC_0042400609__li836929918830"></a><a name="li836929918830"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li836929918830">Example<p id="EN-US_TOPIC_0042400609__p167771444153917"><a name="EN-US_TOPIC_0042400609__li836929918830"></a><a name="li836929918830"></a>Linux:</p>
@ -325,7 +325,7 @@
<pre class="screen" id="EN-US_TOPIC_0042400609__screen5413912818914">192.1.1.2</pre> <pre class="screen" id="EN-US_TOPIC_0042400609__screen5413912818914">192.1.1.2</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section4087782618925"><h4 class="sectiontitle">Availability Zone (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p3029541418948">Displays the AZ accommodating an <span id="EN-US_TOPIC_0042400609__text107362328716">ECS</span>.</p> <div class="section" id="EN-US_TOPIC_0042400609__section4087782618925"><h4 class="sectiontitle">Availability Zone (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p3029541418948">This API is used to query the AZ accommodating an <span id="EN-US_TOPIC_0042400609__text107362328716">ECS</span>.</p>
<ul id="EN-US_TOPIC_0042400609__ul212824718107"><li id="EN-US_TOPIC_0042400609__li1915422318107">URI<p id="EN-US_TOPIC_0042400609__p56249785181032"><a name="EN-US_TOPIC_0042400609__li1915422318107"></a><a name="li1915422318107"></a>/169.254.169.254/latest/meta-data/placement/availability-zone</p> <ul id="EN-US_TOPIC_0042400609__ul212824718107"><li id="EN-US_TOPIC_0042400609__li1915422318107">URI<p id="EN-US_TOPIC_0042400609__p56249785181032"><a name="EN-US_TOPIC_0042400609__li1915422318107"></a><a name="li1915422318107"></a>/169.254.169.254/latest/meta-data/placement/availability-zone</p>
</li><li id="EN-US_TOPIC_0042400609__li798819218107">Usage method<p id="EN-US_TOPIC_0042400609__p478486718107"><a name="EN-US_TOPIC_0042400609__li798819218107"></a><a name="li798819218107"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li798819218107">Usage method<p id="EN-US_TOPIC_0042400609__p478486718107"><a name="EN-US_TOPIC_0042400609__li798819218107"></a><a name="li798819218107"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li4306381018107">Example<p id="EN-US_TOPIC_0042400609__p46839810407"><a name="EN-US_TOPIC_0042400609__li4306381018107"></a><a name="li4306381018107"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li4306381018107">Example<p id="EN-US_TOPIC_0042400609__p46839810407"><a name="EN-US_TOPIC_0042400609__li4306381018107"></a><a name="li4306381018107"></a>Linux:</p>
@ -335,7 +335,7 @@
<pre class="screen" id="EN-US_TOPIC_0042400609__screen5367824218107">az1.dc1</pre> <pre class="screen" id="EN-US_TOPIC_0042400609__screen5367824218107">az1.dc1</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section5999198518129"><h4 class="sectiontitle">Public IPv4 (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p2283136181232">Displays the EIP bound to an <span id="EN-US_TOPIC_0042400609__text16321418712">ECS</span>. If there are multiple NICs, only the EIP of the primary NIC is displayed.</p> <div class="section" id="EN-US_TOPIC_0042400609__section5999198518129"><h4 class="sectiontitle">Public IPv4 (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p2283136181232">This API is used to query the EIP bound to an <span id="EN-US_TOPIC_0042400609__text16321418712">ECS</span>. If there are multiple NICs, only the EIP of the primary NIC is displayed.</p>
<ul id="EN-US_TOPIC_0042400609__ul55990006181427"><li id="EN-US_TOPIC_0042400609__li34148012181427">URI<p id="EN-US_TOPIC_0042400609__p28745692181456"><a name="EN-US_TOPIC_0042400609__li34148012181427"></a><a name="li34148012181427"></a>/169.254.169.254/latest/meta-data/public-ipv4</p> <ul id="EN-US_TOPIC_0042400609__ul55990006181427"><li id="EN-US_TOPIC_0042400609__li34148012181427">URI<p id="EN-US_TOPIC_0042400609__p28745692181456"><a name="EN-US_TOPIC_0042400609__li34148012181427"></a><a name="li34148012181427"></a>/169.254.169.254/latest/meta-data/public-ipv4</p>
</li><li id="EN-US_TOPIC_0042400609__li14525587181427">Usage method<p id="EN-US_TOPIC_0042400609__p63621422181427"><a name="EN-US_TOPIC_0042400609__li14525587181427"></a><a name="li14525587181427"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li14525587181427">Usage method<p id="EN-US_TOPIC_0042400609__p63621422181427"><a name="EN-US_TOPIC_0042400609__li14525587181427"></a><a name="li14525587181427"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li35721890181427">Example<p id="EN-US_TOPIC_0042400609__p11711012184018"><a name="EN-US_TOPIC_0042400609__li35721890181427"></a><a name="li35721890181427"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li35721890181427">Example<p id="EN-US_TOPIC_0042400609__p11711012184018"><a name="EN-US_TOPIC_0042400609__li35721890181427"></a><a name="li35721890181427"></a>Linux:</p>
@ -345,7 +345,7 @@
<pre class="screen" id="EN-US_TOPIC_0042400609__screen25381810181520">46.1.1.2</pre> <pre class="screen" id="EN-US_TOPIC_0042400609__screen25381810181520">46.1.1.2</pre>
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0042400609__section51581190181532"><h4 class="sectiontitle">Public Keys (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p25869135181541">Displays the public key of an <span id="EN-US_TOPIC_0042400609__text16547340164316">ECS</span>.</p> <div class="section" id="EN-US_TOPIC_0042400609__section51581190181532"><h4 class="sectiontitle">Public Keys (EC2 Compatible API)</h4><p id="EN-US_TOPIC_0042400609__p25869135181541">This API is used to query the public key of an <span id="EN-US_TOPIC_0042400609__text16547340164316">ECS</span>.</p>
<ul id="EN-US_TOPIC_0042400609__ul2469263318167"><li id="EN-US_TOPIC_0042400609__li2090711118167">URI<p id="EN-US_TOPIC_0042400609__p6606363181619"><a name="EN-US_TOPIC_0042400609__li2090711118167"></a><a name="li2090711118167"></a>/169.254.169.254/latest/meta-data/public-keys/0/openssh-key</p> <ul id="EN-US_TOPIC_0042400609__ul2469263318167"><li id="EN-US_TOPIC_0042400609__li2090711118167">URI<p id="EN-US_TOPIC_0042400609__p6606363181619"><a name="EN-US_TOPIC_0042400609__li2090711118167"></a><a name="li2090711118167"></a>/169.254.169.254/latest/meta-data/public-keys/0/openssh-key</p>
</li><li id="EN-US_TOPIC_0042400609__li1575439618167">Usage method<p id="EN-US_TOPIC_0042400609__p757183718167"><a name="EN-US_TOPIC_0042400609__li1575439618167"></a><a name="li1575439618167"></a>Supports GET requests.</p> </li><li id="EN-US_TOPIC_0042400609__li1575439618167">Usage method<p id="EN-US_TOPIC_0042400609__p757183718167"><a name="EN-US_TOPIC_0042400609__li1575439618167"></a><a name="li1575439618167"></a>Supports GET requests.</p>
</li><li id="EN-US_TOPIC_0042400609__li103767718167">Example<p id="EN-US_TOPIC_0042400609__p4192247144014"><a name="EN-US_TOPIC_0042400609__li103767718167"></a><a name="li103767718167"></a>Linux:</p> </li><li id="EN-US_TOPIC_0042400609__li103767718167">Example<p id="EN-US_TOPIC_0042400609__p4192247144014"><a name="EN-US_TOPIC_0042400609__li103767718167"></a><a name="li103767718167"></a>Linux:</p>

View File

@ -16,7 +16,7 @@
</li></ul> </li></ul>
</div> </div>
<div class="section" id="EN-US_TOPIC_0048642616__section44995720162019"><h4 class="sectiontitle">Notes</h4><ul id="EN-US_TOPIC_0048642616__ul27309930162147"><li id="EN-US_TOPIC_0048642616__li57792420162147">When using Cloud-Init, enable DHCP in the VPC to which the <span id="EN-US_TOPIC_0048642616__text1781819502422">ECS</span> belongs.</li><li id="EN-US_TOPIC_0048642616__li3134774162149">When using Cloud-Init, ensure that security group rules for the outbound direction meet the following requirements:<ul id="EN-US_TOPIC_0048642616__ul58881557162226"><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li4991456153157"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b84235270617418">Protocol</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174111">TCP</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li5391447153614"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174117">Port</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174120">80</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li57518749153625"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b7921153132519">Destination</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b1492117320252">169.254.0.0/16</strong></li></ul> <div class="section" id="EN-US_TOPIC_0048642616__section44995720162019"><h4 class="sectiontitle">Notes</h4><ul id="EN-US_TOPIC_0048642616__ul27309930162147"><li id="EN-US_TOPIC_0048642616__li57792420162147">When using Cloud-Init, enable DHCP in the VPC to which the <span id="EN-US_TOPIC_0048642616__text1781819502422">ECS</span> belongs.</li><li id="EN-US_TOPIC_0048642616__li3134774162149">When using Cloud-Init, ensure that security group rules for the outbound direction meet the following requirements:<ul id="EN-US_TOPIC_0048642616__ul58881557162226"><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li4991456153157"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b84235270617418">Protocol</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174111">TCP</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li5391447153614"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174117">Port</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174120">80</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li57518749153625"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b7921153132519">Destination</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b1492117320252">169.254.0.0/16</strong></li></ul>
<div class="note" id="EN-US_TOPIC_0048642616__note40094412162251"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_p6641537815423">If you use the default security group rules for the outbound direction, the preceding requirements are met. Then, the metadata can be accessed. Default security group rules for the outbound direction are as follows:</p> <div class="note" id="EN-US_TOPIC_0048642616__note40094412162251"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_p6641537815423">If you use the default security group rules for the outbound direction, the metadata can be accessed because the default rules meet the preceding requirements. Default security group rules for the outbound direction are as follows:</p>
<ul id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_ul57158436154418"><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li43613116154418"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174746">Protocol</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174748">All</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li62494343154423"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174753">Port</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174755">All</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li45129043154435"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b84235270617480">Destination</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b84235270617483">0.0.0.0/0</strong></li></ul> <ul id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_ul57158436154418"><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li43613116154418"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174746">Protocol</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174748">All</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li62494343154423"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174753">Port</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b842352706174755">All</strong></li><li id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_li45129043154435"><strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b84235270617480">Destination</strong>: <strong id="EN-US_TOPIC_0048642616__en-us_topic_0042400609_b84235270617483">0.0.0.0/0</strong></li></ul>
</div></div> </div></div>
</li></ul> </li></ul>

File diff suppressed because it is too large Load Diff

View File

@ -11,19 +11,22 @@
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="32.43000000000001%" id="mcps1.3.3.2.2.3.1.5.1.2"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p5102371419358"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b14553203018450">Protocol</strong></p> <th align="left" class="cellrowborder" valign="top" width="32.43000000000001%" id="mcps1.3.3.2.2.3.1.5.1.2"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p5102371419358"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b14553203018450">Protocol</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="24.810000000000002%" id="mcps1.3.3.2.2.3.1.5.1.3"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p2415644494621"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b1632391496">Port</strong></p> <th align="left" class="cellrowborder" valign="top" width="24.810000000000002%" id="mcps1.3.3.2.2.3.1.5.1.3"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p2415644494621"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b305218011">Port</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="30.360000000000003%" id="mcps1.3.3.2.2.3.1.5.1.4"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p1911210519358"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b1606671664">Source</strong></p> <th align="left" class="cellrowborder" valign="top" width="30.360000000000003%" id="mcps1.3.3.2.2.3.1.5.1.4"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p1911210519358"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b1903886682">Source</strong></p>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody><tr id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_row3779122419358"><td class="cellrowborder" valign="top" width="12.400000000000002%" headers="mcps1.3.3.2.2.3.1.5.1.1 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p4808290419358">Inbound</p> <tbody><tr id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_row3779122419358"><td class="cellrowborder" valign="top" width="12.400000000000002%" headers="mcps1.3.3.2.2.3.1.5.1.1 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p4808290419358">Inbound</p>
</td> </td>
<td class="cellrowborder" valign="top" width="32.43000000000001%" headers="mcps1.3.3.2.2.3.1.5.1.2 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p4119033619358">Used for communication through an internal network</p> <td class="cellrowborder" valign="top" width="32.43000000000001%" headers="mcps1.3.3.2.2.3.1.5.1.2 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p4119033619358">TCP</p>
<div class="note" id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_note94431642152511"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p1544354216252">Select a protocol used for communication through an internal network.</p>
</div></div>
</td> </td>
<td class="cellrowborder" valign="top" width="24.810000000000002%" headers="mcps1.3.3.2.2.3.1.5.1.3 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p4640703694621">Port or port range</p> <td class="cellrowborder" valign="top" width="24.810000000000002%" headers="mcps1.3.3.2.2.3.1.5.1.3 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p4640703694621">All</p>
</td> </td>
<td class="cellrowborder" valign="top" width="30.360000000000003%" headers="mcps1.3.3.2.2.3.1.5.1.4 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p6027368919358">Another security group</p> <td class="cellrowborder" valign="top" width="30.360000000000003%" headers="mcps1.3.3.2.2.3.1.5.1.4 "><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p6027368919358">ID of another security group</p>
<p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p182095333116">Example: 014d7278-XXX-530c95350d43</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -62,7 +65,7 @@
</div> </div>
<div class="section" id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_section115069253338"><a name="EN-US_TOPIC_0140323152__en-us_topic_0118534011_section115069253338"></a><a name="en-us_topic_0118534011_section115069253338"></a><h4 class="sectiontitle">Remotely Connecting to Linux ECSs Using SSH</h4><ul id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_ul1363591714330"><li id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_li7634131783318">Example scenario:<p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p18634417173313"><a name="EN-US_TOPIC_0140323152__en-us_topic_0118534011_li7634131783318"></a><a name="en-us_topic_0118534011_li7634131783318"></a>After creating Linux ECSs, you can add a security group rule to enable remote SSH access to the ECSs.</p> <div class="section" id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_section115069253338"><a name="EN-US_TOPIC_0140323152__en-us_topic_0118534011_section115069253338"></a><a name="en-us_topic_0118534011_section115069253338"></a><h4 class="sectiontitle">Remotely Connecting to Linux ECSs Using SSH</h4><ul id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_ul1363591714330"><li id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_li7634131783318">Example scenario:<p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p18634417173313"><a name="EN-US_TOPIC_0140323152__en-us_topic_0118534011_li7634131783318"></a><a name="en-us_topic_0118534011_li7634131783318"></a>After creating Linux ECSs, you can add a security group rule to enable remote SSH access to the ECSs.</p>
</li><li id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_li1063511713337">Security group rule: </li><li id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_li1063511713337">Security group rule:
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_table16351717123312" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_row19634417153313"><th align="left" class="cellrowborder" valign="top" width="14.649999999999999%" id="mcps1.3.5.2.2.1.1.5.1.1"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p96349178332"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b437245200">Direction</strong></p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_table16351717123312" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_row19634417153313"><th align="left" class="cellrowborder" valign="top" width="14.649999999999999%" id="mcps1.3.5.2.2.1.1.5.1.1"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p96349178332"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b2080645946">Direction</strong></p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="25.779999999999998%" id="mcps1.3.5.2.2.1.1.5.1.2"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p0634141717339"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b20568193181112">Protocol</strong></p> <th align="left" class="cellrowborder" valign="top" width="25.779999999999998%" id="mcps1.3.5.2.2.1.1.5.1.2"><p id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_p0634141717339"><strong id="EN-US_TOPIC_0140323152__en-us_topic_0118534011_b20568193181112">Protocol</strong></p>
</th> </th>

View File

@ -7,7 +7,7 @@
<div class="section" id="EN-US_TOPIC_0140323157__section1293516499168"><h4 class="sectiontitle">Security Group Rules</h4><p id="EN-US_TOPIC_0140323157__p2422159114619">After a security group is created, you can add rules to the security group. A rule applies either to inbound traffic (ingress) or outbound traffic (egress). After <span id="EN-US_TOPIC_0140323157__text17342815311">ECS</span>s are added to the security group, they are protected by the rules of that group.</p> <div class="section" id="EN-US_TOPIC_0140323157__section1293516499168"><h4 class="sectiontitle">Security Group Rules</h4><p id="EN-US_TOPIC_0140323157__p2422159114619">After a security group is created, you can add rules to the security group. A rule applies either to inbound traffic (ingress) or outbound traffic (egress). After <span id="EN-US_TOPIC_0140323157__text17342815311">ECS</span>s are added to the security group, they are protected by the rules of that group.</p>
<p id="EN-US_TOPIC_0140323157__p4631010194416">Each security group has default rules. For details, see <a href="en-us_topic_0140323154.html">Default Security Group and Rules</a>. You can also customize security group rules. For details, see <a href="en-us_topic_0030878383.html">Configuring Security Group Rules</a>.</p> <p id="EN-US_TOPIC_0140323157__p4631010194416">Each security group has default rules. For details, see <a href="en-us_topic_0140323154.html">Default Security Group and Rules</a>. You can also customize security group rules. For details, see <a href="en-us_topic_0030878383.html">Configuring Security Group Rules</a>.</p>
</div> </div>
<div class="section" id="EN-US_TOPIC_0140323157__section1795142593815"><h4 class="sectiontitle">Security Group Constraints</h4><ul id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_ul1481432183915"><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li125231406381">By default, you can create a maximum of 100 security groups in your cloud account.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li12289813111010">By default, you can add up to 50 security group rules to a security group.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li99487170101">By default, you can associate no more than five security groups with each ECS or extension NIC. In such a case, the rules of all the selected security groups are aggregated to take effect.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li516842520310">When creating a private network load balancer, you need to select a desired security group. Do not delete the default security group rules or ensure that the following requirements are met:<ul id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_ul10931123419409"><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li589310313403">Outbound rules: only allow data packets to the selected security group or only data packets from the peer load balancer.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li206455117413">Inbound rules: only allow data packets from the selected security group or only data packets from the peer load balancer.</li></ul> <div class="section" id="EN-US_TOPIC_0140323157__section1795142593815"><h4 class="sectiontitle">Security Group Constraints</h4><ul id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_ul1481432183915"><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li125231406381">By default, you can create a maximum of 100 security groups in your cloud account.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li12289813111010">By default, you can add up to 50 security group rules to a security group.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li99487170101">By default, you can add an ECS or extension NIC to up to five security groups. In such a case, the rules of all the selected security groups are aggregated to take effect.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li516842520310">When creating a private network load balancer, you need to select a desired security group. Do not delete the default security group rules or ensure that the following requirements are met:<ul id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_ul10931123419409"><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li589310313403">Outbound rules: only allow data packets to the selected security group or only data packets from the peer load balancer.</li><li id="EN-US_TOPIC_0140323157__en-us_topic_0118534002_li206455117413">Inbound rules: only allow data packets from the selected security group or only data packets from the peer load balancer.</li></ul>
</li></ul> </li></ul>
</div> </div>
</div> </div>

File diff suppressed because it is too large Load Diff