Security_group_default_rulesΒΆ

Security group default rules interface.

class novaclient.v2.security_group_default_rules.SecurityGroupDefaultRule(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 default rule.

Returns:An instance of novaclient.base.TupleWithMeta
class novaclient.v2.security_group_default_rules.SecurityGroupDefaultRuleManager(api)

Bases: novaclient.base.Manager

DEPRECATED

create(*a, **k)

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

DEPRECATED: Delete a security group default rule

Parameters:rule – The security group default rule to delete (ID or Class)
Returns:An instance of novaclient.base.TupleWithMeta
list(*a, **k)

DEPRECATED: Get a list of all security group default rules

Return type:list of SecurityGroupDefaultRule
resource_class

alias of SecurityGroupDefaultRule