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.

CMDBExpandParametersForCI function

The CMDBExpandParametersForCI function accepts an unexpanded string that contains parameters and substitutes values from the attribute value list provided in the CMDBAttributeValueList structure. For example, the function takes $Name$ and $InstanceId$ as the unexpanded parameters and substitutes the values HRServer and CS000019.

Synopsis


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

int CMDBQualificationForCI(
      ARControlStruct *control,
      char *paramString,
      CMDBAttributeValueList *attValueList,
      char **expandedStr,
      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.

paramString

The string to expand.

attValueList

The list of attribute and values pairs that is used to expand the parameters. You must specify values for all required attributes that do not have defined defaults. Values must be of the data type defined for the attributes or have a data type of 0. NULL values can be specified for optional attributes only. An error is generated if an attribute does not exist or the user specified by the control parameter does not have write permission for an attribute.

Return Values



Return value

Description

expandedStr

The string that contains the expanded parameters.

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