创建防火墙-CreateSecurityGroup(即将下线)

—— 需使用用CreateFirewall 替换

创建防火墙组

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域, 参见 地域和可用区列表Yes
GroupNamestring防火墙组名称Yes
Descriptionstring防火墙组描述Yes
Rule.nstring防火墙规则,格式见请求实例Yes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes

Request Example

http(s)://api.auto-ai.com.cn/?Action=CreateSecurityGroup
&Region=cn-bj2
&GroupName=NewSecurityGroup
&Rule.1=UDP|53|0.0.0.0/0|ACCEPT|50
&Rule.0=TCP|3306|0.0.0.0/0|DROP|50

Response Example

{
    "Action": "CreateSecurityGroupResponse",
    "RetCode": 0
}