Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Beasley
Employee
Employee
Jump to solution

How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode?

How do you override warnings [not errors] and force execution of additions/changes when using the API to add or set values, especially in batch mode?

These warnings break the import process and damage further operations by not providing the needed items for those operations.

Errors on host addition:

Line 170: {

  "code" : "err_validation_failed",

  "message" : "Validation failed with 1 warning",

  "warnings" : [ {

    "message" : "Multiple objects have the same IP address 205.178.146.249"

  } ]

}

Line 281: {

  "code" : "err_validation_failed",

  "message" : "Validation failed with 1 warning",

  "warnings" : [ {

    "message" : "Multiple objects have the same IP address 50.79.16.164"

  } ]

}

subsequent errors in group membership setting:

Line 384: {

  "code" : "generic_err_object_not_found",

  "message" : "Requested object [e-mail_mail.ericjbeasley.com] not found"

}

Line 463: {

  "code" : "generic_err_object_not_found",

  "message" : "Requested object [PUBLIC-50x79x16x164] not found"

}

I can override these warnings and add my objects in the GUI, but the API doesn't provide any way to do this and --ignore-errors true only keeps the error from breaking operation.

This EPIC FAIL needs a solution!

1 Solution

Accepted Solutions
Uri_Bialik

There's a way to instruct the API server to ignore warnings, just add "ignore-warnings":true to your JSON parameters.

When using mgmt_cli add ignore-warnings false to the command.

View solution in original post

1 Reply
Uri_Bialik

There's a way to instruct the API server to ignore warnings, just add "ignore-warnings":true to your JSON parameters.

When using mgmt_cli add ignore-warnings false to the command.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events