弹性云服务器 ECS-创建安全组规则(废弃):请求消息
请求消息
请求参数如表2所示。
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
parent_group_id |
是 |
String |
相关联的安全组ID,UUID格式。 |
ip_protocol |
是 |
String |
IP协议:icmp,tcp,或者udp。 |
from_port |
是 |
Integer |
起始端口,范围1-65535,且不大于to_port(icmp时,表示type,范围是0-255)。 |
to_port |
是 |
Integer |
终止端口,范围1-65535,且不小于from_port(icmp时,表示code,范围是0-255,且如果from_port为-1,to_port为-1表示任意ICMP报文)。 |
cidr |
否 |
String |
地址范围,CIDR格式,比如:“192.168.0.0/24”。 |
group_id |
否 |
String |
源安全组ID 若同时指定group_id和cidr,则以group_id为准。 |