Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Looking for the right Custom Properties for event VMPSMasterWorkflow32.EVENT.ReconfigureVM

$
0
0

I`m having problems finding the correct Custom properties fro the events VMPSMasterWorkflow32.EVENT.ReconfigureVM so that I get more information into vRO.

For the normal VM provisioning process the stuff was mapped by pretty good here: vRealize Automation 7 – Enabling the Event Broker » Extending Clouds see the spreadsheet. However I cant not figure out where to get that information. No vmware doc seams to have a list or some ideas

 

What i want to do is hook into the reconfigure Action. The reconfigure action triggers the following (vRA7.1) events:

  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Pending
  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Successful
  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Complete
  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Failed

But without the customer property I only get this information from the payload:

/lifecycleState/phase : EVENT

/lifecycleState/state : VMPSMasterWorkflow32.VMPSMasterWorkflow32

/lifecycleState/event : VMPSMasterWorkflow32.VMPSMasterWorkflow32.EVENT.ReconfigureVM.Complete

/componentId : vSphere_Machine_1

/blueprintName : test

/componentTypeId : Infrastructure.CatalogItem.Machine.Virtual.vSphere

/IaaSTimeoutId : 1019

/endpointId : 398eb55d-a68e-4ff2-8f1b-07d4d4bafb93

/machine/externalReference : vm-618

/machine/owner : configurationadmin@vsphere.local

/machine/name : test31

/machine/id : e2824606-c8e1-4678-9f9d-6f19611ce9ad

/machine/type : 0

/requestId : 06fdb66f-1253-45a7-b6d5-e40e86483f0e

__asd_requestedBy

__asd_tenantRef

__asd_targetResourceProviderTypeId

__asd_requestInstanceId

__asd_requestInstanceTypeId

__asd_catalogRequestId

__asd_requestedFor

__asd_targetResourceId

__asd_requestInstanceTimestamp

__asd_targetResourceTypeId

__asd_correlationId

__asd_requestTraceId

__asd_targetResourceProviderId

 

What I need would be the the machine properties of the VM, such as:

/machine/properties/VirtualMachine.Memory.Size : 1024

/machine/properties/VirtualMachine.Cafe.Blueprint.Component.Cluster.Index : 0

/machine/properties/VirtualMachine.CPU.Count : 1

/machine/properties/__Clone_Type : CloneWorkflow

/machine/properties/__clonespec : Linux

/machine/properties/VirtualMachine.Admin.TotalDiskUsage : 5120

/machine/properties/VirtualMachine.Disk0.Label : Hard disk 1

 

Anyone?

 

PS: you can rad the properties pretty easy with the following vRO workflow:

function getSubproperties(subject,prop){    for each (subkey in prop.keys) {        subcontent=prop.get(subkey);        if ((typeof subcontent) == "object"){            getSubproperties((subject+"/"+subkey),subcontent);        } else {            System.log((subject+"/"+subkey) + " : " + subcontent);         }    }
}


for each (key in payload.keys) {
    content=payload.get(key);    if ((typeof content) == "object"){        getSubproperties(("/"+key),content);    } else {            System.log("/"+key + " : " + content);     }
}

Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>