Clear Multiple GFLAGs

POST https://{{cluster}}/irisservices/api/v1/clusters/gflag

Note: When a GFLAG is cleared or reset, the value of the GFLAG is set to its default.

For Ex: If the GFLAG value for magneto_gatekeeper_max_tasks_per_**physical**_windows_entity has been updated to 8, when this GFLAG is cleared the value is reset to its default which is 4.

For IRIS, Nexus and EagleAgent services, using effectiveNow: true in the payload for clearing GFLAG does not work. Hence we need to remove effectiveNow: true from the payload, followed by restarting the respective service across the cluster.

Request Body

{"serviceName"=>"kMagneto", "effectiveNow"=>true, "gflags"=>[{"name"=>"magneto_physical_files_backup_use_regex_wild_card", "reason"=>"GFLAG update via API", "clear"=>"TRUE"}, {"name"=>"magneto_gatekeeper_max_tasks_per_physical_windows_entity", "reason"=>"GFLAG update via API", "clear"=>"TRUE"}]}