Skip to content
Discussion options

You must be logged in to vote

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)


Steven Geller (Steven.G) - 01/21/2020 01:19 AM

·  4989  ·

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Quali-Community
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Forums
Labels
5. 💠 CloudShell Category ❺ : CloudShell 2. 🙏 Forum Category ❷ : Forums API Python AHsubspace AH subspace AHCS AH Forums subspace: CloudShell
1 participant