Assuming you own your appartment that you want to rent out: contact the "
Hauseigentümerverband". They have all necessary forms and documents, but I think you'll have to pay for them unless you are a member.
If you don't own your appartment, I would think you'd have to ask the landlord first ? - who, in turn, would provide the forms for sub-letting if permitted...