Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.55 KB

File metadata and controls

32 lines (23 loc) · 1.55 KB

CreateSecurityRulePayload

Properties

Name Type Description Notes
direction str The direction of traffic that the firewall rule applies to.
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.
ethertype str The Ethernet type associated with the rule.
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

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_form_dict = create_security_rule_payload.from_dict(create_security_rule_payload_dict)

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