How can i create a new "component" for an existing Asset Type
Hi,
Various Asset types can have different components.
e.g. Servers show “Processor”, “Memory”, “Logical Drive”, .. or Printer show “Input units” or “output units”. for Switches the only component is “Interface”. how can i define and fill a new component for a switch. i want to add different modules such as “Power Supply” or “SFP”
and is there an API Call to access and modify such?
thanks, Günther
Page 1 / 1
@Stague71 - have you looked at “Asset Types” under the admin panel? That might solve your problem
@Roxwell, yes, i had a look at the asset Types and the levels (parents) with the properties that i can set there, but it does not help in this case, as all of them apply only to the asset itself. what i cannot find there is the ability to define properties of components of an asset. e.g. for a switch, add a new component of a type other than interface:
any other ideas?
Günther
AhI see, I don’t think you can as thats set by default as it’s what’s populated by the disovery tools.
@Roxwell,
the discovery tools (both SNMP discovery and SCCM integration) indeed have the capability to create components. Is there any info on how this is done? e.g. does the Probe also use API calls to populate the CMDB?
Let me ping him, and see if I can summon him up here to help
Hi @Stague71,
To define and fill a new component for a switch, Freshservice does not currently support creating entirely new component categories directly. The components section for assets, including switches, is automatically populated based on the discovery process or predefined values in the system.
However, you can add custom fields or properties to hold additional information like "Power Supply" or "SFP" under the asset's details. To do this:
Go to Admin > Asset Management > Asset Types and Fields. Choose the specific asset type (e.g., Switch). Add custom fields to accommodate specific modules such as "Power Supply" or "SFP." Regarding API calls, you can use the Freshservice API to list or update component information.
The following endpoint might be helpful:
List all asset components: Use the API endpoint to fetch details of an asset's components. Documentation: /api/v2/assets/{asset_id}/asset_components.
You may not be able to directly modify default components via the API. For complex scenarios, consider using custom fields or associating related assets and managing relationships.