forked from docs/doc-exports
ECS API 20231016 version
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<a name="EN-US_TOPIC_0067161469"></a><a name="EN-US_TOPIC_0067161469"></a>
|
||||
|
||||
<h1 class="topictitle1">Adding a Security Group</h1>
|
||||
<div id="body1500454627058"><div class="section" id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_section16588975"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0067161469__p31584679103330">This API is used to add an <span id="EN-US_TOPIC_0067161469__text25069431401">ECS</span> to a security group.</p>
|
||||
<h1 class="topictitle1">Adding an ECS to a Security Group</h1>
|
||||
<div id="body1500454627058"><div class="section" id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_section16588975"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0067161469__p31584679103330">This API is used to add an <span id="EN-US_TOPIC_0067161469__text8183185152410">ECS</span> to a security group.</p>
|
||||
<p id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_p8601970">You are suggested to add an <span id="EN-US_TOPIC_0067161469__text1115420441709">ECS</span> to a maximum of five security groups.</p>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_section15083054"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0067161469__p66228246145352">POST /v2.1/{project_id}/servers/{server_id}/action</p>
|
||||
@ -84,8 +84,10 @@
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_section41457614"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0067161469__p498469151749">None</p>
|
||||
</div>
|
||||
<div class="section" id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_section37574207"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0067161469__screen89881759139">POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action</pre>
|
||||
<pre class="screen" id="EN-US_TOPIC_0067161469__screen3155298117452">{
|
||||
<div class="section" id="EN-US_TOPIC_0067161469__en-us_topic_0057973179_section37574207"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0067161469__p1344112715417">Add a security group to a specified ECS.</p>
|
||||
<pre class="screen" id="EN-US_TOPIC_0067161469__screen3155298117452">POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action
|
||||
|
||||
{
|
||||
"addSecurityGroup": {
|
||||
"name": "sg-test"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user