I created a custom resource via Dynamic Type in vRO. I see that they don't have a read operation for Dynamic Type like they do for ABX actions. Is there a way to update the original properties of the custom resource if we are doing dynamic types?
... View more
Does VMware provide a publicly accessible sandbox environment that developers can access via the v2 Orchestrator API for the purposes of developing/testing software?
... View more
I want to use rest api to extracts the custom properties data of deployments in vRA. Upon checking vRA swagger api portal, I could not find any api that can do the job, all i could see was an api that could extract all the deployments or meta data of a particular api but nothing helped.
... View more
I want to create script python to configure ip address, dns,... of VM in vmware, but I have this error: AttributeError: 'NoneType' object has no attribute 'CustomizeVM' """ from pyVim.connect import SmartConnect from pyVmomi import vim from pyVim.connect import SmartConnect import ssl import requests from pyVmomi import vim # Désactiver les avertissements SSL requests.packages.urllib3.disable_warnings() ssl._create_default_https_context = ssl._create_unverified_context # Virtual machine information vm_name = 'centos' ip_address = '192.168.1.100' subnet_mask = '255.255.255.0' gateway = '192.168.1.1' dns_server = "192.157.0.2" # Connect to the vCenter Server si = SmartConnect(host="172.16.143.137", user="root", pwd="pwd!") content = si.RetrieveContent() vms = content.viewManager.CreateContainerView(content.rootFolder, [vim.VirtualMachine], True).view for vm in vms: if vm.name == vm_name: adapter_map = {} for device in vm.config.hardware.device: if isinstance(device, vim.vm.device.VirtualEthernetCard): adapter_map[device.deviceInfo.label] = device #Create a new IP settings object ip_settings = vim.vm.customization.IPSettings() ip_settings.ip = vim.vm.customization.FixedIp() ip_settings.ip.ipAddress = ip_address ip_settings.subnetMask = subnet_mask ip_settings.gateway = [gateway] ip_settings.dnsServerList = [dns_server] ip_settings.dnsDomain = "" adapter = vim.vm.customization.AdapterMapping() adapter.adapter = ip_settings adapter_map[device.deviceInfo.label] = adapter # Create the customization spec and apply it to the VM spec = vim.vm.customization.Specification() spec.nicSettingMap = list(adapter_map.values()) customizer = content.customizationSpecManager try: task = customization_spec_manager.CustomizeVM(vm=vm, spec=spec) task.wait_for_completion() except vmodl.fault.SystemError as e: print("Error: %s" % e.msg) continue Disconnect(si) """
... View more
VMware Community Guy, having worked at VMware for 14 years running communities. Also a developer who has written application code as well as automation scripts. Passion for IOT, sensors and Raspberry Pi/ARM systems.
Kripa manages the VMware {code} community and has worked for VMware for over two years. She is a front end web developer, with proficiency in HTML, CSS and JavaScript.
Lead engineer in the vSphere Client SDK & Plugins team at VMware. Involved in vSphere UI extensibility, API design, Cross vCenter vMotion utility, VMware Event Broker Appliance and community-related initiatives.