Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.63 KB

File metadata and controls

34 lines (25 loc) · 1.63 KB

CreateSecurityRulePayload

Properties

Name Type Description Notes
direction str 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

from hyperstack.models.create_security_rule_payload import CreateSecurityRulePayload

# TODO update the JSON string below
json = "{}"
# create an instance of CreateSecurityRulePayload from a JSON string
create_security_rule_payload_instance = CreateSecurityRulePayload.from_json(json)
# print the JSON string representation of the object
print(CreateSecurityRulePayload.to_json())

# convert the object into a dict
create_security_rule_payload_dict = create_security_rule_payload_instance.to_dict()
# create an instance of CreateSecurityRulePayload from a dict
create_security_rule_payload_from_dict = CreateSecurityRulePayload.from_dict(create_security_rule_payload_dict)

[Back to Model list] [Back to API list] [Back to README]