The novaclient.v1_1.security_groups Module

Security group interface (1.1 extension).

class novaclient.v1_1.security_groups.SecurityGroup(manager, info, loaded=False)

Bases: novaclient.base.Resource

delete()
class novaclient.v1_1.security_groups.SecurityGroupManager(api)

Bases: novaclient.base.ManagerWithFind

create(name, description)

Create a security group

Parameters:
  • name – name for the security group to create
  • description – description of the security group
Return type:

the security group object

delete(group)

Delete a security group

Parameters:group – The security group to delete (group or ID)
Return type:None
get(group_id)

Get a security group

Parameters:group_id – The security group to get by ID
Return type:SecurityGroup
list(search_opts=None)

Get a list of all security_groups

Return type:list of SecurityGroup
resource_class

alias of SecurityGroup

This Page