Create Custom Components

To support a new technology, create a custom component. You can create a custom component using REST Web Services. To create an entry that lists all instances of your component in the Inventory menu, you may create a custom component. Creating a custom component also lets you create a Context page for your component. Use a component to create a REST endpoint, or to create attributes that are shared between metric families.
capm320
HID_Create_Custom_Components
To support a new technology, create a custom component. You can create a custom component using REST Web Services. To create an entry that lists all instances of your component in the Inventory menu, you may create a custom component. Creating a custom component also lets you create a Context page for your component. Use a component to create a REST endpoint, or to create attributes that are shared between metric families.
You cannot extend factory components.
To avoid possible data loss, always back up the certification directory anytime you create or update a custom component.
Create a Component XML Template
Use an existing component to create an XML template.
To retrieve a list of existing components, go to the following REST URL: http://
da_hostname
:8581/typecatalog/components
 
Follow these steps:
  1. Set up a REST client with a connection to the Data Aggregator server.
  2. Select a component that is similar to the component that you require.
  3. Enter the following URL to retrieve the template component:
    http://
    da_hostname
    :8581/typecatalog/components/
    component_name
    component_name
     specifies the name of the template component.
  4. Select GET in the Method tab, and run the method.
    The REST client returns the XML information for the component.
    Use the XML as a template to create the custom component.
Edit the Component XML
To apply the necessary changes to the component, edit the XML file. Make changes to the <ItemSyncDefinition> section for Inventory entries and context page creation. For complete information about the XML structure, see Component XML Structure.
Import the Component XML
To import the component, use a REST client.
Follow these steps:
  1. Specify http://
    da_hostname
    :8581/typecatalog/components as the URL.
  2. On the Method tab, Select POST for a new custom component, or select PUT to update a component.
  3. In the Body settings, select 'application/xml' as the 'Body Content-type'.
    Failing to set the Content-type results in a 415 error.
  4. Copy the component XML into the Body tab.
  5. Run the method.
    Your custom component is imported. If no errors occur, the Status field in the HTTP Response section displays the following result:
    HTTP/1.1 200 OK