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.

CMDBGetMultipleAttributes function

The CMDBGetMultipleAttributes function retrieves multiple attributes.

Synopsis


#include "ar.h"
#include "arextern.h"
#include "cmdb.h"
      ARStatusList *status)
int CMDBGetMultipleAttribute(
      ARControlStruct *control,
      CMDBClassNameId *classNameId,
      ARBoolean getHiddenAttrs,
      ARBoolean getDerivedAttrs,
      ARNameList *nameList,
      ARPropList *attrCharacQueryList,
      ARBooleanList *existList,
      ARNameList *attributeNameList,
      ARNameList *attributeIdList,
      ARUnsignedIntList *dataTypeList,
      ARUnsignedIntList *attributeTypeList,
      CMDBClassNameIdList *baseClassNameIdList,
      ARInternalIdList *arsubclassesIdList,
      ARUnsignedIntList *entryModeList,
      CMDBAttributeLimitList *attributeLimitList,
      ARValueList *defaultValueList,
      ARPropListList *characList,
      ARPropListList *customCharacList,
      ARStatusList *status)

Input arguments

Input argument

Description

control

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.

classNameId

The name of the class to which the attributes belong. The classNameID argument contains the namespace name and unique class name.

getHiddenAttrs

A flag indicating whether to retrieve hidden attributes. If set to FALSE, hidden attributes are not retrieved.

getDerivedAttrs

A flag indicating whether to retrieve attributes derived from a superclass. If set to FALSE, derived attributes are not retrieved.

nameList

A list of attributes to retrieve.

attrCharacQueryList

A list of attribute characteristic queries to retrieve.

Return values

Return value

Description

existList

A list of flags and corresponding Boolean values indicating whether the attribute list exists. The value TRUE indicates that the attribute list exists; FALSE indicates that the attribute list does not exist.

attributeNameList

The list of attribute names retrieved.

attributeIdList

The list of IDs of the attributes retrieved.

dataTypeList

The list of data types for the attributes.

attributeTypeList

The types of attributes to retrieve:

  • 1: Core Internal--Hidden attributes that are available to BMC Atrium CMDB for internal use (CMDB_ATTR_TYPE_CORE_INTERNAL ).
  • 2: Core--Attributes that are available for internal use only (CMDB_ATTR_TYPE_CORE ). Apart from modifying the labels, you cannot make any other changes to the internal attributes.
  • 3: Regular--Attributes that you can create (CMDB_ATTR_TYPE_REGULAR ).

baseClassNameIdList

The list of base class name IDs for which you want to retrieve the attribute.

arsubclassesIdList

The BMC Remedy AR System subclass IDs for which you want to retrieve the attribute.

entryModeList

The entry mode for the attribute. Entry modes not listed are for BMC Software internal use.

  • 1: Required--Users must enter data (CMDB_ATTR_ENTRYMODE_REQUIRED ).
  • 2: Optional--Users do not have to enter data, but they can if needed (CMDB_ATTR_ENTRYMODE_OPTIONAL ).
  • 4: Display only--Users cannot enter data
    (CMDB_ATTR_ENTRYMODE_DISPLAY_ONLY ).

attributeLimitList

The list of value limits for the attribute and other properties specific to the attributes' types. See the CMDBsubclassesLimitStruct definition in cmdb.h to find the contained structure that applies to the type of attributes that you are retrieving. The limits and properties that you assign must be of the same data type as the attribute. If you do not want to change the attribute limits and properties, specify NULL for this parameter.

defaultValueList

The list of default values to apply if a user does not specify any values for the attributes. The default value can be up to 255 bytes and must be of the same data type as the attribute.

characList

A list of characteristics for the attribute:

  • 1: View Permissions--Specify a list of groups or roles that have permissions to view this attribute (CMDB_ATTR_CHARAC_VIEW_PERMS ). When querying for attributes, you see all attributes, including the hidden attributes. You can specify one or more group IDs or role IDs for the permissions, separated by a semicolon, for example, 20;-5.
  • 2: Change Permissions--Specify a list of groups or roles that have permissions to view and modify the characteristics of the attribute (CMDB_ATTR_CHARAC_CHANGE_PERMS ).
  • 3: Hidden--Set the flag to false so that this attribute is hidden (CMDB_ATTR_CHARAC_HIDDEN ). This setting marks the attribute as hidden for a group or a role. When querying for classes, you can retrieve hidden attributes. You can specify one or more group IDs or role IDs for the permissions, separated by a semicolon, for example, 20;3.
  • 4: Primary Key--Specify whether the attribute is a part of the primary key of the class ( CMDB_ATTR_CHARAC_PRIMARY_KEY ).
  • 5: Propagated Owner--The class ID and the attribute ID of the lead class attribute from which the attribute is propagated (CMDB_ATTR_CHARAC_PROPAGATED_OWNER ). The format for this value is <sourceAttributeId>;<destinationAttributeId>|<sourceAttributeId>;<destinationAttributeId>|[<additionalPairs>].
  • 6: Create Mode--Set permissions for specifying data for the attribute (CMDB_ATTR_CHARAC_CREATE_MODE ).
    • 0 --CMDB_ATTR_CREATE_MODE_NONE --No permissions specified for the attribute.
    • 1 --CMDB_ATTR_CREATE_MODE_OPEN --Anyone can specify a value for the attribute.
    • 2 --CMDB_ATTR_CREATE_MODE_PROTECTED --Only users with permissions can specify a value for the attribute.
  • 7: Audit Option--Set the audit option on to store the audit history for the attribute
    (CMDB_ATTR_CHARAC_AUDIT_OPTION ).
  • 8: Namespace--Set the namespace of the attribute (CMDB_ATTR_CHARAC_NAMESPACE ).
  • 9: Description--Set the description for the attribute (CMDB_ATTR_CHARAC_DESCRIPTION ).
  • 10: Federation External Name--Specify external name for attributes of a federated class that are mapped by way of Vendor AR System database connectivity (ARDBC) plug-in (CMDB_ATTR_CHARAC_FEDERATION_EXTERNAL_NAME ).

customCharacList

A list of user-defined custom characteristics for the attribute. The attributes must be between 300000 (CMDB_ATTR_CUSTOM_CHARAC_MIN ) and 399999 (CMDB_ATTR_CUSTOM_CHARAC_MAX ).

status

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

Comments