Utah War
According to Cody's account in "Buffalo Bill's Own Story", the Utah War was where he began his career as an "Indian fighter":