Previous Topic: Creating a Custom ComponentNext Topic: Understanding the Component XML Structure


Create a Component XML Template

To create an example XML file that you can use as a template for creating your custom component, use your preferred REST client.

Start by retrieving a list of existing component definitions. You can then verify whether the component that you require is already supported.

Follow these steps:

  1. Set up a REST client with a connection to the Data Aggregator server.
  2. Enter the following URL for the Data Aggregator web services API in the REST client:
    http://da_hostname:8581/typecatalog/components
    

    A list of all available components displays.

  3. Verify whether the component that you require is already supported.

If the component that you require is not already supported, view and export a single component definition that is similar to the custom component that you want to create.

Follow these steps:

  1. To retrieve a specific component that is similar to the component that you require, enter the following URL:
    http://da-hostname:8581/typecatalog/components/name
    
    name

    Is the name of an existing, specific component, such as NormalizedCPUInfo.

  2. Select GET on the Method tab.
  3. Run the method.

    The XML that is returned includes the component definition.

    You can use this XML as a template to create new components.

  4. Copy the component XML into a text file and then modify it, as needed. For an example of the XML structure, see Understanding the Component XML.