pyvmomi: How to get the sms.StorageManager instance? -
i try sms.storagemanager instance in pyvmomi, , register storage provider later. cannot find way sms.storagemanager. objects retrievecontent() method "sessionmanager", "scheduledtaskmanager", no sms.storagemanager. there way sms.storagemanager?
right sms api isnt supported pyvmomi, there wrapper created 3rd party supports it. here link pyvmomi wrapper supports it. example provide using wrapper:
from infi.pyvmomi_wrapper import client infi.pyvmomi_wrapper.sms import smsclient # first open "regular" client client = client("vcenter-server", username="myuser", password="pass") sms_client = smsclient(client) storage_manager = sms_client.service_instance.querystoragemanager() storage_providers = storage_manager.queryprovider()
Comments
Post a Comment