Security_groupsΒΆ
Security group interface (1.1 extension).
-
class
novaclient.v2.security_groups.
SecurityGroup
(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.
Returns: An instance of novaclient.base.TupleWithMeta
-
update
() DEPRECATED: Update this security group.
Returns: SecurityGroup
-
class
novaclient.v2.security_groups.
SecurityGroupManager
(api) Bases:
novaclient.base.ManagerWithFind
DEPRECATED
-
create
(*a, **k) DEPRECATED: 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
(*a, **k) DEPRECATED: Delete a security group
Parameters: group – The security group to delete (group or ID) Returns: An instance of novaclient.base.TupleWithMeta
-
get
(*a, **k) DEPRECATED: Get a security group
Parameters: group_id – The security group to get by ID Return type: SecurityGroup
-
list
(*a, **k) DEPRECATED: Get a list of all security_groups
Return type: list of SecurityGroup
-
resource_class
alias of
SecurityGroup
-
update
(*a, **k) DEPRECATED: Update a security group
Parameters: - group – The security group to update (group or ID)
- name – name for the security group to update
- description – description for the security group to update
Return type: the security group object
-