“python maisf id vsphere” Respostas de código

python maisf id vsphere

from pyVim.connect import SmartConnect
from pyVmomi import vim
si = SmartConnect(host='10.12.254.137', user='[email protected]', pwd='password')
content = si.RetrieveContent()
children = content.rootFolder.childEntity
for child in children:
    print child

'vim.Datacenter:datacenter-33'
'vim.Datacenter:datacenter-2'
children[0].name
'1000110'
dc = vim.Datacenter('datacenter-33')
dc._stub = si._stub
dc.name
'1000110'
imtrinity94

python maisf id vsphere

from pyVim.connect import SmartConnect
from pyVmomi import vim
si = SmartConnect(host='10.12.254.137', user='[email protected]', pwd='password')
content = si.RetrieveContent()
children = content.rootFolder.childEntity
for child in children:
    print child

'vim.Datacenter:datacenter-33'
'vim.Datacenter:datacenter-2'
children[0].name
'1000110'
dc = vim.Datacenter('datacenter-33')
dc._stub = si._stub
dc.name
'1000110'
imtrinity94

Respostas semelhantes a “python maisf id vsphere”

Perguntas semelhantes a “python maisf id vsphere”

Mais respostas relacionadas para “python maisf id vsphere” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código