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.

CMDBImportItemStruct structure

Note

This is a legacy structure of the BMC Atrium CMDB API, and has been replaced by newer functions, CMDBImportData and CMDBImportDef.



The CMDBImportItemStruct data structure holds the items to import.


typedef struct CMDBImportItemStruct
{
   unsigned int itemType;
   CMDBClassNameId classNameId;
   unsigned long importOption;
} CMDBImportItemStruct;	



The CMDBImportItemStruct structure consists of the following elements:

itemType

An integer value indicating the type of information to import.

  • 1 --Import class definitions (meta data) (CMDB_ITEM_TYPE_META_DATA ).
  • 2 --Import instance data (CMDB_ITEM_TYPE_INSTANCE_DATA )

classNameId

The namespace name and the class name of the class that contains the items to import.

importOption

An integer value indicating how the import of instances is handled if any duplicates are found during the import. These option values are mutually exclusive.

This option is applicable only if CMDB_ITEM_TYPE_META_DATA is set.

  • 1 --Generate an error (AR_MERGE_ENTRY_DUP_ERROR ).
  • 2 --Create a new entry with a new ID if the Entry ID attribute and the ID specified already exist in the target class (AR_MERGE_ENTRY_DUP_NEW_ID ).
  • 3 --Delete the existing entry and create a new entry in its place if the Entry ID attribute and the ID specified already exist in the target class (AR_MERGE_ENTRY_DUP_OVERWRITE ).
  • 4 --Update the attributes specified in the existing entry if the Entry ID attribute and the ID specified already exist in the target class (AR_MERGE_ENTRY_DUP_MERGE ).
  • 5 --Create an entry with a new ID (AR_MERGE_ENTRY_NEW_ID ).

These constants are the same as used by the ARMergeEntry function in the BMC Atrium Core C API. For more information, see the BMC Atrium Core ar.h file.|

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

Comments