Getting the instance name

Getting the instance-name might be useful in an extension when the extension wants to save configurations per instance.

Is it already in the API and did I miss it?