Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
appyens
Participant

Add host with duplicate ip address

Hello There,

 

I want to add host via web service. There is a naming convention I am using while adding hosts.

what if I am adding host with the same name and same IP address again.

What will be the response and how this "set-if-exists" will help me?  

Thanks in advance

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

Same name and IP address will give you an error unless you add it with set-if-exists true.
This will update the existing object with whatever else you specify in the payload.
Different object name but IP address/network already used will give you a "warning" and fail unless you specify ignore-warnings true.
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events