Hi Morpheus team,
I have multiple Sub-Tenants, as I am the Super Tenant Admin.
I want that when I Disable/Inactive a sub-tenant all the resources created in that specific tenant by all users should also be disable/inactive.
Is this possible in the Morpheus Data?
If Yes Please Guide me how can I achieve this Scenario.
Looking forward for Valuable response.
Thank you in Advance.
Best Regards,
Basharat Hussain.
When you disable a tenant, the ability for the users to login to the tenant is removed.
So, theres nothing a user can do with the resources created inside of Morpheus. That said, they could still access Instances/VMs directly using any remote access credentials created for them at provision time.
So assuming you mean Instances/VMs, and want to stop or possibly delete the resources, you’d need an automation to do it using the Morpheus REST API.
For example, to stop the instances:
Retrieve all instances using the GET api/instances
endpoint and iterate through them
For each that matched your criteria (accountID for tenant) call the PUT /api/instances/{id}/stop
endpoint.
You could do the same for deletion.
Set it up as a catalog item based on workflow to make housekeeping easier.
Thank you @Ollie_Phillips
This is what I am doing, I thought there might be another path.
Could you please guide me on how to charge users for storing a virtual image on my infrastructure when they upload it?
Is it possible to charge when user Upload Virtual Image??
Thank You in advance.
Best Regards,
Basharat Hussain.