def create(self, package_name, package_version, scope='all', scope_id=''):
    'This method allows user to create CVE exceptions.\n\n        Args:\n            package_name (str): The name of the vulnerable\n                                package to be excepted.\n            package_version (str): The version number of the\n                                   vulnerable package.\n            scope (str): Possible values are server, group and all.\n            scope_id (str): If you pass the value server as scope, this field\n                will include server ID. If you pass the value group as scope,\n                this field will include group ID.\n\n        Returns:\n            str: ID of the newly-created cve exception\n        '
    body_ref = {'server': 'server_id', 'group': 'group_id'}
    params = {'package_name': package_name, 'package_version': package_version, 'scope': scope}
    endpoint = self.endpoint()
    if (scope != 'all'):
        sanity.validate_cve_exception_scope_id(scope_id)
        scope_key = body_ref[scope]
        params[scope_key] = scope_id
    body = {'cve_exception': params}
    request = HttpHelper(self.session)
    response = request.post(endpoint, body)
    return response['cve_exception']['id']
This method allows user to create CVE exceptions.

Args:
    package_name (str): The name of the vulnerable
                        package to be excepted.
    package_version (str): The version number of the
                           vulnerable package.
    scope (str): Possible values are server, group and all.
    scope_id (str): If you pass the value server as scope, this field
        will include server ID. If you pass the value group as scope,
        this field will include group ID.

Returns:
    str: ID of the newly-created cve exception
def create(self, package_name, package_version, scope='all', scope_id=):
    'This method allows user to create CVE exceptions.\n\n        Args:\n            package_name (str): The name of the vulnerable\n                                package to be excepted.\n            package_version (str): The version number of the\n                                   vulnerable package.\n            scope (str): Possible values are server, group and all.\n            scope_id (str): If you pass the value server as scope, this field\n                will include server ID. If you pass the value group as scope,\n                this field will include group ID.\n\n        Returns:\n            str: ID of the newly-created cve exception\n        '
    body_ref = {'server': 'server_id', 'group': 'group_id'}
    params = {'package_name': package_name, 'package_version': package_version, 'scope': scope}
    endpoint = self.endpoint()
    if (scope != 'all'):
        sanity.validate_cve_exception_scope_id(scope_id)
        scope_key = body_ref[scope]
        params[scope_key] = scope_id
    body = {'cve_exception': params}
    request = HttpHelper(self.session)
    response = request.post(endpoint, body)
    return response['cve_exception']['id']