Study stage: you may have completed no more than 36 months of full-time-equivalent doctoral study by 31 December of the application year. Full-time months, including summers, count; two part-time terms count as one full-time term; study towards the same doctorate counts wherever it was done. Fast-track, joint and joint professional-PhD programmes have their own counting rules. The doctorate must be mainly research-based with a merit-reviewed thesis, project or equivalent.
International applicants: non-citizens, non-permanent residents and non-protected persons must be registered in an eligible Canadian doctoral programme by the application deadline; CIHR states that anyone not registered in a doctoral programme at a Canadian institution is ineligible. An approved leave of absence counts as registered. The page says up to 15% of awards are available to international applicants.
Holding the award outside Canada: only Canadian citizens, permanent residents or protected persons (as of the deadline) who have completed at least one earlier undergraduate or graduate degree at a Canadian institution; up to 20% of doctoral awards may be held outside Canada.
Restrictions: only one Canada Research Training Awards Suite program per year across CIHR, NSERC and SSHRC; at most three applications to CGRS D; you cannot already hold a doctoral-level scholarship from CIHR, NSERC or SSHRC (including Vanier); CIHR and NSERC holders cannot hold a tenure or tenure-track appointment at the same time; you may not receive federal pay for the same studies. Applications can be written in English or French.
Choose the agency closest to your research subject; you are responsible for that choice and for sending the application through the correct channel (through your institution if it has a quota with that agency, otherwise directly to the agency). A wrong channel means rejection.