You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The direction of traffic that the firewall rule applies to.
ethertype
str
The Ethernet type associated with the rule.
port_range_max
int
The maximum port number in the range of ports to be allowed by the firewall rule.
[optional]
port_range_min
int
The minimum port number in the range of ports to be allowed by the firewall rule.
[optional]
protocol
str
The network protocol associated with the rule. Call the `GET /core/sg-rules-protocols` endpoint to retrieve a list of permitted network protocols.
remote_ip_prefix
str
The IP address range that is allowed to access the specified port. Use "0.0.0.0/0" to allow any IP address.
Example
fromhyperstack.models.create_firewall_rule_payloadimportCreateFirewallRulePayload# TODO update the JSON string belowjson="{}"# create an instance of CreateFirewallRulePayload from a JSON stringcreate_firewall_rule_payload_instance=CreateFirewallRulePayload.from_json(json)
# print the JSON string representation of the objectprint(CreateFirewallRulePayload.to_json())
# convert the object into a dictcreate_firewall_rule_payload_dict=create_firewall_rule_payload_instance.to_dict()
# create an instance of CreateFirewallRulePayload from a dictcreate_firewall_rule_payload_from_dict=CreateFirewallRulePayload.from_dict(create_firewall_rule_payload_dict)