'How to register storage provider (vasa) using pyvmomi sdk?
I am trying to achieve storage provider registration in vcenter server using pyvmomi sdk.
So far I identified that there is pyvmomi library "VimVasaProvider(vim.VimVasaProvider)" exists and I coded till below. But I am not sure how to instantiate this.
from pyVmomi import vim
spec=vim.VasaVvolManager.VasaProviderContainerSpec()
vpi=vim.VimVasaProviderInfo()
sp=vim.VimVasaProvider()
sp.name="primera_test"
sp.url="https://<primera-fqdn>:9997/vasa"
vpi.provider=sp
spec.vasaProviderInfo=[vpi]
Please help me with this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
