Files
doc-exports/docs/vpc/api-ref/vpc_apiv3_0010.html
fanqinying 05458809ab VPC API 20250121 version
Reviewed-by: Szirovicza Gergő <a94652429@noreply.gitea.eco.tsi-dev.otc-service.com>
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: fanqinying <fanqinying@huawei.com>
Co-committed-by: fanqinying <fanqinying@huawei.com>
2025-09-11 14:33:55 +00:00

715 lines
65 KiB
HTML

<a name="vpc_apiv3_0010"></a><a name="vpc_apiv3_0010"></a>
<h1 class="topictitle1">Creating a Security Group</h1>
<div id="body1708331107508"><div class="section" id="vpc_apiv3_0010__section132411211388"><h4 class="sectiontitle">Function</h4><p id="vpc_apiv3_0010__p16241121785">A security group is a collection of access control rules for cloud instances, such as cloud servers, containers, and databases, that have the same security requirements and that are mutually trusted within a VPC. You can define different access control rules for a security group, and these rules are then applied to all the instances added to this security group.</p>
</div>
<div class="section" id="vpc_apiv3_0010__section152415211883"><h4 class="sectiontitle">Constraints</h4><p id="vpc_apiv3_0010__p12416211818">By default, a security group only allows instances in it to communicate with each other.</p>
</div>
<div class="section" id="vpc_apiv3_0010__section20241172119813"><h4 class="sectiontitle">URI</h4><p id="vpc_apiv3_0010__p192411821588">POST /v3/{project_id}/vpc/security-groups</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__table172421218820" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="vpc_apiv3_0010__row8242112115817"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="vpc_apiv3_0010__p42421021381">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="vpc_apiv3_0010__p1424282110817">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="vpc_apiv3_0010__p224217212084">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="vpc_apiv3_0010__p17242221084">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row17242621987"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="vpc_apiv3_0010__p8242821283">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="vpc_apiv3_0010__p624214211685">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="vpc_apiv3_0010__p1924314211183">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><ul id="vpc_apiv3_0010__ul8243152110819"><li id="vpc_apiv3_0010__li1824317216810"><p id="vpc_apiv3_0010__p132435213818"><a name="vpc_apiv3_0010__li1824317216810"></a><a name="li1824317216810"></a>Definition: ID of the project that a security group belongs to.</p>
</li><li id="vpc_apiv3_0010__li1024315211882"><p id="vpc_apiv3_0010__p424311211488"><a name="vpc_apiv3_0010__li1024315211882"></a><a name="li1024315211882"></a>Range: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_apiv3_0010__section324332112816"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__request_CreateSecurityGroupRequestBody" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="vpc_apiv3_0010__row1824362119819"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="vpc_apiv3_0010__p15243321685">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="vpc_apiv3_0010__p424410211288">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="vpc_apiv3_0010__p12448213810">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="vpc_apiv3_0010__p192445211186">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row324311219810"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="vpc_apiv3_0010__p16244162110814">dry_run</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="vpc_apiv3_0010__p1224412210810">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="vpc_apiv3_0010__p224417211685">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><ul id="vpc_apiv3_0010__ul1024414211483"><li id="vpc_apiv3_0010__li92441211381"><p id="vpc_apiv3_0010__p4244112116810"><a name="vpc_apiv3_0010__li92441211381"></a><a name="li92441211381"></a>Definition: Whether to only send the check request.</p>
</li><li id="vpc_apiv3_0010__li12244102119814"><p id="vpc_apiv3_0010__p024417211982"><a name="vpc_apiv3_0010__li12244102119814"></a><a name="li12244102119814"></a>Constraints: None</p>
</li><li id="vpc_apiv3_0010__li624419212815"><p id="vpc_apiv3_0010__p824422116815"><a name="vpc_apiv3_0010__li624419212815"></a><a name="li624419212815"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul1124492115818"><li id="vpc_apiv3_0010__li192441021285"><p id="vpc_apiv3_0010__p8244182116812"><a name="vpc_apiv3_0010__li192441021285"></a><a name="li192441021285"></a><strong id="vpc_apiv3_0010__b8244142113812">true</strong>: A check request will be sent and no security group will be created. Check items include mandatory parameters, request format, and constraints. If the check fails, an error will be returned. If the check succeeds, response code 202 will be returned.</p>
</li><li id="vpc_apiv3_0010__li18244102111810"><p id="vpc_apiv3_0010__p11244421184"><a name="vpc_apiv3_0010__li18244102111810"></a><a name="li18244102111810"></a><strong id="vpc_apiv3_0010__b52441218811">false</strong>: A request will be sent and a security group will be created.</p>
</li></ul>
</li><li id="vpc_apiv3_0010__li152441621084"><p id="vpc_apiv3_0010__p824411212814"><a name="vpc_apiv3_0010__li152441621084"></a><a name="li152441621084"></a>Default Value: <strong id="vpc_apiv3_0010__b724414212816">false</strong></p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row62435217819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="vpc_apiv3_0010__p182451621285">security_group</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="vpc_apiv3_0010__p62456216811">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="vpc_apiv3_0010__p1624512219812"><a href="#vpc_apiv3_0010__request_CreateSecurityGroupOption">CreateSecurityGroupOption</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><ul id="vpc_apiv3_0010__ul0245021584"><li id="vpc_apiv3_0010__li132451521088"><p id="vpc_apiv3_0010__p1124552117817"><a name="vpc_apiv3_0010__li132451521088"></a><a name="li132451521088"></a>Definition: Request body for creating a security group.</p>
</li><li id="vpc_apiv3_0010__li162451921188"><p id="vpc_apiv3_0010__p524514211682"><a name="vpc_apiv3_0010__li162451921188"></a><a name="li162451921188"></a>Constraints: None</p>
</li><li id="vpc_apiv3_0010__li72451211084"><p id="vpc_apiv3_0010__p162450211580"><a name="vpc_apiv3_0010__li72451211084"></a><a name="li72451211084"></a>Range: None</p>
</li><li id="vpc_apiv3_0010__li52451211681"><p id="vpc_apiv3_0010__p524519212818"><a name="vpc_apiv3_0010__li52451211681"></a><a name="li52451211681"></a>Default Value: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_apiv3_0010__request_CreateSecurityGroupOption"></a><a name="request_CreateSecurityGroupOption"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__request_CreateSecurityGroupOption" frame="border" border="1" rules="all"><caption><b>Table 3 </b>CreateSecurityGroupOption</caption><thead align="left"><tr id="vpc_apiv3_0010__row524562115819"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="vpc_apiv3_0010__p1124652110819">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="vpc_apiv3_0010__p172469211982">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="vpc_apiv3_0010__p152461221384">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="vpc_apiv3_0010__p1324614212810">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row324514211086"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="vpc_apiv3_0010__p424615210819">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="vpc_apiv3_0010__p8246621283">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="vpc_apiv3_0010__p72467211389">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="vpc_apiv3_0010__ul132469217811"><li id="vpc_apiv3_0010__li152461211286"><p id="vpc_apiv3_0010__p182461521286"><a name="vpc_apiv3_0010__li152461211286"></a><a name="li152461211286"></a>Definition: Name of a security group.</p>
</li><li id="vpc_apiv3_0010__li124617212082"><p id="vpc_apiv3_0010__p4246421787"><a name="vpc_apiv3_0010__li124617212082"></a><a name="li124617212082"></a>Constraints: The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</p>
</li><li id="vpc_apiv3_0010__li16246122113820"><p id="vpc_apiv3_0010__p182461521783"><a name="vpc_apiv3_0010__li16246122113820"></a><a name="li16246122113820"></a>Range: None</p>
</li><li id="vpc_apiv3_0010__li72476211381"><p id="vpc_apiv3_0010__p182477213816"><a name="vpc_apiv3_0010__li72476211381"></a><a name="li72476211381"></a>Default Value: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row22451216819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="vpc_apiv3_0010__p924719215816">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="vpc_apiv3_0010__p182471521882">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="vpc_apiv3_0010__p13247142111812">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="vpc_apiv3_0010__ul112470211889"><li id="vpc_apiv3_0010__li62475217816"><p id="vpc_apiv3_0010__p824715211980"><a name="vpc_apiv3_0010__li62475217816"></a><a name="li62475217816"></a>Definition: Description of a security group.</p>
</li><li id="vpc_apiv3_0010__li8247112118816"><p id="vpc_apiv3_0010__p8247621684"><a name="vpc_apiv3_0010__li8247112118816"></a><a name="li8247112118816"></a>Constraints: The value can contain no more than 255 characters and cannot contain angle brackets (&lt; or &gt;).</p>
</li><li id="vpc_apiv3_0010__li52479211782"><p id="vpc_apiv3_0010__p202476217816"><a name="vpc_apiv3_0010__li52479211782"></a><a name="li52479211782"></a>Range: None</p>
</li><li id="vpc_apiv3_0010__li122475211787"><p id="vpc_apiv3_0010__p112471211088"><a name="vpc_apiv3_0010__li122475211787"></a><a name="li122475211787"></a>Default Value: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row7246721181"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="vpc_apiv3_0010__p424715218811">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="vpc_apiv3_0010__p142478211883">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="vpc_apiv3_0010__p1124718211815">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="vpc_apiv3_0010__ul1324716211886"><li id="vpc_apiv3_0010__li162476211288"><p id="vpc_apiv3_0010__p824710211289"><a name="vpc_apiv3_0010__li162476211288"></a><a name="li162476211288"></a>Definition: ID of the enterprise project that a security group belongs to.</p>
</li><li id="vpc_apiv3_0010__li1924717211386"><p id="vpc_apiv3_0010__p624712117818"><a name="vpc_apiv3_0010__li1924717211386"></a><a name="li1924717211386"></a>Constraints:</p>
<ul id="vpc_apiv3_0010__ul1224813211783"><li id="vpc_apiv3_0010__li4248102113815"><p id="vpc_apiv3_0010__p92486211185"><a name="vpc_apiv3_0010__li4248102113815"></a><a name="li4248102113815"></a>The value can contain a maximum of 36 bytes.</p>
</li><li id="vpc_apiv3_0010__li1624818211189"><p id="vpc_apiv3_0010__p152488211182"><a name="vpc_apiv3_0010__li1624818211189"></a><a name="li1624818211189"></a>The value is <strong id="vpc_apiv3_0010__b15248142112818">0</strong> or a string in UUID format with hyphens (-).</p>
</li></ul>
</li><li id="vpc_apiv3_0010__li824852116818"><p id="vpc_apiv3_0010__p62487212812"><a name="vpc_apiv3_0010__li824852116818"></a><a name="li824852116818"></a>Range: None</p>
</li><li id="vpc_apiv3_0010__li1924811211284"><p id="vpc_apiv3_0010__p3248132110811"><a name="vpc_apiv3_0010__li1924811211284"></a><a name="li1924811211284"></a>Default Value: <strong id="vpc_apiv3_0010__b142485211817">0</strong> (default enterprise project)</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row324610211783"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="vpc_apiv3_0010__p424811219817">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="vpc_apiv3_0010__p0248921987">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="vpc_apiv3_0010__p52480211380">Array of <a href="#vpc_apiv3_0010__request_RequestTag">RequestTag</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="vpc_apiv3_0010__ul42485211581"><li id="vpc_apiv3_0010__li1824822111820"><p id="vpc_apiv3_0010__p424832116819"><a name="vpc_apiv3_0010__li1824822111820"></a><a name="li1824822111820"></a>Definition: Tags of a security group, including tag keys and tag values, which can be used to classify and identify resources. For details, see the tag objects.</p>
</li><li id="vpc_apiv3_0010__li1024819211818"><p id="vpc_apiv3_0010__p1124811211584"><a name="vpc_apiv3_0010__li1024819211818"></a><a name="li1024819211818"></a>Constraints: A maximum of 20 tag key-value pairs are supported.</p>
</li><li id="vpc_apiv3_0010__li152481621085"><p id="vpc_apiv3_0010__p9248152110818"><a name="vpc_apiv3_0010__li152481621085"></a><a name="li152481621085"></a>Range: None</p>
</li><li id="vpc_apiv3_0010__li1724842112816"><p id="vpc_apiv3_0010__p52486215816"><a name="vpc_apiv3_0010__li1724842112816"></a><a name="li1724842112816"></a>Default Value: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_apiv3_0010__request_RequestTag"></a><a name="request_RequestTag"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__request_RequestTag" frame="border" border="1" rules="all"><caption><b>Table 4 </b>RequestTag</caption><thead align="left"><tr id="vpc_apiv3_0010__row19249152110815"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="vpc_apiv3_0010__p132491721688">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="vpc_apiv3_0010__p1324917211182">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="vpc_apiv3_0010__p42491211086">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="vpc_apiv3_0010__p12491421187">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row1124912215820"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="vpc_apiv3_0010__p12249182120811">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="vpc_apiv3_0010__p1824910211811">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="vpc_apiv3_0010__p32499211082">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><ul id="vpc_apiv3_0010__ul161618319108"><li id="vpc_apiv3_0010__li1216112301020"><p id="vpc_apiv3_0010__p121614310106"><a name="vpc_apiv3_0010__li1216112301020"></a><a name="li1216112301020"></a>Definition: Tag key.</p>
</li><li id="vpc_apiv3_0010__li5889173382417">Constraints: None</li><li id="vpc_apiv3_0010__li916110371010"><p id="vpc_apiv3_0010__p1116119371015"><a name="vpc_apiv3_0010__li916110371010"></a><a name="li916110371010"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul616143101013"><li id="vpc_apiv3_0010__li616111311015"><p id="vpc_apiv3_0010__p31611331109"><a name="vpc_apiv3_0010__li616111311015"></a><a name="li616111311015"></a>Each key can contain up to 36 Unicode characters and cannot be left blank.</p>
</li><li id="vpc_apiv3_0010__li616119314105"><p id="vpc_apiv3_0010__p7161533105"><a name="vpc_apiv3_0010__li616119314105"></a><a name="li616119314105"></a>Each key value of a resource must be unique.</p>
</li><li id="vpc_apiv3_0010__li61614318105"><p id="vpc_apiv3_0010__p016115341012"><a name="vpc_apiv3_0010__li61614318105"></a><a name="li61614318105"></a>The value can contain:</p>
<ul id="vpc_apiv3_0010__ul101611932102"><li id="vpc_apiv3_0010__li516111318103"><p id="vpc_apiv3_0010__p181613341011"><a name="vpc_apiv3_0010__li516111318103"></a><a name="li516111318103"></a>Letters</p>
</li><li id="vpc_apiv3_0010__li17161637104"><p id="vpc_apiv3_0010__p116111391010"><a name="vpc_apiv3_0010__li17161637104"></a><a name="li17161637104"></a>Digits</p>
</li><li id="vpc_apiv3_0010__li20161163121019"><p id="vpc_apiv3_0010__p71615311018"><a name="vpc_apiv3_0010__li20161163121019"></a><a name="li20161163121019"></a>Special characters: underscores (_) ,at signs (@), and hyphens (-)</p>
</li></ul>
</li></ul>
</li><li id="vpc_apiv3_0010__li9997153292518"><p id="vpc_apiv3_0010__p4997173252510"><a name="vpc_apiv3_0010__li9997153292518"></a><a name="li9997153292518"></a>Default Value: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row1124917211480"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="vpc_apiv3_0010__p18250121683">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="vpc_apiv3_0010__p19250162110814">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="vpc_apiv3_0010__p72506219813">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><ul id="vpc_apiv3_0010__ul1416218316106"><li id="vpc_apiv3_0010__li2162732108"><p id="vpc_apiv3_0010__p7162037103"><a name="vpc_apiv3_0010__li2162732108"></a><a name="li2162732108"></a>Definition: Tag value.</p>
</li><li id="vpc_apiv3_0010__li16688184215250">Constraints: None</li><li id="vpc_apiv3_0010__li1416219316103"><p id="vpc_apiv3_0010__p416203181012"><a name="vpc_apiv3_0010__li1416219316103"></a><a name="li1416219316103"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul116216314109"><li id="vpc_apiv3_0010__li116219315109"><p id="vpc_apiv3_0010__p181627331015"><a name="vpc_apiv3_0010__li116219315109"></a><a name="li116219315109"></a>Each value can contain up to 43 Unicode characters and can be left blank.</p>
</li><li id="vpc_apiv3_0010__li161622301018"><p id="vpc_apiv3_0010__p816212311107"><a name="vpc_apiv3_0010__li161622301018"></a><a name="li161622301018"></a>The value can contain:</p>
<ul id="vpc_apiv3_0010__ul161627301018"><li id="vpc_apiv3_0010__li12162132105"><p id="vpc_apiv3_0010__p51628316109"><a name="vpc_apiv3_0010__li12162132105"></a><a name="li12162132105"></a>Letters</p>
</li><li id="vpc_apiv3_0010__li1216243121020"><p id="vpc_apiv3_0010__p151627312106"><a name="vpc_apiv3_0010__li1216243121020"></a><a name="li1216243121020"></a>Digits</p>
</li><li id="vpc_apiv3_0010__li13162032109"><p id="vpc_apiv3_0010__p151629381016"><a name="vpc_apiv3_0010__li13162032109"></a><a name="li13162032109"></a>Special characters: underscore (_), at signs (@), and hyphen (-)</p>
</li></ul>
</li></ul>
</li><li id="vpc_apiv3_0010__li792715113255"><p id="vpc_apiv3_0010__p492725120251"><a name="vpc_apiv3_0010__li792715113255"></a><a name="li792715113255"></a>Default Value: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_apiv3_0010__section425119218810"><h4 class="sectiontitle">Response Parameters</h4><p id="vpc_apiv3_0010__p1525232112820"><strong id="vpc_apiv3_0010__b1925217211684">Status code: 201</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__response_CreateSecurityGroupResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="vpc_apiv3_0010__row1525213211789"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="vpc_apiv3_0010__p11253162119818">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.2"><p id="vpc_apiv3_0010__p12253132110817">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.3.2.4.1.3"><p id="vpc_apiv3_0010__p182533211380">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row142521211814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiv3_0010__p1925372110813">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiv3_0010__p9253112115819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiv3_0010__ul52535211783"><li id="vpc_apiv3_0010__li19253821582"><p id="vpc_apiv3_0010__p152539211285"><a name="vpc_apiv3_0010__li19253821582"></a><a name="li19253821582"></a>Definition: Request ID.</p>
</li><li id="vpc_apiv3_0010__li725317210818"><p id="vpc_apiv3_0010__p92536216811"><a name="vpc_apiv3_0010__li725317210818"></a><a name="li725317210818"></a>Range: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row172525211389"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="vpc_apiv3_0010__p325314211484">security_group</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="vpc_apiv3_0010__p1125314217811"><a href="#vpc_apiv3_0010__response_SecurityGroupInfo">SecurityGroupInfo</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><ul id="vpc_apiv3_0010__ul16253102117811"><li id="vpc_apiv3_0010__li32531121582"><p id="vpc_apiv3_0010__p225319215810"><a name="vpc_apiv3_0010__li32531121582"></a><a name="li32531121582"></a>Definition: Response body for creating a security group.</p>
</li><li id="vpc_apiv3_0010__li32531219819"><p id="vpc_apiv3_0010__p15253182116817"><a name="vpc_apiv3_0010__li32531219819"></a><a name="li32531219819"></a>Range: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_apiv3_0010__response_SecurityGroupInfo"></a><a name="response_SecurityGroupInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__response_SecurityGroupInfo" frame="border" border="1" rules="all"><caption><b>Table 6 </b>SecurityGroupInfo</caption><thead align="left"><tr id="vpc_apiv3_0010__row1225411211083"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.4.2.4.1.1"><p id="vpc_apiv3_0010__p112543212082">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.4.2.4.1.2"><p id="vpc_apiv3_0010__p325516211384">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.4.2.4.1.3"><p id="vpc_apiv3_0010__p925514211486">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row13254821485"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p11255142114820">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p1325552114817">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul162551421781"><li id="vpc_apiv3_0010__li52553211816"><p id="vpc_apiv3_0010__p9255721581"><a name="vpc_apiv3_0010__li52553211816"></a><a name="li52553211816"></a>Definition: ID of a security group. After a security group is created, a security group ID is generated, which uniquely identifies the security group.</p>
</li><li id="vpc_apiv3_0010__li1125592113816"><p id="vpc_apiv3_0010__p12551121686"><a name="vpc_apiv3_0010__li1125592113816"></a><a name="li1125592113816"></a>Range: The value is in UUID format with hyphens (-).</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row3254521482"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p102554219814">name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p162550211588">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul425542113811"><li id="vpc_apiv3_0010__li32551121186"><p id="vpc_apiv3_0010__p125512211384"><a name="vpc_apiv3_0010__li32551121186"></a><a name="li32551121186"></a>Definition: Name of a security group.</p>
</li><li id="vpc_apiv3_0010__li122559212817"><p id="vpc_apiv3_0010__p825511218819"><a name="vpc_apiv3_0010__li122559212817"></a><a name="li122559212817"></a>Range: The value can contain 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row172549211980"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p152555213810">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p725532112810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1255132111813"><li id="vpc_apiv3_0010__li6256921585"><p id="vpc_apiv3_0010__p1325612212816"><a name="vpc_apiv3_0010__li6256921585"></a><a name="li6256921585"></a>Definition: Description of a security group.</p>
</li><li id="vpc_apiv3_0010__li1925615211886"><p id="vpc_apiv3_0010__p102569211388"><a name="vpc_apiv3_0010__li1925615211886"></a><a name="li1925615211886"></a>Range: The value can contain no more than 255 characters and cannot contain angle brackets (&lt; or &gt;).</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row1225417210814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p112564211188">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p1925632119811">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1825611211381"><li id="vpc_apiv3_0010__li72561321886"><p id="vpc_apiv3_0010__p6256221787"><a name="vpc_apiv3_0010__li72561321886"></a><a name="li72561321886"></a>Definition: ID of the project that a security group belongs to.</p>
</li><li id="vpc_apiv3_0010__li825652111811"><p id="vpc_apiv3_0010__p1725615213814"><a name="vpc_apiv3_0010__li825652111811"></a><a name="li825652111811"></a>Range: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row192544211817"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p025615218812">created_at</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p1525692115814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1125662111817"><li id="vpc_apiv3_0010__li18256421289"><p id="vpc_apiv3_0010__p3256112111819"><a name="vpc_apiv3_0010__li18256421289"></a><a name="li18256421289"></a>Definition: Time when a security group was created.</p>
</li><li id="vpc_apiv3_0010__li1425618212812"><p id="vpc_apiv3_0010__p1125615211689"><a name="vpc_apiv3_0010__li1425618212812"></a><a name="li1425618212812"></a>Range: UTC time in the format of yyyy-MM-ddTHH:mm:ssZ</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row92544211083"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p1025613211384">updated_at</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p1025611217815">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul825662116812"><li id="vpc_apiv3_0010__li9257142111814"><p id="vpc_apiv3_0010__p32578211819"><a name="vpc_apiv3_0010__li9257142111814"></a><a name="li9257142111814"></a>Definition: Time when a security group was updated.</p>
</li><li id="vpc_apiv3_0010__li172571421583"><p id="vpc_apiv3_0010__p122578211081"><a name="vpc_apiv3_0010__li172571421583"></a><a name="li172571421583"></a>Range: UTC time in the format of yyyy-MM-ddTHH:mm:ssZ</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row102541121986"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p1825714211088">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p152572212819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul625712119819"><li id="vpc_apiv3_0010__li42578214816"><p id="vpc_apiv3_0010__p725792113812"><a name="vpc_apiv3_0010__li42578214816"></a><a name="li42578214816"></a>Definition: ID of the enterprise project that a security group belongs to.</p>
</li><li id="vpc_apiv3_0010__li12577211786"><p id="vpc_apiv3_0010__p6257102114814"><a name="vpc_apiv3_0010__li12577211786"></a><a name="li12577211786"></a>Range: The value is <strong id="vpc_apiv3_0010__b4257121488">0</strong> or a string that contains a maximum of 36 characters in UUID format with hyphens (-). <strong id="vpc_apiv3_0010__b1125719214815">0</strong> indicates the default enterprise project.</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row225415211281"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p19257321989">tags</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p1125742117810">Array of <a href="#vpc_apiv3_0010__response_ResponseTag">ResponseTag</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul12570210820"><li id="vpc_apiv3_0010__li625719212810"><p id="vpc_apiv3_0010__p182576211285"><a name="vpc_apiv3_0010__li625719212810"></a><a name="li625719212810"></a>Definition: Tags of a security group, including tag keys and tag values, which can be used to classify and identify resources. For details, see the tag objects.</p>
</li><li id="vpc_apiv3_0010__li42576211882"><p id="vpc_apiv3_0010__p325716213813"><a name="vpc_apiv3_0010__li42576211882"></a><a name="li42576211882"></a>Range: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row1025414214816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.1 "><p id="vpc_apiv3_0010__p7258621988">security_group_rules</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.4.2.4.1.2 "><p id="vpc_apiv3_0010__p1325814213811">Array of <a href="#vpc_apiv3_0010__response_SecurityGroupRule">SecurityGroupRule</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.4.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1725815218820"><li id="vpc_apiv3_0010__li1625816211781"><p id="vpc_apiv3_0010__p1625802112819"><a name="vpc_apiv3_0010__li1625816211781"></a><a name="li1625816211781"></a>Definition: Security group rule list.</p>
</li><li id="vpc_apiv3_0010__li162583217818"><p id="vpc_apiv3_0010__p1125818211082"><a name="vpc_apiv3_0010__li162583217818"></a><a name="li162583217818"></a>Range: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_apiv3_0010__response_ResponseTag"></a><a name="response_ResponseTag"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__response_ResponseTag" frame="border" border="1" rules="all"><caption><b>Table 7 </b>ResponseTag</caption><thead align="left"><tr id="vpc_apiv3_0010__row1825817211086"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.1"><p id="vpc_apiv3_0010__p92590217812">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.2"><p id="vpc_apiv3_0010__p152597211488">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.5.2.4.1.3"><p id="vpc_apiv3_0010__p925919211489">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row72581721387"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="vpc_apiv3_0010__p1525918215810">key</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="vpc_apiv3_0010__p152598212813">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><ul id="vpc_apiv3_0010__ul3585326104"><li id="vpc_apiv3_0010__li145851921103"><p id="vpc_apiv3_0010__p65857241011"><a name="vpc_apiv3_0010__li145851921103"></a><a name="li145851921103"></a>Definition: Tag key.</p>
</li><li id="vpc_apiv3_0010__li4585622108"><p id="vpc_apiv3_0010__p158592191010"><a name="vpc_apiv3_0010__li4585622108"></a><a name="li4585622108"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul1058511241010"><li id="vpc_apiv3_0010__li0585102141010"><p id="vpc_apiv3_0010__p1158519211011"><a name="vpc_apiv3_0010__li0585102141010"></a><a name="li0585102141010"></a>Each key can contain up to 36 Unicode characters and cannot be left blank.</p>
</li><li id="vpc_apiv3_0010__li155853212101"><p id="vpc_apiv3_0010__p185857291017"><a name="vpc_apiv3_0010__li155853212101"></a><a name="li155853212101"></a>Each key value of a resource must be unique.</p>
</li><li id="vpc_apiv3_0010__li3585025105"><p id="vpc_apiv3_0010__p2586102171014"><a name="vpc_apiv3_0010__li3585025105"></a><a name="li3585025105"></a>The value can contain:</p>
<ul id="vpc_apiv3_0010__ul1358618271019"><li id="vpc_apiv3_0010__li658611215104"><p id="vpc_apiv3_0010__p17586192201013"><a name="vpc_apiv3_0010__li658611215104"></a><a name="li658611215104"></a>Letters</p>
</li><li id="vpc_apiv3_0010__li6586102191017"><p id="vpc_apiv3_0010__p658616271010"><a name="vpc_apiv3_0010__li6586102191017"></a><a name="li6586102191017"></a>Digits</p>
</li><li id="vpc_apiv3_0010__li758619218107"><p id="vpc_apiv3_0010__p558618214106"><a name="vpc_apiv3_0010__li758619218107"></a><a name="li758619218107"></a>Special characters: underscores (_) ,at signs (@), and hyphens (-)</p>
</li></ul>
</li></ul>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row6259182115818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="vpc_apiv3_0010__p9260122116811">value</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="vpc_apiv3_0010__p102605219817">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><ul id="vpc_apiv3_0010__ul10586625104"><li id="vpc_apiv3_0010__li7586172161016"><p id="vpc_apiv3_0010__p7586102121011"><a name="vpc_apiv3_0010__li7586172161016"></a><a name="li7586172161016"></a>Definition: Tag value.</p>
</li><li id="vpc_apiv3_0010__li458612213107"><p id="vpc_apiv3_0010__p185861261014"><a name="vpc_apiv3_0010__li458612213107"></a><a name="li458612213107"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul1058622161018"><li id="vpc_apiv3_0010__li35861222107"><p id="vpc_apiv3_0010__p19586722108"><a name="vpc_apiv3_0010__li35861222107"></a><a name="li35861222107"></a>Each value can contain up to 43 Unicode characters and can be left blank.</p>
</li><li id="vpc_apiv3_0010__li45861423105"><p id="vpc_apiv3_0010__p55864231017"><a name="vpc_apiv3_0010__li45861423105"></a><a name="li45861423105"></a>The value can contain:</p>
<ul id="vpc_apiv3_0010__ul13586102131015"><li id="vpc_apiv3_0010__li85865271019"><p id="vpc_apiv3_0010__p1958632151014"><a name="vpc_apiv3_0010__li85865271019"></a><a name="li85865271019"></a>Letters</p>
</li><li id="vpc_apiv3_0010__li758613211016"><p id="vpc_apiv3_0010__p458617211106"><a name="vpc_apiv3_0010__li758613211016"></a><a name="li758613211016"></a>Digits</p>
</li><li id="vpc_apiv3_0010__li1758614241017"><p id="vpc_apiv3_0010__p135867215104"><a name="vpc_apiv3_0010__li1758614241017"></a><a name="li1758614241017"></a>Special characters: underscore (_), at signs (@), and hyphen (-)</p>
</li></ul>
</li></ul>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="vpc_apiv3_0010__response_SecurityGroupRule"></a><a name="response_SecurityGroupRule"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__response_SecurityGroupRule" frame="border" border="1" rules="all"><caption><b>Table 8 </b>SecurityGroupRule</caption><thead align="left"><tr id="vpc_apiv3_0010__row3262821585"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.6.2.4.1.1"><p id="vpc_apiv3_0010__p143862113811">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.6.2.4.1.2"><p id="vpc_apiv3_0010__p1643815219810">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.6.2.4.1.3"><p id="vpc_apiv3_0010__p154383211389">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row12262122120818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p043882111812">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p184389211880">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul114384216819"><li id="vpc_apiv3_0010__li54381321487"><p id="vpc_apiv3_0010__p4438121787"><a name="vpc_apiv3_0010__li54381321487"></a><a name="li54381321487"></a>Definition: ID of a security group rule. After a security group rule is created, a security group rule ID is generated, which uniquely identifies the security group rule.</p>
</li><li id="vpc_apiv3_0010__li184381421489"><p id="vpc_apiv3_0010__p6438721983"><a name="vpc_apiv3_0010__li184381421489"></a><a name="li184381421489"></a>Range: The value is in UUID format with hyphens (-).</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row122621211283"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p2438132114813">description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p1438142110810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul143842118813"><li id="vpc_apiv3_0010__li84381121984"><p id="vpc_apiv3_0010__p84381521682"><a name="vpc_apiv3_0010__li84381121984"></a><a name="li84381121984"></a>Definition: Description of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li9438121689"><p id="vpc_apiv3_0010__p1643819219816"><a name="vpc_apiv3_0010__li9438121689"></a><a name="li9438121689"></a>Range: The value can contain no more than 255 characters and cannot contain angle brackets (&lt; or &gt;).</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row9262102112816"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p124381821388">security_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p743810213813">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul2438102115813"><li id="vpc_apiv3_0010__li1243862114815"><p id="vpc_apiv3_0010__p043862110816"><a name="vpc_apiv3_0010__li1243862114815"></a><a name="li1243862114815"></a>Definition: ID of the security group that a security group rule belongs to.</p>
</li><li id="vpc_apiv3_0010__li194385211185"><p id="vpc_apiv3_0010__p2043819211484"><a name="vpc_apiv3_0010__li194385211185"></a><a name="li194385211185"></a>Range: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row2262162119820"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p043919216813">direction</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p124391021189">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul174391821388"><li id="vpc_apiv3_0010__li154393212816"><p id="vpc_apiv3_0010__p1843910211081"><a name="vpc_apiv3_0010__li154393212816"></a><a name="li154393212816"></a>Definition: Inbound or outbound direction of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li8439102118810"><p id="vpc_apiv3_0010__p1443910217818"><a name="vpc_apiv3_0010__li8439102118810"></a><a name="li8439102118810"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul64398211889"><li id="vpc_apiv3_0010__li124391421984"><p id="vpc_apiv3_0010__p184391021883"><a name="vpc_apiv3_0010__li124391421984"></a><a name="li124391421984"></a><strong id="vpc_apiv3_0010__b1143982118817">ingress</strong>: inbound direction</p>
</li><li id="vpc_apiv3_0010__li1743972110811"><p id="vpc_apiv3_0010__p104396211818"><a name="vpc_apiv3_0010__li1743972110811"></a><a name="li1743972110811"></a><strong id="vpc_apiv3_0010__b44392210816">egress</strong>: outbound direction</p>
</li></ul>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row19262172110814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p3439162113818">protocol</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p114391215814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul243915219815"><li id="vpc_apiv3_0010__li1743911211984"><p id="vpc_apiv3_0010__p1043920211385"><a name="vpc_apiv3_0010__li1743911211984"></a><a name="li1743911211984"></a>Definition: Communication protocol of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li15439112111811"><p id="vpc_apiv3_0010__p343912211684"><a name="vpc_apiv3_0010__li15439112111811"></a><a name="li15439112111811"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul54393216810"><li id="vpc_apiv3_0010__li6439192115815"><p id="vpc_apiv3_0010__p1443920214812"><a name="vpc_apiv3_0010__li6439192115815"></a><a name="li6439192115815"></a><strong id="vpc_apiv3_0010__b14396215811">icmp</strong></p>
</li><li id="vpc_apiv3_0010__li94392211081"><p id="vpc_apiv3_0010__p144399211180"><a name="vpc_apiv3_0010__li94392211081"></a><a name="li94392211081"></a><strong id="vpc_apiv3_0010__b943918211389">tcp</strong></p>
</li><li id="vpc_apiv3_0010__li1043982112818"><p id="vpc_apiv3_0010__p1843962118812"><a name="vpc_apiv3_0010__li1043982112818"></a><a name="li1043982112818"></a><strong id="vpc_apiv3_0010__b74397215820">udp</strong></p>
</li><li id="vpc_apiv3_0010__li643911211788"><p id="vpc_apiv3_0010__p9439721085"><a name="vpc_apiv3_0010__li643911211788"></a><a name="li643911211788"></a><strong id="vpc_apiv3_0010__b194391121386">icmpv6</strong></p>
</li><li id="vpc_apiv3_0010__li14391521581"><p id="vpc_apiv3_0010__p5439112111816"><a name="vpc_apiv3_0010__li14391521581"></a><a name="li14391521581"></a>IP protocol number</p>
</li></ul>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row1026222114818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p104391221782">ethertype</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p943912211813">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1343922110814"><li id="vpc_apiv3_0010__li84394211882"><p id="vpc_apiv3_0010__p20439121881"><a name="vpc_apiv3_0010__li84394211882"></a><a name="li84394211882"></a>Definition: IP address version of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li1243962115812"><p id="vpc_apiv3_0010__p643915218819"><a name="vpc_apiv3_0010__li1243962115812"></a><a name="li1243962115812"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul134399211815"><li id="vpc_apiv3_0010__li1343916215818"><p id="vpc_apiv3_0010__p144391521183"><a name="vpc_apiv3_0010__li1343916215818"></a><a name="li1343916215818"></a>IPv4</p>
</li><li id="vpc_apiv3_0010__li184394211588"><p id="vpc_apiv3_0010__p743915212085"><a name="vpc_apiv3_0010__li184394211588"></a><a name="li184394211588"></a>IPv6</p>
</li></ul>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row326218216814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p154391421185">multiport</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p3439192114817">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul2043914211887"><li id="vpc_apiv3_0010__li1439121788"><p id="vpc_apiv3_0010__p13439521387"><a name="vpc_apiv3_0010__li1439121788"></a><a name="li1439121788"></a>Definition: Port range of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li04391211184"><p id="vpc_apiv3_0010__p74396211080"><a name="vpc_apiv3_0010__li04391211184"></a><a name="li04391211184"></a>Range: The value can be a single port (80), a port range (1-30), or inconsecutive ports separated by commas (22,3389,80).</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row126272120810"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p1443915213813">action</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p0439122110819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1043917211281"><li id="vpc_apiv3_0010__li1043912211481"><p id="vpc_apiv3_0010__p15439172114818"><a name="vpc_apiv3_0010__li1043912211481"></a><a name="li1043912211481"></a>Definition: Action of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li4439521583"><p id="vpc_apiv3_0010__p1143912212811"><a name="vpc_apiv3_0010__li4439521583"></a><a name="li4439521583"></a>Range:</p>
<ul id="vpc_apiv3_0010__ul8439521781"><li id="vpc_apiv3_0010__li1043913215817"><p id="vpc_apiv3_0010__p543982114818"><a name="vpc_apiv3_0010__li1043913215817"></a><a name="li1043913215817"></a><strong id="vpc_apiv3_0010__b134396219814">allow</strong></p>
</li><li id="vpc_apiv3_0010__li8439102115818"><p id="vpc_apiv3_0010__p124391211589"><a name="vpc_apiv3_0010__li8439102115818"></a><a name="li8439102115818"></a><strong id="vpc_apiv3_0010__b2439121383">deny</strong></p>
</li></ul>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row13262521482"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p14439121380">priority</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p174393211582">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1443952113817"><li id="vpc_apiv3_0010__li174393211084"><p id="vpc_apiv3_0010__p1439122115812"><a name="vpc_apiv3_0010__li174393211084"></a><a name="li174393211084"></a>Definition: Priority of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li164391721180"><p id="vpc_apiv3_0010__p18439421584"><a name="vpc_apiv3_0010__li164391721180"></a><a name="li164391721180"></a>Range: The value is from 1 to 100. The value 1 indicates the highest priority.</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row526214211786"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p94391821483">remote_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p8439521387">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul154391721286"><li id="vpc_apiv3_0010__li743916211583"><p id="vpc_apiv3_0010__p1743972114818"><a name="vpc_apiv3_0010__li743916211583"></a><a name="li743916211583"></a>Definition: ID of the remote security group of a security group rule. If the action of the rule is <strong id="vpc_apiv3_0010__b1644019211983">allow</strong>, the traffic from the remote security group is allowed. If the action of the rule is <strong id="vpc_apiv3_0010__b194401121589">deny</strong>, the traffic from the remote security group is denied.</p>
</li><li id="vpc_apiv3_0010__li044012215811"><p id="vpc_apiv3_0010__p744052110812"><a name="vpc_apiv3_0010__li044012215811"></a><a name="li044012215811"></a>Range: ID of an existing security group.</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row6262521588"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p84406211087">remote_ip_prefix</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p1244072112810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul0440112119818"><li id="vpc_apiv3_0010__li24406214819"><p id="vpc_apiv3_0010__p84401212819"><a name="vpc_apiv3_0010__li24406214819"></a><a name="li24406214819"></a>Definition: Remote IP address of a security group rule.</p>
<ul id="vpc_apiv3_0010__ul5440132113815"><li id="vpc_apiv3_0010__li744012211187"><p id="vpc_apiv3_0010__p94402021287"><a name="vpc_apiv3_0010__li744012211187"></a><a name="li744012211187"></a>If <strong id="vpc_apiv3_0010__b164401621587">direction</strong> is set to <strong id="vpc_apiv3_0010__b144014211085">egress</strong>, the IP address is the outbound destination and will be accessed by instances in the security group.</p>
</li><li id="vpc_apiv3_0010__li844019211683"><p id="vpc_apiv3_0010__p1644013213812"><a name="vpc_apiv3_0010__li844019211683"></a><a name="li844019211683"></a>If <strong id="vpc_apiv3_0010__b184402211282">direction</strong> is set to <strong id="vpc_apiv3_0010__b16440132120810">ingress</strong>, the IP address is the inbound source and will access the instances in the security group.</p>
</li></ul>
</li><li id="vpc_apiv3_0010__li12440162110820"><p id="vpc_apiv3_0010__p154409211819"><a name="vpc_apiv3_0010__li12440162110820"></a><a name="li12440162110820"></a>Range: CIDR notation format. If an IP address is transferred in the request, the IP address is automatically formatted with /32 as the subnet mask, for example, 192.168.21.45/32.</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row112621321680"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p444015212083">remote_address_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p174407215819">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul84401921882"><li id="vpc_apiv3_0010__li0440102115818"><p id="vpc_apiv3_0010__p1440182111820"><a name="vpc_apiv3_0010__li0440102115818"></a><a name="li0440102115818"></a>Definition: ID of the remote IP address group of a security group rule.</p>
</li><li id="vpc_apiv3_0010__li144401621982"><p id="vpc_apiv3_0010__p944016211489"><a name="vpc_apiv3_0010__li144401621982"></a><a name="li144401621982"></a>Range: ID of an existing IP address group.</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row6262921880"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p1644014211285">created_at</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p144018211183">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul34402021387"><li id="vpc_apiv3_0010__li144409219814"><p id="vpc_apiv3_0010__p12440921986"><a name="vpc_apiv3_0010__li144409219814"></a><a name="li144409219814"></a>Definition: Time when a security group rule was created.</p>
</li><li id="vpc_apiv3_0010__li04402217812"><p id="vpc_apiv3_0010__p4440122110819"><a name="vpc_apiv3_0010__li04402217812"></a><a name="li04402217812"></a>Range: UTC time in the format of yyyy-MM-ddTHH:mm:ssZ</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row172629211485"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p184408211684">updated_at</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p12440122112811">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1944016213818"><li id="vpc_apiv3_0010__li1744018211486"><p id="vpc_apiv3_0010__p1744016216817"><a name="vpc_apiv3_0010__li1744018211486"></a><a name="li1744018211486"></a>Definition: Time when a security group rule was updated.</p>
</li><li id="vpc_apiv3_0010__li944062119811"><p id="vpc_apiv3_0010__p134401212810"><a name="vpc_apiv3_0010__li944062119811"></a><a name="li944062119811"></a>Range: UTC time in the format of yyyy-MM-ddTHH:mm:ssZ</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row5262202110818"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.1 "><p id="vpc_apiv3_0010__p1344016219814">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.6.2.4.1.2 "><p id="vpc_apiv3_0010__p174405213820">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.6.2.4.1.3 "><ul id="vpc_apiv3_0010__ul1444092120811"><li id="vpc_apiv3_0010__li844020211286"><p id="vpc_apiv3_0010__p19440221980"><a name="vpc_apiv3_0010__li844020211286"></a><a name="li844020211286"></a>Definition: ID of the project that a security group rule belongs to.</p>
</li><li id="vpc_apiv3_0010__li1144062117814"><p id="vpc_apiv3_0010__p14406211787"><a name="vpc_apiv3_0010__li1144062117814"></a><a name="li1144062117814"></a>Range: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<p id="vpc_apiv3_0010__p17440121386"><strong id="vpc_apiv3_0010__b13440162119816">Status code: 202</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="vpc_apiv3_0010__row026717213815"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.8.2.4.1.1"><p id="vpc_apiv3_0010__p16441421682">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.8.2.4.1.2"><p id="vpc_apiv3_0010__p944115211587">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.8.2.4.1.3"><p id="vpc_apiv3_0010__p8441162114810">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row8267421982"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.8.2.4.1.1 "><p id="vpc_apiv3_0010__p204414216811">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.8.2.4.1.2 "><p id="vpc_apiv3_0010__p744116211887">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.4.1.3 "><ul id="vpc_apiv3_0010__ul94411212811"><li id="vpc_apiv3_0010__li1444119214814"><p id="vpc_apiv3_0010__p94414211983"><a name="vpc_apiv3_0010__li1444119214814"></a><a name="li1444119214814"></a>Definition: Request ID.</p>
</li><li id="vpc_apiv3_0010__li114411621186"><p id="vpc_apiv3_0010__p1044114212811"><a name="vpc_apiv3_0010__li114411621186"></a><a name="li114411621186"></a>Range: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row926732113814"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.8.2.4.1.1 "><p id="vpc_apiv3_0010__p13441202117817">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.8.2.4.1.2 "><p id="vpc_apiv3_0010__p1244162116810">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.4.1.3 "><ul id="vpc_apiv3_0010__ul14411921183"><li id="vpc_apiv3_0010__li16441421184"><p id="vpc_apiv3_0010__p114414211087"><a name="vpc_apiv3_0010__li16441421184"></a><a name="li16441421184"></a>Definition: Error message.</p>
</li><li id="vpc_apiv3_0010__li1044115211818"><p id="vpc_apiv3_0010__p84411921881"><a name="vpc_apiv3_0010__li1044115211818"></a><a name="li1044115211818"></a>Range: None</p>
</li></ul>
</td>
</tr>
<tr id="vpc_apiv3_0010__row42671321182"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.8.2.4.1.1 "><p id="vpc_apiv3_0010__p114417218818">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.8.2.4.1.2 "><p id="vpc_apiv3_0010__p1044116218814">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.8.2.4.1.3 "><ul id="vpc_apiv3_0010__ul204414214820"><li id="vpc_apiv3_0010__li9441721580"><p id="vpc_apiv3_0010__p12441192116819"><a name="vpc_apiv3_0010__li9441721580"></a><a name="li9441721580"></a>Definition: Error code.</p>
</li><li id="vpc_apiv3_0010__li344116211388"><p id="vpc_apiv3_0010__p1144113213816"><a name="vpc_apiv3_0010__li344116211388"></a><a name="li344116211388"></a>Range: None</p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_apiv3_0010__section94413211081"><h4 class="sectiontitle">Example Requests</h4><ul id="vpc_apiv3_0010__ul344142115811"><li id="vpc_apiv3_0010__li1444114212813"><p id="vpc_apiv3_0010__p1944111211189"><a name="vpc_apiv3_0010__li1444114212813"></a><a name="li1444114212813"></a>Create a security group, set its name to <strong id="vpc_apiv3_0010__b1441132118812">security_group_1</strong> and description to <strong id="vpc_apiv3_0010__b1044111211080">security group description</strong>, and specify the request as a prefight request.</p>
<pre class="screen" id="vpc_apiv3_0010__screen10441121582">POST https://{Endpoint}/v3/{project_id}/vpc/security-groups
{
"security_group" : {
"name" : "security_group_1",
"description" : "security group description"
},
"dry_run" : true
}</pre>
</li><li id="vpc_apiv3_0010__li8441121385"><p id="vpc_apiv3_0010__p1744119211789"><a name="vpc_apiv3_0010__li8441121385"></a><a name="li8441121385"></a>Create a security group and set its name to <em id="vpc_apiv3_0010__i9441421288">security_group_1</em>* and description to <strong id="vpc_apiv3_0010__b1044112211888">security group description</strong>.</p>
<pre class="screen" id="vpc_apiv3_0010__screen15441192111810">POST https://{Endpoint}/v3/{project_id}/vpc/security-groups
{
"security_group" : {
"name" : "security_group_1",
"description" : "security group description"
}
}</pre>
</li></ul>
</div>
<div class="section" id="vpc_apiv3_0010__section14411221484"><h4 class="sectiontitle">Example Responses</h4><p id="vpc_apiv3_0010__p1544152111816"><strong id="vpc_apiv3_0010__b10441132111811">Status code: 201</strong></p>
<p id="vpc_apiv3_0010__p94411221483">Normal response to the POST operation. For more status codes, see <a href="vpc_api_0002.html">Status Code</a>.</p>
<pre class="screen" id="vpc_apiv3_0010__screen104411121288">{
"security_group" : {
"id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"name" : "security_group_1",
"project_id" : "060576782980d5762f9ec014dd2f1148",
"description" : "security group description",
"enterprise_project_id" : "0",
"tags" : [ ],
"security_group_rules" : [ {
"id" : "f11a3824-ac19-4fad-b4f1-c5f4a6dd0a80",
"project_id" : "060576782980d5762f9ec014dd2f1148",
"security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"remote_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"direction" : "ingress",
"protocol" : null,
"description" : "",
"created_at" : "2020-07-09T05:56:27Z",
"updated_at" : "2020-07-09T05:56:27Z",
"ethertype" : "IPv6",
"remote_ip_prefix" : null,
"multiport" : null,
"remote_address_group_id" : null,
"action" : "allow",
"priority" : 100
}, {
"id" : "3d6480e8-9ea4-46dc-bb1b-8db190cd5677",
"project_id" : "060576782980d5762f9ec014dd2f1148",
"security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"remote_group_id" : null,
"direction" : "egress",
"protocol" : null,
"description" : "",
"created_at" : "2020-07-09T05:56:27Z",
"updated_at" : "2020-07-09T05:56:27Z",
"ethertype" : "IPv6",
"remote_ip_prefix" : null,
"multiport" : null,
"remote_address_group_id" : null,
"action" : "allow",
"priority" : 100
}, {
"id" : "9581f18c-1fdd-43da-ace9-7758a56ef28a",
"project_id" : "060576782980d5762f9ec014dd2f1148",
"security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"remote_group_id" : null,
"direction" : "egress",
"protocol" : null,
"description" : "",
"created_at" : "2020-07-09T05:56:27Z",
"updated_at" : "2020-07-09T05:56:27Z",
"ethertype" : "IPv4",
"remote_ip_prefix" : null,
"multiport" : null,
"remote_address_group_id" : null,
"action" : "allow",
"priority" : 100
}, {
"id" : "a3ba270e-e58b-432d-a912-aeb7eace9fb8",
"project_id" : "060576782980d5762f9ec014dd2f1148",
"security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"remote_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
"direction" : "ingress",
"protocol" : null,
"description" : "",
"created_at" : "2020-07-09T05:56:27Z",
"updated_at" : "2020-07-09T05:56:27Z",
"ethertype" : "IPv4",
"remote_ip_prefix" : null,
"multiport" : null,
"remote_address_group_id" : null,
"action" : "allow",
"priority" : 100
} ],
"created_at" : "2020-07-09T05:56:27Z",
"updated_at" : "2020-07-09T05:56:27Z"
},
"request_id" : "a8cf4f79ca3c22ca685e7e8872e8c20b"
}</pre>
<p id="vpc_apiv3_0010__p6442221284"><strong id="vpc_apiv3_0010__b1844222116815">Status code: 202</strong></p>
<p id="vpc_apiv3_0010__p1644222117813">Normal response for the specified pre-check request of API V3. For more status codes, see <a href="vpc_api_0002.html">Status Code</a>.</p>
<pre class="screen" id="vpc_apiv3_0010__screen2442192118817">{
"error_msg" : "Request validation has been passed with dry run...",
"error_code" : "SYS.0202",
"request_id" : "cfd81aea3f59eac7128dba4b36d516c8"
}</pre>
</div>
<div class="section" id="vpc_apiv3_0010__section14442102112818"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="vpc_apiv3_0010__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="vpc_apiv3_0010__row18273421689"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="vpc_apiv3_0010__p194421211888">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="vpc_apiv3_0010__p1244212115811">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="vpc_apiv3_0010__row152731921984"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="vpc_apiv3_0010__p184428218817">201</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="vpc_apiv3_0010__p18442112117814">Normal response to the POST operation. For more status codes, see <a href="vpc_api_0002.html">Status Code</a>.</p>
</td>
</tr>
<tr id="vpc_apiv3_0010__row627362114812"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="vpc_apiv3_0010__p10442152113811">202</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="vpc_apiv3_0010__p1544272114810">Normal response for the specified pre-check request of API V3. For more status codes, see <a href="vpc_api_0002.html">Status Code</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="vpc_apiv3_0010__section244218211785"><h4 class="sectiontitle">Error Codes</h4><p id="vpc_apiv3_0010__p34421521486">See <a href="vpc_api_0003.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_apiv3_0009.html">Security Group</a></div>
</div>
</div>