Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7996331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:41:05+00:00 2026-06-04T14:41:05+00:00

Particularly, I’m working with python and vmware vsphere to make virtual machine creation/power on

  • 0

Particularly, I’m working with python and vmware vsphere to make virtual machine creation/power on and stuff like that automated. I know how to print attributes of virtual machines, however, I still can’t call any methods because I don’t know how.

this is code snippet I’m having trouble with:

for vm in virtual_machines:
print "VM: "+vm['name']+"  ("+vm['runtime.powerState']+") ",
if hasattr(vm['guest'],'ipAddress'):
    print vm['guest'].ipAddress,
if vm['runtime.powerState'] == 'poweredOn':
    print 'RAM: '+str(vm['summary.quickStats'].distributedMemoryEntitlement)+'MB, CPU: '+str(vm['summary.quickStats'].distributedCpuEntitlement)+'MHz',
if vm['name'] == 'VIRT_VZ_114':
    # This is the trouble maker, it says types mismatch "suds.TypeNotFound: Type not found: 'guest'"
    client.service.PowerOnVM_Task(mo_VirtualMachine,vm)
print

How do I call methods correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:41:06+00:00Added an answer on June 4, 2026 at 2:41 pm

    Have you looked at psphere at all?

    It’s a python project to provide native bindings for the vSphere Web Services SDK.

    You may be able to get your problems solved quicker with a dedicated library, rather than struggle with suds, SOAP and WDSL issues. It actually uses suds under the hood, but provides you with a pythonic API instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a particularly difficult business constraint that I would like to enforce at
One thing that seems particularly easy to do in the Flash IDE but difficult
I particularly like the simplicity of using STL containers in the straightforward way. I
The scenario I am particularly interested is multiple servers having daemons that run on
I've a particularly long operation that is going to get run when a user
Is there a particularly easy way to convert a number like 21.08 into Twenty
I'm not particularly experienced with python, so may be doing something silly below. I
I have some python knowledge but I'd never consider myself particularly fluent in the
i'm not particularly new at python but i just thought there might be a
I have a particularly long running method that I need to execute from my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.