The words posted fit the pattern of songs that are typically called "The Outlandish Knight." I have a recording of my father singing it, along with his information about the parrot, who is offered a golden cage. I think Dad's first version was published in a book of poetry (and a few songs) called Rainbow in the Sky edited by Louis Untermeyer. The book version doesn't have the extended material about the parrot.