Skip to main content

Hi Everyone 

I have one requirement wherein Admin and Standard ids are not matching for local dmz servers. Hence i need to do one to one mapping. I have around 400 admin ids and hence i am required to create 400 smart rules.

I have checked all the options and dedicated mapping is not possible since account is local and admin and Standard are not matching.

 

I wanted to check is there any API available that i can use to create the Smart rules in bulk using Postman or powershell utility?

Awaiting response. thanks in advance 

 

Regards 

Imran Aliyani

You can make use of the Post Smartrules/FilterAssetAttribute to create bulk smart rules through Postman or PowerShell API. Below is a reference to the link for that particular API.

BeyondInsight APIs


hi Howard 

thank for the reply

This API is for asset based smart rule. my requirement is for manage account smart rule. do we have any api for that as well?

awaiting response 

 

Regards 

Imran Aliyani 


With Below API, 

POST SmartRules/FilterSingleAccount

 

 

Request body

Content-type: application/json

{
AccountID: int,
Title: string
}
 

Request body details

  • AccountID: (required) ID of the managed account you want to filter by parent System Name and Account Name.
  • Title: (optional) The title/name of the new Smart Rule. If omitted, a unique title is auto-generated

I was able to create the smart rule in bulk. I could create around 400+ smart rule in around 80 Mins which is very good result for my requirement

 

thanks

 

Regards,

Imran Aliyani


Reply