in ec2stack/providers/cloudstack/security_groups.py [0:0]
def _delete_security_group_request():
"""
Request to delete a security group.
@return: Response.
"""
args = {}
helpers.require_atleast_one_parameter(['GroupName', 'GroupId'])
if helpers.contains_parameter('GroupName'):
args['name'] = helpers.get('GroupName')
elif helpers.contains_parameter('GroupId'):
args['id'] = helpers.get('GroupId')
args['command'] = 'deleteSecurityGroup'
response = requester.make_request(args)
return response