Challenges, working with the Blues in vco vcac plugin

Hello

Work with the latest plugin VCAC release VCO (5.2 and 5.5 respectively), I intending me to put a simple set of wrapper script element before the workflow 'Configure a virtual machine for an action plan', such that (to start) entries and group plan Director supply could be sent in the form of simple name strings, rather than expecting to complex objects (as expected) to allow for easier consumption REST API (not through the layer of presentation btw, who used the inventory tree to search for and provide said interactive input objects).  I couldn't find any provided action let me do the recoveries of simple object by name and decided to start by entering a complete picture of the objects and don't string correspondent against her...

This proved be simple enough for the provision of groups and works very well - namely due to the provided method "host.findAllChildProvisioningGroups ()", you were using it directly or through the action "getAvailableProvisioningGroups".

Blue are becoming another story.  I found the 'getBlueprints' action, which appears to be operated by the presentation layer when the workflow is run interactively, holding an object provisioningGroup in entry (which I had already recovered above).  It did not work when used in a script element, however.  After reviewing the support action, I found that it relied on a property of the object group configuration, rather than a method (it is not a useful method available).  Adding that debugging confirmed that the table was never fill when referenced (group.virtualMachineTemplates).  I don't know if it's broken or if I should wait only it works through presentation, or if I was just incorrect use - but I started looking for alternatives.

I have looked around in the browser of the API and other samples, including the set of extensibility and reviewed all the activities planned, but they always seem to wait for the entry of VCAC:Blueprint type.  I found getBlueprintsForProperty and it is close to what I need, if it is running too slow when you pull a list of close-up (nearly one second per object).  I don't know linqpad can empty all the plans into VCAC (via ODATA) much faster.

In the end, I'm looking for a way to get easily all plans for a commissioning Group (or even a host if it is fast enough), returned in an array of type VCAC:Blueprint can I browse - or even more simply, to retrieve the object model directly based on a property displayName known and gets my object.  I am aware of the VCAC entity the full mechanism added in the last plugin, but concerned that I'll be back will not match the input type... It seems that some properties do not match the type VCO and others do not part of an entity to plan at all.  Frankly I was hoping to not who become familiar with the innards of the existing API VCAC and wouldn't not rather recreate a plan object of its parts of the requested Party.

If you're still with me, thank you! - and, ideas?  I'd like to hear missing me something simple here...

-Milson

OK spent more time on it with begins to implement a piece of javascript to directly get an object in the inventory of its entity vCAC. Instead of an iteration all objects of the same type, it is the object directly by ID.

var entityKeyProperties = entity.entityKey;
var entityIdKey = entityKeyProperties.keys[0];
var entityIdValue = entityKeyProperties.get(entityIdKey);
System.log("Found key " + entityIdKey + " : " + entityIdValue);

switch(entity.entitySetName) {

    case "VirtualMachines" :
        inventoryObject = Server.findForType("vCAC:VirtualMachine", entity.hostId + "/" + entityIdValue);
        break;

    case "VirtualMachineTemplates" :
        inventoryObject = Server.findForType("vCAC:BluePrint", entity.hostId + "/" + entityIdValue);
        break;

    default : throw "No inventory object for entity type " + entity.entitySetName;
}  

I worked with the old version of the plug-in and then decided to test with the last version of the plugin (5.2) and made a great discovery.

Engineering simplified our life with the implementation of entity.getInventoryObject ();

So basically:

var entity = vCACinventoryObject.getEntity(); // convert an inventory object to an entity
inventoryObject = entity.getInventoryObject(); // convert an entity to an inventory object

So in your case the code to quickly find a blueprint by name would be:

if (vcacHost == null) return null;
var model = "ManagementModelEntities.svc";
var entitySetName = "VirtualMachineTemplates";

var property = new Properties();
property.put("VirtualMachineTemplateName",name);

var entities = vCACEntityManager.readModelEntitiesByCustomFilter(vcacHost.id, model, entitySetName, property, null);

var blueprints = new Array();
for each (var entity in entities) {
    blueprints.push(entity.getInventoryObject());
}

return blueprints;

Tags: VMware

Similar Questions

  • Does not work with the version 6.2.0 plugin version 1.0.2 Build 2986609 NSX NSX

    Hi all

    Alas, we have improved the NSX to 6.2.0 build 2986609, then update the NSX Orchestrator plugin to version 1.0.2 but all operations returns "Version NSX unsupported.

    When will be ready for the new version of the NSX plugin?

    Thank you.

    D.

    Well, I found the solution for my self.

    When you upgrade the plugin NSX, it does not update the configured host of the NSX. Thus, you must remove endpoint NSX and re-create it.

    Hope this helps others.

    D.

  • Computer laptop crash with the Blue error screen, locale ID: 4105, BCCode: 4A

    Original title: screen blue Usb_bugcode

    NEED HELP!

    Hello world. Could someone help me please! My phone hangs with the Blue error screen, and it does on a daily basis. I tried to find a solution online but nothing seems to work. Here are the details:

    I have a laptop with Windows 7 Edition Lenovo Home premium (Service pack 1). RAM: 4 GB. 64-bit OS. Intel Core i3-3217U CPU @ 1.80 Ghz

    And here's the problem:

    Signature of the problem:

    Problem event name: BlueScreen

    OS version: 6.1.7601.2.1.0.768.3

    Locale ID: 4105

    More information about the problem:

    BCCode: 4A

    BCP1: 0000000074EC2E09

    BCP2: 0000000000000001

    BCP3: 0000000000000000

    BCP4: FFFFF88002A84B60

    OS version: 6_1_7601

    Service Pack: 1_0

    Product: 768_1

    Files helping to describe the problem:

    C:\Windows\Minidump\043015-13057-01.dmp

    C:\Users\Jimmy\AppData\Local\Temp\WER-855899-0.SysData.XML

    Can you please put step by step directions? I'm not very good with computers, and it's really frustrating! I tried to remove and reinstall the usb drivers but that didn't do anything. I read the other threads on the similar error but couldn't find a solution. Thanks for your support!

    Could this be something to do with a monitor Samsung that I use?

    KD > lmvm sports

    start end module name

    fffff880 '075da000 fffff880' 075e2000 SPORTS (postponed)

    Image path: \? \C:\Windows\system32\Drivers\SSPORT.sys

    Image name: SSPORT.sys

    Timestamp: Fri Aug 12 00:07:32 2005 (42FBDA34)

    Sum: 0000D 894

    ImageSize: 00008000

    Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4

    SSPORT.sys 32-bit Port claim Driver of Samsung Electronics

    Samsung ML-1430 series Samsung ML-1430 series USB001 unavailable

    You need to update or remove a SSPORT.sys. Zig - zag pointed out to you earlier. Please uninstall this printer and related software.

    Type device manager in the search above the Start button box and press ENTER. Find and right-click on the device and click on uninstall from the drop-down list. Restart your computer.

    Select the hotkey Windows key + R, type Appwiz.cpl and press ENTER . Place the cursor on Samsung, right-click and select Uninstall from the menu drop down. Restart your computer.

  • A HP Officejet H470wl will work with the MacBook Air

    A HP Officejet H470wl will work with the MacBook Air? The driver is still supported? I'll buy an Air.

    Hello..

    New Mac come with v10.11.x El Capitan pre installed.

    I checked for compatible drivers (software) for pinter them HP > http://support.hp.com/us-en/product/HP-Officejet-H470-Mobile-Printer-series/3434 453/model/3434454/document/c04510394 /

    Fact on the Mac, you would use Software Update to install the drivers according to the HP website.

    Printer and scanner software available for download for your Mac

  • SQLite Manager does not work with the v11. Until make you it easier to go back to older versions or newer versions stop, breaking most of the modules I won't use Firefox

    SQLite Manager does not work with the v11. Until that make it easier to return to older versions or newer versions stop, breaking most of the modules I use FirefoxHow to come back at 10 Firefox?

    Update Firefox 23.0 which published yesterday afternoon.

  • I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    Well, if you need older versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php

    Best regards, G-Cloud.

  • To work with the text to the assignment by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not start to rise upward, as happens in other browsers. I ask you for

    After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help

    You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).

  • Portege M200 - pen does not work with the screen

    So I bought a pen for M200 and reinstalled the operating system.
    Now I M200 with Windows XP Tablet PC edition, a utility Screen Rotation and usefulness of the stylus button. Now Pen buttons work fine with my new pen, but the screen itself does not work. I mean, the stylus does not work with the screen.

    I have a mouse, and another menu pointing devices in Device Manager and it includes the following submenus:

    HID compatible mouse (I use the random DELL mouse)
    Mouse PS/2 Cimpatible (?)
    --------

    I think there must be something else...
    Please tell me, forum, what drivers should I download to get the pen to work?

    Stand by. Are you using the original image of recovery Toshiba (operating system) or you have installed your version?

  • my photo does not work with the screen saver

    Photos has never worked on Apple TV 4 until today with the 032116 update, but my pictures does not work with the screen saver.

    I dare you to try to tell me how to make it work. Please have a solution, someone.

    Given that Apple isn't really care or help on these forums, it would be great if someone mentioned the steps.

    Thank you

    Can you elaborate on the question?

    These are user forums and this is why you will not see the participation of Apple here

  • HP laserjet p1102w: wireless printer does not work with the new wireless network

    My office moved recently and we have a new wireless network. My printer always wireless worked perfectly on the previous network, but it does not work with the new network. I get a message "the printer is offline. I don't know how to reconfigure so that it detects the new wireless network. Can anyone help? Thank you

    Hi Shlomi,
    Thanks a lot for the info. I'll give it a try today...

  • Which version of Skype works with the old computer Win

    Hello.

    I have a very old pc with Win XP SP3.

    I've updated Skype to the latest version and I can't use my webcam.

    Unfortunately, I don't remember which version of Skype I had before.

    Can you please tell me what is the latest version of Skype still work with the old pc hardware?

    Thank you in advance.

    Bizio

    I was able to downaload and installed Skype_v6.1.0.129.exe and it works like a charm.

    Thanks again for your help.

  • Is Re: Satellite A500-17 X - it allowed to do work with the charger plugged?

    Is it OK to play games / work with the charger plugged into my laptop all the time or by doing this will cause the battery becoming weaker?

    I remember having a laptop earlier and 3 hours battery lasted only 30 minutes.
    This will happen to my Toshiba A500 computer laptop X 17 too if I had to plug my charger all the time?

    Should I get out the battery if you don't use?

    > Is it OK to play games / work with the charger plugged into my laptop all the time or by doing this will cause the battery becoming weaker?
    Yes you can do it and you should not be afraid that this will affect the battery!
    After that the battery has been recharged, the grief process stops and the battery is not looping
    My cell phone is always on the AC adapter at home and the battery is still OK and it work properly!

  • Satellite A210 - 10 c only works with the 800 Mhz instead of 1.6 Ghz

    Hello

    I have a very big problem. One day, I look in Vista on my resource monitor and see that the max freuquence is only 50%.

    So first of all I think that is no problem because the assets 'energy savings' energy recorded.
    I have a Satellite A210 - 10 c portable.

    So I switch to maximum power and perform a test of prime95. But hell, the max freuquence has not changed. I also installed everest and cpu z, but all programs show the same to me:

    My laptop only works with the 800 Mhz instead of 1.6 Ghz!

    I'm looking for drivers for the AMD processor, but you need not for Vista. Update all the drivers of Toshiba and Programms and BIOS (in fact, it is the 1.9).

    Nothing helps.

    As a last test, I reinstalled Vista, but also did not help.

    And now I'm at a loss what to do.

    I hope someone can help me.

    Good bye...

    Have you installed the Vista using the recovery CD or the original CD of Microsoft Vista?

    I ask because the restore CD contains all drivers for Toshiba and yellow exclamation marks should not be apparently in Device Manager.

    If you used the original CD of Vista I think that you have not installed the Package of Intel Robson.

    I found the package of Robson on the Toshiba driver-> Satellite P200 area page.

    Maybe you should check this.

    Your comments would be appreciated

  • Will 1st gen magic mouse will work with the new Mac Mini?

    #1

    I'm going to buy a new Mac Mini and one of the options is to add a second magical mouse of gen. I have a first gen magic mouse. I guess this first mouse magic gen will work with the new Mac Mini, but I want to check.

    The old mouse Apple and any other generic pc mouse will work fine with the Mac Mini.

  • Satellite C55: microphone does not work with the connected headphones

    Hey everybody,

    I have a Toshiba Satellite C55. I've seen other forums posted on this topic, but none of the solutions seem to work for me. I tried to uninstall the drivers and restart the computer, and configure the microphone when the headphones are connected.

    My microphone (installed on the laptop) works completely fine... until I have plug in my headphones. He stops working, but I can still hear the music or friends through my headphones. They have a regular pair of Sony headphones, not headphones, so they do not have a microphone on them or anything. My microphone has never worked with the headphones plugged in, and the computer is only a few months old. I would really appreciate a clear solution, thank you for taking the time to look!

    What Satellite C55 do you have exactly?

    This laptop does support that one socket for headset and microphone, or you have two different plugs: one for mic and one for headphones?

    Usually, you can check the playback (speakers, headphones) devices and recording devices (microphone and external microphone) in the control panel → sound → playback (or recording) tab

    If you need to check if the internal MIC is set as device by default when the headphones are connected.

    In the event that the laptop uses the Realtek audio driver
    Reach
    Control Panel → Manager Realtek HD Audio → select Mic tab → click Device avancΘs
    Then select option button separate all entries in the independent input devices.
    Click OK
    Speakers of tray right click (Volume) then the recorders (confirm the microphone is active) → select microphone → click on set default (default device)
    Then close

Maybe you are looking for