Security_groups
Security group interface (1.1 extension).
-
class novaclient.v1_1.security_groups.SecurityGroup(manager, info, loaded=False)
Bases: novaclient.openstack.common.apiclient.base.Resource
-
SecurityGroup.delete()
-
SecurityGroup.update()
-
class novaclient.v1_1.security_groups.SecurityGroupManager(api)
Bases: novaclient.base.ManagerWithFind
-
SecurityGroupManager.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
|
-
SecurityGroupManager.delete(group)
Delete a security group
Parameters: | group – The security group to delete (group or ID) |
Return type: | None |
-
SecurityGroupManager.get(group_id)
Get a security group
Parameters: | group_id – The security group to get by ID |
Return type: | SecurityGroup |
-
SecurityGroupManager.list(search_opts=None)
Get a list of all security_groups
Return type: | list of SecurityGroup |
-
SecurityGroupManager.resource_class
alias of SecurityGroup
-
SecurityGroupManager.update(group, name, description)
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
|