It is ok to have a parrot as a pet. However, if keeping it in the cage is considered abusing the pet (based on what the experts say), then abusing animals is haram. If the parrot is taken care of, well-fed, and does not suffer in the cage then it’s permissible.