Security_group_rulesΒΆ

Security group rules interface (1.1 extension).

class novaclient.v2.security_group_rules.SecurityGroupRule(manager, info, loaded=False, resp=None)

Bases: novaclient.base.Resource

DEPRECATED

Populate and bind to a manager.

Parameters:
  • manager – BaseManager object
  • info – dictionary representing resource attributes
  • loaded – prevent lazy-loading if set to True
  • resp – Response or list of Response objects
delete()

DEPRECATED: Delete this security group rule.

Returns:An instance of novaclient.base.TupleWithMeta
class novaclient.v2.security_group_rules.SecurityGroupRuleManager(api)

Bases: novaclient.base.Manager

DEPRECATED

create(*a, **k)

DEPRECATED: 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)
delete(*a, **k)

DEPRECATED: Delete a security group rule

Parameters:rule – The security group rule to delete (ID or Class)
Returns:An instance of novaclient.base.TupleWithMeta
resource_class

alias of SecurityGroupRule