Security_group_rules
Security group rules interface (1.1 extension).
-
class novaclient.v1_1.security_group_rules.SecurityGroupRule(manager, info, loaded=False)
Bases: novaclient.openstack.common.apiclient.base.Resource
-
SecurityGroupRule.delete()
-
class novaclient.v1_1.security_group_rules.SecurityGroupRuleManager(api)
Bases: novaclient.base.Manager
-
SecurityGroupRuleManager.create(parent_group_id, ip_protocol=None, from_port=None, to_port=None, cidr=None, group_id=None)
Create a security group rule
Parameters: |
- ip_protocol – IP protocol, one of ‘tcp’, ‘udp’ or ‘icmp’
- from_port – Source port
- to_port – Destination port
- cidr – Destination IP address(es) in CIDR notation
- group_id – Security group id (int)
- parent_group_id – Parent security group id (int)
|
-
SecurityGroupRuleManager.delete(rule)
Delete a security group rule
Parameters: | rule – The security group rule to delete (ID or Class) |
-
SecurityGroupRuleManager.resource_class
alias of SecurityGroupRule