添加规则到安全组(AddSecurityGroupRule)
管理员可以使用AddSecurityGroupRule添加规则到安全组。例如:
AddSecurityGroupRule rules="[{'type':'Ingress', 'protocol':'TCP', 'startPort':'22', \
'endPort':'22', 'allowedCidr':'0.0.0.0/0'}]" securityGroupUuid=090990371a5e4949a2a129628ba91275
参数(Parameters)
名字 | 描述 | 可选的 | 可选的参数值 | 起始支持版本 |
---|---|---|---|---|
securityGroupUuid | 安全组uuid | 0.6 | ||
rules | 安全组中的规则 | 0.6 | ||
remoteSecurityGroupUuids | 规则生效的源安全组 | 是 | 0.6 | |
userTags | 用户标签,请参见 创建用户标签(CreateUserTag);资源类型是 SecurityGroupVO | 是 | 0.6 | |
systemTags | 系统标签,请参见 创建系统标签(CreateSystemTag); 资源类型是 SecurityGroupVO | 是 | 0.6 | |
timeout | 是 |