Get Tenant Names based on Environment and project names/ids

Hi Team,
I need an REST Api to give me tenant names based on the Environment ID and Project ID. Could you please suggest me the best method to get this data which would be faster to execute and get the the tenant names as the output. thanks in advance.

Input - Environment and project ids
output - Tenant names/Ids associated for that Environment and for the specific project

Sujesh Sasidharan

Hi @sujeshsasi,

Thank you for contacting Octopus Support.

While we don’t have a script we can offer that does this specifically, we do have a script that will likely get you pretty close to what you are looking for here:

You should be able to make some modifications to find Tenants associated an environment for a project.

If we can assist with anything else, please let us know.

Best Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.