There have been a few users that are starting down the scripting route but have failed to locate their Contract ID. This is also referred to as the Domain ID in OpenStack terms. Details on how to locate this are documented in the K5 IaaS API User Guide on page 10 –
However, here’s the quicker visualisation to save you “reading the free manual” on how to locate your K5 Domain ID or K5 Contract ID –