Is there a way to get the list of hosts and its groups of belonging to the vCenter folder level in 5.5 web vsphere client plugin development?

Hello

I need to get the list of all hosts and its groups of belonging to the vcenter folder level.

1. I created a view giving the extension point: vsphere.core.folder.monitorViews.

2. After this step, I wrote the constraint as in my class of mediator,

var ListConstraint:Constraint =

QuerySpecUtil.createConstraintForRelationship ( _contextObject, 'childEntity');

I was expecting a list of all child entities such as hosts, dc, cluster... But I have only the immediate child object which is only the Datacenter as my result.

Is it possible to get all hosts and vCenter folder level Clusters because I need the entire list to vCenter (highest level).

Other info:

Object file has only two properties:

1 childEntity - list of entities

2 childType in-kind folder ('Virtual Machine', 'Data center'...)

Is it possible to write a constraint specifying which list of childEntities I need using childType in.

Example: Make Me childEntities that has a 'Host' and 'Cluster' childType but childType in doesn't have these two types.

In addition, at this level, I could see the 'Associated objects' tab which has all the information I need, such as Clusters and Cluster tab hosts and host tab respectively.

So, I think its possible to get this list to vCenter folder level.

I have attached a screenshot representing the need. Kindly ignore the Conventions of naming in there since I edited the example comes with the sdk program.


Query:

1. How can I get the host and Cluster (table of relationship) list to vCenter folder level or even at the level of the vise.global.view?

2. once I get this list, is it possible for me to manipulate that list and send the new list to IU?

3. is there another way to do the same thing without the help of model classes and mediator?


Pointers to this will be very useful.

It is not possible to obtain all hosts a folder specific vCenter from a single query Data Manager.  You need to get the list of centers of data first and then get a list of data center hosts.

It is best to make these repeated requests to the java level and return only the list that you want to the user interface.

You can get all the objects in the host of the system with a simple query using a constraint with targetType = 'HostSystem', but you will need to eliminate those from other vCenter servers.  See how this chassis example queries all hosts the Java later in the getHosts() method: samples/chassis-app/chassisRackVSphere-service/src/main/java/com/vmware/samples/chassisRackVSphere/ChassisRackVSphereDataAdapter.java

Another option is to use the vSphere Web Services SDK to browse vCenter. See the vSphere management forum for help on these APIs.  See this plugin of the sample using this SDK

samples/vsphereviews/vsphere-wssdk-provider/src/main/java/com/vmware/samples/wssdkprovider/VmDataProviderImpl.java

Tags: VMware

Similar Questions

  • Is there a way to get a list of all applications / updates that are cached on your server?

    Is there a way to get a list of all applications / updates that are cached on your server?  Of course, we see the space that contains each category.  But I would like a detailed list of the individual items that are actually cached.

    ITD be even better if I could get a scoreboard that showed me how many times a particular point was served to customers.

    Yes.  But you need a little magic Terminal to get the desired data.  Caching server is managed by a sqlite database.  To examine the contents, follow these basic steps:

    1: connect to the database using the following command:

    sudo sqlite3 /Library/Server/Caching/Data/AssetInfo.db

    2: to structure the data, run these two commands to the sqlite command-line prompt:

    .blog column

    . Headers on

    3: to find everything that is stored, run this command (you'll get iCloud cached documents, books, iOS apps, etc.):

    Select * from ZASSET;

    4: to narrow the results down to elements called by software updates, try this:

    Select * from ZASSET where ZURI as "content %";

    You could get a line that looks similar to the following:

    403 2 6 0 2012986793 474949928.477396 476912032.644505 e03448847909547fb8c7d4ecd5a7b6dd FAB32A72-DE33-469D-A7DF-3CE1A1F9A4D2 on Wednesday, August 5, 2015 18:00:30 GMT

    / Content/downloads/42/44/031-30888/bhrkylcnycxmtug9daw3g4magqb7dl7hba/OSXUpdComb o10.1

    (added the newline for readability)

    It is an OS X Combo update.  It is located on the drive to library/server/cache/Data/FAB32A72-DE33-469D-A7DF-3CE1A1F9A4D2 / the file is probably named 0, but if you want to use it, just add at the end of the .pkg file.

    I hope this helps.  Put server cache saves a lot of data.

    Oh, to quit the sqlite command line tool, simply type .quit and press return.

    Reid

    Apple Consultants Network

    Author - "El Capitan Server - Foundation Services.

    Author - "El Capitan Server - Collaboration & control»

    Author - "El Capitan Server - Advanced Services '.

    : IBooks exclusively available in Apple store

  • Is there a way to get the handful of handful of composition layer?

    Hello

    I have an API call to query the bounding of the layer composition, however, I find no practical way to get a handle of the layer in the composition encompassing.

    is there a way to get a handle of composition, and then look on it as a layer (in some other publication)?

    Best regards

    Yuri

    If I read you correctly, you mean if a computer is are not nested in other

    Comps.

    If so, then there is no API for this list "used in". you will need to

    read the draft and check the layers of each model and compare the source.

    Start by getting the project item for the model you're looking for

    using AEGP_GetItemFromComp().

    then analyze the project with AEGP_GetNextProjItem(), check the type of each element,

    and if it's a model to digitize its layers using AEGP_GetLayerSourceItem().

    is the source of the layer with the source of the model and you will know if it is

    used here.

  • Is there a way to get the text to reformat then I Zoom in to read an article.

    Is there a way to get the text to reformat then I Zoom in to read an article, so I can't do a pan on?

    Unfortunately not - this is one of the disadvantages of pinch to zoom - makes the biggest full page

  • I try to install vista on my laptop but a letter of the key is not visible, all the other parts are very well including the serial code, is there another way to get the key of the other information?

    Taché product key

    Hello

    I try to install vista on my laptop but a letter of the key is not visible, all the other parts are very well including the serial code, is there another way to get the key of the other information? The laptop currently has non-OS I've tried to reinstall.

    Thank you

    Scott

    Product keys are bit-agnostic - they don't care if it's 32-bit or 64-bit.

    However, cannot legally use the recovery disk from one computer to a different constructor machine - as other licenses are not properly paid..

    There is nothing nonetheless to try all possible variations on the absence of character (there are only 25, after all the )

    Other than that, your best option is to contact the manufacturer and order a set of recovery disc for the machine. I do no download available for Vista with SP2 - but you can download Vista with SP1 and create the disc.

    http://www.heidoc.NET/Joomla/technology-science/Microsoft/57-Windows-Vista-direct-download-links

  • Is there a way to get the key on the dvd?

    I have one of the signature of windows 7 dvd sets complete the house party promotion my system which featured 64-bit died and I would like to install it on my new drive, but could not find the dvd cover with the product key to this issue is there a way to get the key on the dvd?

    Nope. There is no key on the DVD. Without the lid, you are out of luck.

  • Is there a way to get a list of all installed applications?

    Is there a way to get a list of all installed applications?

    You can submit a request to have such an API and provided good use. It also helps to get other developers can vote on it.

  • Is there a way to get the first Pro CS6 with still now I can't find the previous, offered versions with the subscription of the CC 2015?

    Is there a way to get the first Pro CS6 with still now I can't find the previous, offered versions with the subscription of the CC 2015? What is recommended for creating DVDs with interactive menus?

    Instructions again, cloud or version https://forums.adobe.com/thread/1992717 serial number
    -a of notes on different versions of cloud and step by step on these differences
    -contains information about the separate library download which is necessary
    -CS6 is the last reminder, see here #8 why http://forums.adobe.com/thread/1337952?tstart=0

    Still and 10 Windows https://forums.adobe.com/thread/2015461 use the compatibility mode of Windows 8
    problem/solution to install Encore CS6 https://forums.adobe.com/thread/1934087

  • Is there a way to get the name of the currency of the members of the outline

    Guys,

    Is there a way to get the names of the currencies of the members. I don't see any VB API function to do this. How can I get it?

    See you soon,.
    PM

    Mikki, if you want to just take one of your dimension of 'Country' and see what the currency is associated with him, call it EsbGetMemberInfo or EsbOtlGetMemberInfo will do (at least, according to the docs, do not remember having ever done).

    Only valid in > = 11.1.2. but if you export the outline to XML go MaxL, information is here too.

  • Is there a way to get the number of the current item?

    In an article with multiple instances: is there a way to get the number of the current item? If for example, I'm on the 3rd point, is it some sort of integrated "GET CURRENT NUMBER REGISTRATION" which would return a '3' to the program?

    Thank you

    Published by: WayneFMcKinstry on April 9, 2010 10:50

    If I get you correctly in tabular element that you want to know the current record or current, you can try this...

    For the current record

    :SYSTEM.CURSOR_RECORD;
    or
    :SYSTEM.CURRENT_RECORD;
    

    for the current element

    :SYSTEM.CURSOR_ITEM;
    

    -Clément

  • Is there a way to get the CF work around the original file?

    When I download a file in cf, cf renames the file if the file already exists. Is there a way to get the CF work around the original file?

    Yes of course nothing.

    The documentation tells you even this.
    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/Tags_f_10.html

    I will even make notice that the attribute "nameConflict" is the one that you
    you want to read.

  • Is there a way to reinstall the Games folder?

    Original title: lack of games folder

    Separated from this thread.

    This has not worked for me.  Is there a way to reinstall the Games folder?

    Hello

    Tip: Note the date of last response before posting on a thread.  The thread you posted in inactive for 2013.  You're lucky that your post has been noticed.

    What has not worked for you.  Have what measures you tried?

    What brand / model of the computer?

    Type of Recovery Manager

    Search for software reinstallation or similar program according to the make and model of computer.

    Look in the list of installed programs to plant for the program you want to reinstall

    You have your installation CD/DVD?  You can extract the .exe from the Recovery DVD file to reinstall the games.

    http://www.Vistax64.com/tutorials/261616-extract-files-Vista-installation-DVD.html

  • Is there a way to get the image out of my iPod 4th generation without knowing / being able to enter the password

    I've had my iPod for about 6 years. About 2 years ago, the screen broken to the point of not being able to enter my password, and since then, I forgot it all together. The power button does not work. I was wondering if there is a way to get the pictures off of it and on my computer.

    Thanks for your help.

    Additional info, the power button does not work.

  • Qosmio F30: Is there a way to get the remote to work directly with built in receiver

    My remote control Media Center only works when I plug the Receiver USB on my Qosmio F30 yet will work directly to the laptop with the vista media center pre program.

    Is there a way to get my remote to work directly on the built-in receiver?

    Steve.

    Hi Steve

    There is unfortunately no way to do it. Qosmioplayer is also part of the media offered by this book, and as you know this small Linux based application runs without booting the operating system. Due to this USB port can not be used (external receiver) and because of this one way remote control with Qosmioplayer is infrared receiver window.

    I'm not a technician and can explain you why this little infrared window is not used with the operating system running but, I'm sure, there must be a technical reason for it. Anyway, there is nothing to do, and you have to live with it. :(

  • Is there a way to get the old Office mate (Clippy) in Windows 7?

    I hate to be "Clippy" (or is this Clippie?) of XP and I would like to know if there is a way to get the old Office Assistant in Win7.

    They were actually disabled in 2001 with the implementation of 'Microsoft Office XP' and completely deleted for good at the end 2002 with the release of Microsoft Office 2003.

    You can restore to 2003 with some changes to the system registry and the replacement of prudent file, but it is not supported.  And this can be done at all in Office 2007 with impatience.

Maybe you are looking for