Get the object of StoragePod storage profiles [vCloud Director]

Hi all

I'm automating DTS stuff for the creation of new vApps in vCloud Director and I want to integrate and use the workflow to Change Storage DRS by virtual machine configuration , but to do this I need to provide him with an object of type VC:StoragePod...  I have worked out how to get the default storage of each virtual computer profile, but may not know how to get to the StoragePod that it covers.

Don't laugh, but I only managed to get this far before getting stuck:

var vms = vApp.getChildrenVms();
for each (var vm in vms) {
 storageProfile = vm.storageProfile;
 ....
}

Can someone show me how to get a StoragePod of a profile of storage object ideally default virtual machines?

Thank you!

Mark

Have you had the opportunity to see this thread: http://communities.vmware.com/message/2147437#2147437 - it seems debating what you are interested... The catch here is that you are trying to do from the side the cloud... I can't look at this right now, but I suspect that you MUST have access to the underlying infrastructure to do what you ask... in this case, you will need to extract the object from VC:VirtualMachine of your vCloud:VM object, then the thread above can deepen assistance.

Tags: VMware

Similar Questions

  • I can't reinstall firefox, I get the error 'Could not load profile' and not a solution I found works. / Appdata/roaming/mozilla folder is not accessible.

    I'm on Win7 64 bit. Initially, I uninstalled because a program has changed my page of the new tab to something unwanted and I literally had no way to change this back. Now, every time I reinstall, I get the error "cannot load the profile, it may be missing or unreachable", and I can't create a new profile. Whenever I try to any method of opening the profile editor, I get the error 'Could not load profile' then too. I can't access the folder in/appdata/roaming/mozilla at all. It is said it is accessable and access is denied, and tries to remove it tells me I have not permission (even if I'm the admin). No other difficulty I saw worked. Can someone help, please?

    I have done a virus scan, cleaned up one piece of adware, rebooted, and it worked all of a sudden. I don't know what exactly caused to start working, but he did, so I consider this issue closed.

  • [CS5.5] [JS] how to get the object that is anchored by a text search result?

    Hello

    I need to get the object that is anchored by a text search result. It can be an image, textframe, group objects...

    It's my code...

    app.findTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.findWhat = "< FFFC > ';

    var myResults = app.activeDocument.findText ();

    var currentParagrapfNum = - 1;

    for (var n = 0; n < myResults.length; n ++) {}

    var currentResult = myResults [n];

    currentParagrapfNum = currentResult.paragraphs [0] .index;

    var currentAnchoredObject =? ;

    currentAnchoredObject.anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;

    currentAnchoredObject.anchoredObjectSettings.verticalReferencePoint = VerticallyRelativeTo.LINE_BASELINE

    }

    Can someone help me please?

    Thanx

    Yes, true, ^ anchor of finds, but they are of type character. What you need is

    myResults[n].pageItems[0].anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;

    Peter

  • Mac question: could not get the object file Photoshop Document object

    Hello

    I posted this question in my previous post, I hope I can get some aid.

    I created a group of Photoshop using Extension Builder 1.5, the Panel works perfectly in the window, but when I switch to Mac, broken things. I found the SDK on Mac is unable to me the Document.fullName when I open an image file in the formats JPG/GIF/PNG, event with the workaround provided by Bob (tml http://cookbooks.adobe.com/post_Creative_Suite_Extensions_and_the_Photoshop_CS5_Re-17727.h( )

    Actually, it is not question of Photoshop event, is open a JPG of my disk image, click a button in my Panel that will get the activeDocument, then try to get the object File from it, the Document.fullName always null. However, if I open the image in the Photoshop folder installed, it looks very good.

    Thank you

    Hi Alan,

    I took the project I have included in my response to your other thread and changed it so that I can open a file, click a button and see the contents of app.activeDocument in the debugger. Then I open a JPG file and debugged to the extension in Photoshop.

    No problem at this end.

    Concerning

  • Is it possible to get the object of doc JS of a PDF document that is opened in a web browser?

    As I mentioned in a previous post on the Scripting Forum (http://forums.adobe.com/thread/427791), methods that previously worked in Acrobat 8 to get the object of doc JS of a PDF document that is opened in a web browser - for example App.activeDocs . using the JS object and AcroApp.GetAVDoc (index). GetPDDoc using OLE automation - no longer works in Acrobat 9.  Therefore, in Acrobat 9, it is impossible to access a PDF file that is opened in a browser or in its annotations (except, of course, the PDF is downloaded to the computer and open through the NTFS, which kind of defeated the purpose).


    What is someone is aware can explain how to get the object of doc JS of a PDF document that is opened in a web browser?

    If the plugin exposes a DDE interface - of course.  But this assumes that he is there--it is not automatic.  You will need to write your own plugin or get an update if necessary.

    And thanks for the info: I'm passing along!

  • How the scripts for the new virtual machine storage profile

    Hey all,.

    I have a long script that I've been put together so that our operations people size new virtual machines.  I ask a series of questions for such things as the VM name, cluster, VLAN, plug hardware, OS/template, etc.  I use LucD method to create a temporary copy of a customization OS specification to insert a static IP address.  I have everything works except that I can't figure out how this script drop-down list:

    storageprofiledropdown.jpg

    vSphere 5.0, any VCD.  Looks like it should be pretty simple, but I can't find anything on how to do it.  It would be nice to choose this in the New - VM cmdlet somewhere, as well as the use of the GUI.  Any ideas?

    Throw a glance PowerCLI 5.8, when it is available, there is a charge storage profile cmdlets in there (as we showed in our VMworld session this week).

  • Get VIM object by reference using plugin vCloud

    Hello, any suggestions on how to recover a VIM oppose in reference to a host vCloud?  I am looking for resource support provider TDC pools.  Here's what I'm trying that produces a null result:

    for each (var in {VclHostManager.getHostList () vcdInstance)}

    vcdInstance.login ();

    for each (var in {vcdInstance.toAdminObject () .toAdminExtensionObject () .getVMWProviderVdcs () pvdc)}

    for each (var rp in {pvdc.getResourcePools ()})

    var rpVimObj = vcdInstance.getEntityByReference (VclFinderType.VIM_RESOURCE_POOL, rp.resourcePoolVimObjectRef);

    rpVimObj is null

    }

    }

    }


    I also tried some variations of types of finder as VclVimObjectTypeEnum.RESOURCE_POOL but also using rp.resourcePoolRef as parameters to getEntityByReference.  The vCloud host/plugin version is 1.5, with vCO 5.1.

    Hello

    There is a way! First, you must get the MoRef of the providerVdc to identify the resourcepool in a VC. But beware, in environments with multiple vCenter servers the MoRef is perhaps not unique (see here and here).

    I think this code will fit your needs:

    //A Moref is a VC-Identifier
    var rpMorefs = new Array();
    
    //do this for all vcdHosts
    for each (var vcdInstance in VclHostManager.getHostList()) {
    
         vcdInstance.login();
         //get all Provider-vDCs from vcdHost
         for each ( var providerVdc in vcdInstance.toAdminObject().getProviderVdcs())
         {
            //Prepare query - getProviderVdc by name
            var expression = new VclExpression(VclQueryProviderVdcResourcePoolRelationField.NAME, providerVdc.name, VclExpressionType.EQUALS);
            var filter = new VclFilter(expression);
            var params = new VclQueryParams();
            params.setFilter(filter);
    
            while (resultSet != null)  {
                // retrieve ProviderVdcResourcePoolRelationRecord record
                var records = resultSet.getRecords(new VclQueryResultProviderVdcResourcePoolRelationRecord());
    
                for each (var record in records) {
                    //get all resourcePoolMorefs
                    rpMorefs.push(record.resourcePoolMoref);
                }
                resultSet = resultSet.getNextPage();
                }
         }
    }
    
    var resourcePools = VcPlugin.getAllResourcePools();
    
    //get the vCenter-resourcePoolObject by Moref
    for each (var moref in rpMorefs){
    
        for each (var resourcePool in resourcePools) {
            if ( moref == resourcePool.id) {
                System.log("Resourcepool of the providerVdc: " + resourcePool.name);
            }
        }
    
    }
    

    Another way to retrieve the MoRef is to extract the XML providerVdc (providerVdc.toXml ()).

    See you soon,.

    Thomas

  • How to get the object request or session in action jpf in WebLogic Portal 8.1

    I am using WebLogic Portal 8.1. I want to get the parameters of query/attributes in the flow (jpf) page controller action method. Can someone help me how to get objects session or request to the page (CCP) flow control.

    getRequest() (inherited method gives extended request)
    ScopedServletUtils.getOuterRequest (scopedRequest) gives the main query

  • Get the object already exist error when installing adobe reader software

    I can't install Adobe application programs on my Windows 7 computer.  I tried Adobe Reader XI, 5.6 Lightroom, Photoshop CC, etc.  All permits with the error "the object already exists.  I searched on the Adobe site to fix, and it is to remove the Crypto file.  However, it resulted with the same error.  How can I install Adobe Reader?

    Update of Windows KB2918614 to the Windows Installer Service because of similar problems with other software.  You might want to try to remove this update (it will be installed near the time you started to have this problem).  Restart and try again to install the Adobe application.

  • How can I get the object for the size?

    yesterday. I found a video on the comparison of fireworks and photoshop to get the scale of the templates like this image. in this video, very easy to take the size.

    but I forgot to bookmark

    and today, I tried to find what it once again and never found.

    Anyone know how to get the size of the image as this image?

    Please give link or suggestion

    fw-faq-1.png

    waiting for your help

    Thank you

    Al

    Use the measure tool. You can find it by clicking and holding on the rectangle tool from vector. Once you've done dragging the arrow lines, add a fill color to add numbers.

  • How to get the object all save as Png adobe Illustrator

    Hello

    I'm trying to save as adobe illustrator .ai file .png file

    but all the object in different png files is that poosible

    If possible can someone help me...

    var f = new File ("C:\\test.txt");
    f.Open ("a");

    Len = app.activeDocument.pageItems.length;

    for (i = 0; i<>
    {
    c = App.activeDocument.pathItems [i] .visibleBounds;

    f.writeln (c);
    }

    f.Close ();

  • How to check if the virtual machine is managed by vCloud Director

    Hello

    I need to find a way to check in Orchestrator so the virtual machine is managed by Director vCloud.

    I can't verify this with PowerCLI command below:

    (get - vm Vm_name *). ExtensionData.Config.ManagedBy.ExtensionKey

    Untitled.png

    .. .but my goal is to check in the orchestrator workflow.

    Help, please.

    You can get the same information from the VC:VirtualMachine object in vCO.

    Create a workflow or action with a named input of type vm VC:VirtualMachine and the snippet of code below would get the information you are looking for.

    var extensionKey = vm.config.managedBy.extensionKey;

  • I downloaded, installed Firefox and when I try to open it I get the error message Firefox your profile cannot be loaded. It may be missing or inaccessible. »

    I read through the different post / solutions. I can nopt find the profile on my hard drive file. Until a month or two ago was able to use Firefox on this machine. Now not.

    How can I solve this problem?

    Attention MAC users: Lion and Maverick hide folders, you need to remove in order to get rid of this error message about the missing profiles folder. Hold down the option key while opening the go menu in the finder. Select the library.
    (Yes, it's a little different from the other library folder, you access the 'easy' way). Drag any folder Firefox or Mozilla, you see in the trash. Secure the trash removal. Download the latest Firefox and have him as usual.

    This parasite is not on Mozilla. This is life after Steve Jobs at Apple. Get used to it.

  • Bought a used iPhone 4S about six months ago. Not configured for all files huuuuge icloud. Only mail (which I cut on a regular basis), but no pictures. Why do I get the message that my storage is full? Why do I pay Apple for storage?

    I bought a used iPhone 4S about six months ago. Got an AT & T plan with data. Not upgrade to iOS 9.3 I read that it wasn't a good idea for older phones. Implement iCloud for ONLY mail and SMS. No pictures. I have cut my weekly mail.

    Now, I get a notice that iCloud is already full, and I have to pay for more storage. Why? There is nothing on the phone! I also have an iPad3 and a banal ASUS PC, which is where I store my photos and my photos. How would you complete the storage? Why do I pay Apple more money? They do not have enough?

    Go to settings/general/storage and use iCloud. Click on storage management in the ICLOUD section. It will tell you exactly how your iCloud-storage space is affected.

  • Get the object associated with the event

    I would like to create some user interface items dynamically and connect their tap event to a slot.

    The event that is passed to the slot is TapEvent:

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__tapevent.html

    How to use the event (or something else) to determine which object UI has been exploited?

    Thank you
    Daniel

    OK, he solved by trial and error.

    Looks like the parent of the TapHandler the container. So here's the final solution:

    TapHandler * tapHandler = qobject_cast(sender());
    Container container = tapHandler-> parent();

    Thanks for your help guys.

Maybe you are looking for

  • drivers for win 8

    Hello I can't find driver for other devices-Unknow device driver for win 8. He is absent. Please can enyone help me? ACPI\VEN_HPQ & DEV_0004ACPI\HPQ0004* HPQ0004

  • support of TimeStamp in datediff function

    Hello I run the Script even DIAdem Version 2012 and 2014. The Script includes the DateDiff() function of 2 channels that are identified as a date string. In the 2012 Version the Script runs without error and the 2014 Version the Script will throw an

  • In XP it I ran corrupt repair that leaves Microsoft Installer and it is not the Internet!

    How does the CD for my Windows XP Home Edition cause, no installer of Microsoft does this when I fell just repair does not restore, and there is no way gives internet although I could get the device wireless adapter to receive a signal from the modem

  • Need to clean and restore dell to form factor computer

    I need clean and restore my computer laptop studio xps from dell to factory settings and do not know how.  It came with windows vista but I don't know if my kids has changed, I am a computer dummy.  I was hoping that I could go to dell online and pre

  • XPS 13 Haswell 256 to 1 TB SSD upgrade

    I bought an EVO TB Samsung 840 1 to uprgrade my SSD XPS 13 256, as I was runnning out of space. The laptop has the previoiusly been completely saved including emergency bootable USB I have the new 1 TB SSD in an external USB enclosure I would like to