'Creates a new Security Group
:param name: name of the security group (required)
:type  name: ``str``
:param account: An optional account for the security group.
Must be used with domainId.
:type  account: ``str``
:param domainid: An optional domainId for the security group.
If the account parameter is used,
domainId must also be used.
:type  domainid: ``str``
:param description: The description of the security group
:type  description: ``str``
:param projectid: Deploy vm for the project
:type  projectid: ``str``
:rtype: ``dict``'

def ex_create_security_group(self, name, **kwargs):

    extra_args = kwargs.copy()
    for sg in self.ex_list_security_groups():
        if (name in sg['name']):
            raise LibcloudError('This    Security    Group    name    already    exists')
    params = {'name': name}
    params.update(extra_args)
    return self._sync_request(command='createSecurityGroup', params=params, method='GET')['securitygroup']
