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.
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.
port_range_min
int
[optional]
port_range_max
int
[optional]
Example
fromhyperstack.models.create_security_rule_payloadimportCreateSecurityRulePayload# TODO update the JSON string belowjson="{}"# create an instance of CreateSecurityRulePayload from a JSON stringcreate_security_rule_payload_instance=CreateSecurityRulePayload.from_json(json)
# print the JSON string representation of the objectprint(CreateSecurityRulePayload.to_json())
# convert the object into a dictcreate_security_rule_payload_dict=create_security_rule_payload_instance.to_dict()
# create an instance of CreateSecurityRulePayload from a dictcreate_security_rule_payload_from_dict=CreateSecurityRulePayload.from_dict(create_security_rule_payload_dict)