# 创建安全组 (/products/qvm/security-group/2-create-security-group)



最近更新时间: 2021-06-03 11:51:05

# 请求路径 [#请求路径]

> `POST` /v1/vm/sgr

# 请求参数 [#请求参数]

| 名称                                             | 类型     | 位置   | 必须 | 描述 |
| ---------------------------------------------- | ------ | ---- | -- | -- |
| region\_id                                     | string | body | 是  |    |
| 安全组所属地域 ID。您可以调用 DescribeRegions 查看最新的七牛云地域列表。 |        |      |    |    |

|
\| security\_group\_name | string | body | 否 |

安全组名称。

长度为 2\~128 个英文或中文字符。必须以大小字母或中文开头，不能以 [http://和](http://和) [https://开头。可以包含数字、半角冒号（:）、下划线（\\\_）或者连字符（-）。](https://开头。可以包含数字、半角冒号（:）、下划线（\\_）或者连字符（-）。)

默认值：空。

|
\| description | string | body | 否 |

安全组描述信息。长度为 2\~256 个英文或中文字符，不能以 [http://和](http://和) [https://开头。默认值：空。](https://开头。默认值：空。)

|
\| vpc\_id | string | body | 否 |

安全组所属 VPC ID

|
\| client\_token | string | body | 否 |

保证请求幂等性。从您的客户端生成一个参数值，确保不同请求间该参数值唯一。

|

# 返回值 [#返回值]

| 名称          | 类型     | 描述    |
| ----------- | ------ | ----- |
| request\_id | string | 请求 ID |
