How do I apply for a residence permit if I have subsidiary protection?

How can I obtain a residence permit after being granted subsidiary protection?