The troveclient.v1.security_groups Module

The troveclient.v1.security_groups Module

class troveclient.v1.security_groups.SecurityGroup(manager, info, loaded=False)

Bases: troveclient.base.Resource

Security Group is a resource used to hold security group information.

class troveclient.v1.security_groups.SecurityGroupRule(manager, info, loaded=False)

Bases: troveclient.base.Resource

This resource is used to hold security group rule information.

class troveclient.v1.security_groups.SecurityGroupRules(api)

Bases: troveclient.base.ManagerWithFind

Manage SecurityGroupRules resources.

create(group_id, cidr)

Create a new security group rule.

delete(security_group_rule)

Delete the specified security group rule.

Parameters:security_group_rule – The security group rule to delete
list()
resource_class

alias of SecurityGroupRule

class troveclient.v1.security_groups.SecurityGroups(api)

Bases: troveclient.base.ManagerWithFind

Manage SecurityGroup resources.

get(security_group)

Get a specific security group.

Return type:SecurityGroup
list(limit=None, marker=None)

Get a list of all security groups.

Return type:list of SecurityGroup.
resource_class

alias of SecurityGroup

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

python-troveclient 2.12.1.dev1