These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
VISIT OUR DIFFERENT FORUMS:
Announcements > | |
CloudShell > | TestShell > |
Developers > | BI (Business Inteligence) > |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide > | Configuration Management > |
Getting started with Shells > | Extending CloudShell with Cloud Providers > |
Getting started with Orchestration > | API Guide > |
To share your integration, follow the instructions in this guide >.
Hi,
Im trying to get the VM details of a VM within a running Sandbox, more specifically the Cloned VM name and path. Is there a way to do this?
Answer by Steven Geller · Jan 21, 2020 at 01:19 PM
Hi John,
InstanceData is a list of cloudshell.api.cloudshell_api.VmInstanceParam type objects, each having a .Name and .Value field.
Try this (the full script is attached):
resource_details = api.GetResourceDetails(deployed_app_name)
for instance_detail_item in resource_details.VmDetails.InstanceData :
if instance_detail_item.Value:
print “{0}:{1}”.format(instance_detail_item.Name, instance_detail_item.Value)
Answer by Steven Geller · Jan 21, 2020 at 08:48 AM
Hi John,
Which version of CloudShell are you using?
Answer by John Clarke · Jan 21, 2020 at 10:51 AM
Hi,
Thanks for response. @Kimo Saper I am using ESXI 6.7 and VMWare. @Steven Geller we are using the latest Cloudshell.
Im trying to get the Cloned VM path (base Image) from the Reservation using API GetReservationDetails(res_id).ReservationDescription.Resources.VmDetails
I can return CloudProviderFullName but nothing else.
Answer by Steven Geller · Jan 21, 2020 at 11:15 AM
Hi John,
Try:
output = api.GetResourceDetails(deployed_app_name)
And then:
output.VmDetails.InstanceData – VM Instance details (CPU, Memory, Snapshot Name, etc’)
Additional VM details options include:
output.VmDetails.NetworkData – VNIC Info
output.VmDetails.VmCustomParams – Deployment path hidden parameters
output.VMDetails. CloudProviderFullName – Cloud Provider Resource Name
Answer by John Clarke · Jan 21, 2020 at 12:18 PM
Hi @Steven Geller so I've run a pprint(vars(Instance_data)) and get the following output. Instance Data list is empty.
Instance_data = resource_details.VmDetails
pprint(vars(Instance_data))
{'CloudProviderFullName': 'Redacted',
'InstanceData': [,
,
,
,
,
],
'NetworkData': [],
'UID': 'Redacted',
'VmCustomParams': [,
,
,
]}
These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
Announcements | |
CloudShell | TestShell |
Developers | BI (Business Inteligence) |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide | Configuration Management |
Getting started with Shells | Extending CloudShell with Cloud Providers |
Getting started with Orchestration | API Guide |
To share your integration, follow the instructions in this guide.
,Anyone migrated from Ravello API to Cloud Shell 4 Answers
Python Proxy server 3 Answers
Update Resource Family or Model 1 Answer
Autoload groups of resources? 3 Answers
API call for Export Diagram? 1 Answer