Jump to content

Configuration Manager API


Recommended Posts

Hello,

Will there be any API's for Configuration Manager? https://api.hornbill.com/apps/com.hornbill.configurationmanager/

I am looking to make items In Policy in bulk... i have done a bulk-upload of 312 assets and realised that i have had to set these "In-Policy" manually to enable the timeline... i finally did it after a while, but am hoping for a more automated approach next time.

Please advise.

Thanks,

Samuel

Link to comment
Share on other sites

Hi @samwoo,

There is currently no dedicated API for updating the "In Policy" property of an Asset within the Configuration Manager. You can use data::entityAddRecord API with the payload below to achieve this.

<methodCall service="data" method="entityAddRecord">
   <params>
      <application>com.hornbill.configurationmanager</application>
      <entity>ConfigurationItemsInPolicy</entity>
      <returnModifiedData>true</returnModifiedData>
      <primaryEntityData>
         <record>
            <h_entity_id>[INSERT ASSET ID]</h_entity_id>
            <h_entity_name>asset</h_entity_name>
         </record>
      </primaryEntityData>
   </params>
</methodCall>

I hope this helps.

Ehsan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...