Previous Topic: getDependentAttrControlsNext Topic: createAsset


Asset Management Methods

It is possible for a client site to enhance the asset object using extensions. Asset extensions are separate tables that hold extra attribute information for an asset. The extension table is linked to a particular asset by using the asset ID as a foreign key. CA SDM Web Services ships two predefined extensions, Computer and Software. For more information, read the text executed by the following command:

/bopcfg/majic/assetx.maj

The asset’s family attribute determines if the asset has an extension. Setting the Class attribute generally sets the family at asset creation time. To determine if an asset has an extension, query the ‘extension_name’ attribute of the asset’s family (for example, “family.extension_name”).

To retrieve values from an extension object, query it like any other object by using the following method:

getObjectValues()

To get the handle for a particular extension object, use the following method:

getAssetExtensionInformation()

Update an extension object like you would any other object by using the following method:

updateObject()

We do not recommend that you create your own extension objects. One is created for you, if needed, when createAsset() is called. Because of this automatic creation, we recommend that you only use createAsset() to create asset objects.

Note: If you are using the ITIL methodology, remember that Asset and Configuration Item are interchangeable in this context.