This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBImportDef function

The CMDBImportDef function imports a list of specified class definitions.


#include "ar.h"
#include "arextern.h"
#include "cmdb.h"

int CMDBImportDef(
      ARControlStruct *control,
      CMDBXMLImportItemList *importItemList,
      unsigned int importOption,
      char *importBuf,
      ARStatusList *status)

Input arguments

Input argument



The control record for the operation, which contains information about the user requesting the operation and the server on which the operation is to be performed.


A list of zero or more items to import. Specify NULL for this parameter to import all definitions in the import buffer.


A value indicating whether to replace class definitions being imported if they already exist. If an import item already exists, the function generates an error.

  • 1: Create--Generate an error if an item to import already exists (CMDB_DEF_IMPORT_OPT_CREATE ).
  • 2: Overwrite--Overwrite if an item to import already exists (CMDB_DEF_IMPORT_OPT_OVERWRITE ).


The import buffer that contains the class definitions in XML format to import.

Return value

Return value



A list of zero or more notes, warnings, or errors generated from a call of this function.

Was this page helpful? Yes No Submitting... Thank you