I am using the API command add-batch-objects and I'd like to figure out a way to make it idempotent. That is, if an object exists with the same name, do nothing/move on. Currently, the command will create all of the objects I tell it and end up creating a new object with the same name which creates a validation error and ruins the process.
Prior to this call, I was just using individual calls which could ignore the fact that an object exists and move on. My hope was to discontinue this in favor of the batch call.
Does anyone know a way that I can take advantage of the add-batch-objects single call or a crafty way to find and delete the duplicates that were created to speed up my playbook?