VCD API 5.1 java SDK task getProgress

Hello

I try to get the status of a task that has been submitted to a VCD. The Java SDK 5.1 documentation, I see this, for the task class:

java.lang.Integer getProgress()

-Returns the status of the task.

But I'm at a loss to understand what is the value of the integer returned average? know how to interpret the integer value as what the task status? I see no explanation for this in the documentation. Beats me.

I'm looking for a means to know the status of the task so that I get a return type of "TaskStatusType" (which has values

[QUEUED WAITING, PRERUNNING, SUCCESS, RUNNING, ERROR, CANCELLED, INTERRUPTED]). But I don't think I see any method in the class of task that would bring me the TaskStatusType status for the task.

How would I do that?

Thank you

REDA

Never mind. I thought about it.

TaskType taskType = task.getResource ();

String taskStatus = taskType.getStatus)

is what I need.

Tags: VMware

Similar Questions

  • java.io.NotSerializableException: com.vmware.vcloud.sdk.Task

    Hello

    I have a workflow creates a task waiting because it has the performance to help

    trigger = System.getModule("com.vmware.library.vCloud.common").createEndOfTaskTriggerForTask (task);

    and then a workflow element "event pending."

    Unfortunately, the workflow is now stuck in State "waiting sign" and I see the following exception which crosses the catalina.out app-server

    INFO: Response - <? XML version = "1.0" encoding = "UTF-8"? >

    " < task xmlns =" " http://www.VMware.com/vCloud/v1.5 "status = 'success' startTime ="2014-08 - 07 T 15: 25:29.853 + 02:00"serviceNamespace ="com.vmware.vcloud ' operationName = operation"vappUpdateVm"=" updated Virtua "

    "Machine node1 (f088e966-1a17-4d46-99ea-2395c3f3a618) l' expiryTime =" "2014-11 - 05 T 15: 25:29.853 + 01:00" endTime = "2014-08 - 07 T 15: 25:36.623 + 02:00" a cancelRequested = "false" name = 'task' id = "urn: vcloud:task:c2e0".

    "" " b564-d7f8-468f-b602-f9e8ee495c44" type="application/vnd.vmware.vcloud.task+xml" href = " https://VCD.He.foobar.info/API/task/c2e0b564-d7f8-468F-B602-f9e8ee495c44 "" xmlns: xsi = " http://www.w3.org/2001/XML "

    -L'instance of the schema "xsi: schemaLocation =" http://www.VMware.com/vCloud/v1.5 http://vcd.he.foobar.info/api/v1.5/schema/master.xsd' > .

    "" < type="application/vnd.vmware.vcloud.vm+xml owner" name = "Node1" href = " https://VCD.He.foobar.info/API/vApp/VM-f088e966-1a17-4d46-99ea-2395c3f3a618 "/ > "

    "" < user type="application/vnd.vmware.admin.user+xml" name = "vco" href = " https://VCD.He.foobar.info/API/Admin/user/777db7f3-1f41-4934-85A4-346efd78a8c1 "/ > "

    "" < type="application/vnd.vmware.vcloud.org+xml organization" name = 'Production' href = ' https://VCD.He.foobar.info/API/org/c594d7a6-2c9b-4853-b0d0-74bdb107e23c "/ > "

    < details / >

    < / task >

    15:41:52.195 07-08-2014 + 0200 [1c47251c586f3e4a7ef329bcdc4da3b9abbfa3d46eda3164d3ffd7537285b3.data] ERROR {c.becker:Wait for a task: 508080808080808080808080808080809980808001266312685778e677578588f:f}

    { f808081476970030147b0a5347a00ae} [DiskStorageFactory] Disk writing of https://vcd.he.foobar.info/api/task/c2e0b564-d7f8-468f-b602-f9e8ee495c44 failed:

    java.io.NotSerializableException: com.vmware.vcloud.sdk.Task

    at java.io.ObjectOutputStream.writeObject0 (unknown Source)

    at java.io.ObjectOutputStream.defaultWriteFields (unknown Source)

    the impossible (unknown Source)

    at net.sf.ehcache.Element.writeObject(Element.java:835)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at java.io.ObjectStreamClass.invokeWriteObject (unknown Source)

    at java.io.ObjectOutputStream.writeSerialData (unknown Source)

    at java.io.ObjectOutputStream.writeOrdinaryObject (unknown Source)

    at java.io.ObjectOutputStream.writeObject0 (unknown Source)

    at java.io.ObjectOutputStream.writeObject (unknown Source)

    at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:97)

    at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405)

    at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384)

    to net.sf.ehcache.store.disk.DiskStorageFactory$ DiskWriteTask.call (DiskStorageFactory.java:485)

    to net.sf.ehcache.store.disk.DiskStorageFactory$ PersistentDiskWriteTask.call (DiskStorageFactory.java:1088)

    to net.sf.ehcache.store.disk.DiskStorageFactory$ PersistentDiskWriteTask.call (DiskStorageFactory.java:1072)

    at java.util.concurrent.FutureTask.run (unknown Source)

    to java.util.concurrent.ScheduledThreadPoolExecutor$ ScheduledFutureTask.access$ 201 (unknown Source)

    to java.util.concurrent.ScheduledThreadPoolExecutor$ ScheduledFutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Does anyone has an idea what is the cause?

    We use vCO 5.5.1 and the workflow even worked before on a different node with the same version - we just moved by export of package and it imported into the new facility.

    From what I recall, it is a known problem with the vCD plug-in that was resolved with a technical preview that was posted on the document tab.

  • Java sdk support

    Hello

    can someone tell me up to which version of the java sdk, we can use in blackberry.

    Java BlackBerry os is based on j2me, which is in turn based on java 1.4 (or 1.3?)
    in any case, you cannot use the api collections unless you implement it yourself.
    basically: use vector and hashtable.

  • URL of Java sdk sample programs

    In the following example, where can I find the vCloudApiVersionsURL and https://vcloud/api/versions.

    I have already installed vsphere and vcenter. Do I need to install any other software?


    /*
    * *******************************************************
    * Copyright VMware, Inc. 2009-2010.  All rights reserved.
    * *******************************************************
    *
    * WARNING. THIS PROGRAM IS PROVIDED TO YOU "AS WHAT ' WITHOUT
    * WARRANTIES OR CONDITIONS # IF ORAL, WRITTEN, OR ANY
    * EXPLICIT OR IMPLICIT. THE AUTHOR SPECIFICALLY # DISCLAIMS ANY IMPLIED
    * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY # QUALITY,
    * ABSENCE OF INFRINGEMENT AND APPROPRIATENESS HAS A PARTICULAR PURPOSE.
    */
    package com.vmware.vcloud.sdk.samples.extra;
    import java.io.IOException;
    import java.security.KeyManagementException;
    import java.security.NoSuchAlgorithmException;
    import java.util.Map;
    Import org.apache.commons.httpclient.protocol.Protocol;
    Import org.apache.commons.httpclient.protocol.ProtocolSocketFactory;
    import com.vmware.vcloud.api.rest.schema.ReferenceType;
    import com.vmware.vcloud.api.rest.schema.versioning.VersionInfoType;
    import com.vmware.vcloud.sdk.Organization;
    import com.vmware.vcloud.sdk.VCloudException;
    import com.vmware.vcloud.sdk.Vapp;
    import com.vmware.vcloud.sdk.VcloudClient;
    import com.vmware.vcloud.sdk.Vdc;
    /**
    * This example search details VAPP given one of the ip of the virtual machine
    *
    * @author ecosystem Engineering
    *
    */
    public class FindvAppByIp {}
    public static VcloudClient customer;
    /**
    * This method searches the VAPP for ip of the given virtual machine.
    *
    @param expectedIp
    * @return
    * @throws VCloudException
    */
    public static ReferenceType findvAppByIp (String expectedIp)
    get {VCloudException}
    {for (orgRef ReferenceType: {client.getOrgRefs ())}
    Organization org = Organization.getOrganizationByReference (customer,
    orgRef);
    {for (vdcRef ReferenceType: {org.getVdcRefs ())}
    VCC Vcc = Vdc.getVdcByReference (customer, vdcRef);
    {for (vappRef ReferenceType: {vdc.getVappRefs ())}
    VAPP vapp = Vapp.getVappByReference (customer, vappRef);
    {for (VAPP vm: {vapp.getChildrenVms ())}
    {for (String actualIp: {vm.getIpAddresses ())}
    If (actualIp! = null)
    If (actualIp.equals (expectedIp)) {}
    Return vm.getParentVappReference ();
    }
    }
    }
    }
    }
    }
    Returns a null value.
    }
    Public Shared Sub main (string args []) throws VCloudException,
    KeyManagementException NoSuchAlgorithmException, IOException {}
    If (args.length < 5) {}
    System.out
    .println ("java FindvAppByIp vCloudApiVersionsURL 1.0 user@organization ipaddress password");
    System.out
    .println ("java FindvAppByIp https://vcloud/api/versions 1.0 user@Organizaiton ipaddress password");
    System.Exit (0);
    }
    Implementation for SSL access. Do not use production environment
    Https protocol = new Protocol ('https',
    ((ProtocolSocketFactory) new FakeSSLSocketFactory(), 443);
    Protocol.registerProtocol ("https", https);
    client = new VcloudClient(args[0]);
    Versions of map < String, VersionInfoType > = client.getSupportedVersions ();
    customer. Login (args [2], args [3], versions.get(args[1]));
    ReferenceType vappRef = findvAppByIp(args[4]);
    VAPP vapp = Vapp.getVappByReference (customer, vappRef);
    System.out.println (vApp.GetResource (). GetName());
    System.out.println (vApp.GetResource () .getHref ());
    }
    }

    Hello

    What is the vcenter sdk?

    -4.1 ESX/ESXi and vCenter Server 4.1 systems provide a Web service that you can access using the vSphere API. The vSphere Web Services SDK facilitates the development of client applications that target the vSphere API.

    http://www.VMware.com/support/developer/VC-SDK/

    Can't, I used without vCloud Director?

    -Talk to the vCloud API by using the SDK vCloud, to vCloud Director.

    Kind regards

    Wangzi

  • Java sdk example programs

    I am trying to collect "ListAllvApps.java" code in vCloud Java SDK and run it. Everything that I try to run gives an error about the "FakeSSLSocketFactory" Code and the output is below.  Name of the Java application is "Vapplist".  Only to learn java so be gentle.

    1764710.png

    Code:

    /*
    * *******************************************************
    * Copyright VMware, Inc. 2009-2010.  All rights reserved.
    * *******************************************************
    *
    * WARNING. THIS PROGRAM IS PROVIDED TO YOU "AS WHAT ' WITHOUT
    * WARRANTIES OR CONDITIONS # IF ORAL, WRITTEN, OR ANY
    * EXPLICIT OR IMPLICIT. THE AUTHOR SPECIFICALLY # DISCLAIMS ANY IMPLIED
    * WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY # QUALITY,
    * ABSENCE OF INFRINGEMENT AND APPROPRIATENESS HAS A PARTICULAR PURPOSE.
    */
    package com.vmware.vcloud.sdk.samples;

    import java.io.IOException;
    import java.security.KeyManagementException;
    import java.security.NoSuchAlgorithmException;
    import java.util.HashMap;

    Import org.apache.commons.httpclient.HttpException;
    Import org.apache.commons.httpclient.protocol.Protocol;
    Import org.apache.commons.httpclient.protocol.ProtocolSocketFactory;

    import com.vmware.vcloud.api.rest.schema.ReferenceType;
    import com.vmware.vcloud.sdk.Organization;
    import com.vmware.vcloud.sdk.VCloudException;
    import com.vmware.vcloud.sdk.VcloudClient;
    import com.vmware.vcloud.sdk.Vdc;

    /*
    List of all the vApps
    *
    */

    public class Main {}

    Public Shared Sub main (string args []) throws HttpException,
    VCloudException, IOException, KeyManagementException,
    {NoSuchAlgorithmException}

    If (args.length < 4) {}
    System.out
    .println ("java ListAllvApps vCloudApiVersionsURL 1.0 user@organization password");
    System.out
    .println ("java ListAllvApps https://vcloud/api/versions 1.0 user@System Password");
    System.Exit (0);
    }

    Implementation for SSL access. Do not use production environment
    Https protocol = new Protocol ('https',
    ((ProtocolSocketFactory) new FakeSSLSocketFactory(), 443);
    Protocol.registerProtocol ("https", https);

    Client connection
    VcloudClient vcloudClient = new VcloudClient(args[0]);
    < String, ReferenceType > HashMap orgsList = vcloudClient.login (args [2],)
    args [3], vcloudClient.getSupportedVersions (.get(args[1])));

    Course of tree and print out all the vapps
    System.out.println ("listing all the vApps");
    System.out.println("---");
    {for (orgRef ReferenceType: {orgsList.values ())}
    for (vdcLink ReferenceType: Organization)
    .getOrganizationByReference (vcloudClient, orgRef)
    {(.getVdcRefs())}
    for (ReferenceType vAppRef: Vdc.getVdcByReference ())
    vcloudClient, {vdcLink) .getVappRefs ())}
    System.out.println (vAppRef.GetName ());
    System.out.println (vAppRef.getHref ());
    System.out.println ();
    }

    }
    }

    }
    }

    _____________________________________________

    1764710_1.png

    Clean and build output-

    init:
    LIFO-clean:
    Update property file: /Users/tkraus/NetBeansProjects/vapplist/build/built-clean.properties
    Delete the Directory/Users/tkraus/NetBeansProjects/vapplist/build
    clean:
    init:
    DEPS-jar:
    Created dir: / Users/tkraus/NetBeansProjects/vapplist/build
    Update property file: /Users/tkraus/NetBeansProjects/vapplist/build/built-jar.properties
    Created dir: / Users/tkraus/NetBeansProjects/vapplist/build/classes
    Created dir: / Users/tkraus/NetBeansProjects/vapplist/build/empty
    Compiling 1 source file to/Users/tkraus/NetBeansProjects/vapplist/build/classes
    / Users/tkraus/NetBeansProjects/vapplist/src/com/vmware/vcloud/sdk/samples/Main.java:50: cannot find symbol
    symbol: FakeSSLSocketFactory, class
    location: com.vmware.vcloud.sdk.samples.Main of the class
    ((ProtocolSocketFactory) new FakeSSLSocketFactory(), 443);
    ^
    1 error
    / Users/tkraus/NetBeansProjects/vapplist/nbproject/build-impl.xml:531: the following error occurred during the execution of this line:
    / Users/tkraus/NetBeansProjects/vapplist/nbproject/build-impl.xml:261: compilation failure; See the error output of the compiler for details.
    BUILD FAILED (total time: 0 seconds)

    Hello

    All samples require the FakeSSLSocketFactory.java.

    Just drag the FakeSSLSocketFactory.java in the com.vmware.vcloud.sdk.samples package.

    You can find this FakeSSLSocketFactory.java in the vcloud-java-sdk-samples-1.0-sources.jar.

    Kind regards

    Rajesh Kamal.

  • could get java sdk 2.5 vi used Ports, uplinks, as "esxcfg-vswitch - l"?

    I try to get the Ports used, java sdk 2.5 uplinks vi. can anyone guide?

    Thank you

    out of runing 'esxcfg-vswitch - l' as follows:

    root@esxhost5# esxcfg - vswitch - l

    Switch name Num used Ports configured Ports MTU rising ports

    64 4 64 1500 vmnic0 vSwitch0

    Name PortGroup VLAN ID used rising Ports

    0 1 vmnic0 Console service

    Switch name Num used Ports configured Ports MTU rising ports

    64 18 64 1500 vmnic1 vSwitch1

    Name PortGroup VLAN ID used rising Ports

    Prod_1 5 501 vmnic1

    Prod_2 502 2 vmnic1

    Prod_3 2 503 vmnic1

    Prod_4 3 504 vmnic1

    Prod_5 6 505 vmnic1

    root@esxhost5#.

    [Take a look at the host-> config-> network-> vswitch]

    http://www.VMware.com/support/developer/VC-SDK/visdk25pubs/ReferenceGuide/Vim.host.VirtualSwitch.html

    You will find numPorts and numPortsAvailable and you can do a little math to calculate usedPorts as which is not set automatically.

    Here is a sample of how it is actually implemented in esxcfg-vswitch

    my $portGroups = $vSwitch->portgroup;
                            foreach my $port (@$portGroups) {
                                    my $pg = FindPortGroupbyKey ($netMgr, $vSwitch->key, $port);
                                    next unless (defined $pg);
                                    my $usedPorts = (defined $pg->port) ? $#{$pg->port} + 1 : 0;
    

    You can find the details if you download the RCLI and they are just standard Perl scripts, and it should help to explore the VI API and find what you need.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    http://Twitter.com/lamw

  • Application using Java SDK 5.0 compatible with the lower SDK version?

    Hello

    I wanted to know if I'm developing an application using the Blackberry Java SDK 5.0, it would work on slot version 4.3 or 4.2.1? If the current application has features not available on the previous version of course.

    I mean, if I develop an application of basic as a HelloWorld with SDK 5.0, this app works on a phone with SDK 4.2.1?

    Thank you

    Damien.

    The only time where I tried it, I received an error of compatilbility so I would say not in my experience.

    My suggestion is to build with backward compatibility in mind and remember that what you build for 4.2 will work in 5.0 and so on.

  • BlackBerry Java SDK v6.0.0 what operating system on the device?

    I installed BlackBerry Java SDK v6.0.0 and the 1.1.2.201004161203 - 16 BlackBerry Java plug-in for Eclipse.

    What Op system will run applications compiled and delivered with the Java SDK v6.0.0?

    It's just a ready version for OS v.6 or Apps running on OS v.5.x?

    I've compiled packed etc and tried to load my file ALX on my BB I get;

    "No applications can be found. Your file may contain applications that already exist... "etc".

    Google has been, and it was suggested that I uninstalled BB Desktop, cleanregistry etc., downloaded the latest version. Done, but no joy.

    Thank you.

    all devices are compatible, but not upward.

    in other words, an application compiled with os 6 will work only on the OS6 devices (simulators).

    If you compile with 4.2.1 all devices with OS 4.2.1 or higher, for example OS 6, run.

  • Modeler data SQL cannot find the java sdk

    Hello

    I want to install 4.0.3 - 853 on windows xp 32-bit.

    In the first inning, message "could not find a java sdk SE way...» »

    I had already installed first jre 1.7.0_45 - as indicated on the installation notes page that produces this error message.

    After reading other peoples problems I replaced it with the jdk 1.7.0_45 because the request for enforcement is the path to the java JDK home.

    Still get the same message as above.

    I tried to change the SetJavaHome in datamodeler.conf, but that didn't work or the other.

    I tried pointing the Launcher to d:\oracle\java\jdk1.7.0_45 as d:\oracle\java\jdk1.7.0_45\bin and d:\oracle\java\jdk1.7.0_45\bin\java.exe all to nothing does not.

    On a light off the coast of the chance - like cleaning the windshield when the car won't start - I installed SQL Developer 4.0.3.16.84 in case the treatment was slightly different.

    Same result

    Very frustrating every previous version of the developer and grouped data with java maker has just installed in a few minutes.

    All of the inspiring thoughts / solutions would be extremely appreciated

    Thank you

    Stem

    Ok

    It seems that - maybe - jdk1.7.0_71 high is needed and jdk1.7.0_45 is not acceptable whatever the installation notes which stipulate that jre 1.7 is suitable. Mind the same version of SQLDeveloper says he wants to 1.8, but seems to work very well with 7u71

    I had stayed in 7u45 to minimize disruptions to the installation of 10g of shapes on the same machine which of course do not now

    It's looking no doubt easier to get this working with 7u71 than the other way around.

    Stem

  • SQLdeveloper said when at the beginning of navigation in C:\Program Files\Java\jre8\bin: "cannot find a Java SDK SE to the path C:\Program Files\Java\jre8\bin.

    SQLdeveloper said when at the beginning of navigation in C:\Program Files\Java\jre8\bin: "cannot find a Java SDK SE to the path C:\Program Files\Java\jre8\bin.

    Runs as an administrator.

    I'm administrator of my PC with Windows 7 64 bit.

    Installed the Java jdk-8u11-windows - x 64 .exe.

    You're VERY close - just remove the part "\bin".

  • VMware Vcenter Converter Standalone Java SDK

    Hi guys,.

    Currently, I'm trying to imitate what is the GUI version, but I want to use scripts to do the work that is, somehow, to automate the whole process. I installed the Client-Server version, using the code example in the sdk > samples > axis, I managed to do the job, however, I'm unable to specify the minimum value for a specific record. I want to do this because the GUI version allows me to take a minimum storage for a specific disk space and place it on the ESXi server, for my version of java SDK I am unable to take the minimal storage space and had to take the entire disk that I don't like.

    For example, the C drive has a total of 200 GB with 50 GB used space and 150 GB of unused space

    Version of GUI-> able to avoid 200 GB and take approximately 50 GB only (give and take a few GB more) push-to-server ESXi
    Version java SDK-> only able to take in all of 200 GB and push to ESXi that takes lots of my ESXi Server

    Is it possible, for example by specifying a certain variable so that I can push my drive with minimum disk storage value instead of taking the entire batch of unused space? Oh and 1 other question, is possible to turn on virtual machines in the ESXi after reboot using a script? I did search but can't really find anything so I thought that it would be a good thing to ask here. Any help would be appreciated because I'm a newbie with this

    See you soon!

    Hello

    You must set the target disk and volumes to clone in order to be able to specify the size of the volume. By default, when these are disabled, is to keep the source size of the volumes.

    First make sure you have the SDK examples that are new, such as 6.0 or 6.1. Then, look at the end of the submitwinp2vjob.properties file, you will see this section:

    ; Must precede the individual disk fields. Assumed to be 0 if not defined. Must follow target.type.

    ; Fields of individual disk with a number equal or greater than this indictment will be ignored.

    Storage.targetdisk.Count =

    ; Use of the source id obtained by QuerySource or leave blank for new disks

    Storage.targetdisk.sourcediskid #0 =

    ; The valid values for target managed: vmfsMonolithicFlat, vmfsMonolithicFlatThinProvisioned,.

    ;                                                vmfsTwoGbFlat, vmfsTwoGbFlatThinProvisioned

    ; The valid values for target hosted: monolithicFlat, monolithicSparse, twoGbFlat, twoGbSparse

    ; Leave blank to use the default value of the target

    Storage.targetdisk.DiskType #0 = vmfsMonolithicFlatThinProvisioned

    Storage.targetdisk.LVG #0 = false

    Storage.targetdisk.GPT #0 = false

    Storage.targetdisk.datastore #0 =; Name of the data store; applicable and compulsory for managed targets

    ; Must precede the fields individual volumestoclone. Assumed to be 0 if not defined.

    ; Fields of individual volume with a number equal or greater than this indictment will be ignored.

    Storage.targetdisk.volumestoclone.Count #0 =

    ; The first index is the index of the disk, the second is the volume index

    ; Use of that source id obtained by QuerySource

    Storage.targetdisk.volumestoclone.sourcevolumeid #0 #0 =

    Storage.targetdisk.volumestoclone.Resize #0 #0 = false

    Storage.targetdisk.volumestoclone.newcapacityinbytes #0 #0 =

    Storage.targetdisk.volumestoclone.newclustersizeinbytes #0 #0 =

    Here, you must complete the number of target, properties of the target disks disk and their number of respective volumes and properties.

    The trickiest part is to get the ID of source disks and volumes. Querying the source info will give you this data (as indicated by the comment). Then, you have to find a way to set up the configuration of the target using these data. It is this that the customer of the user interface, and it gives a lot of flexibility for the user to change this configuration. Something that you should be aware is that when this Linux P2V, each logical volume group gets its own target disk (and his "storage.targetdisk.lvg #i" sets to true).

    Once you describe the target configuration, usestorage.targetdisk.volumestoclone.resize #i #j = true fields'and'storage.targetdisk.volumestoclone.newcapacityinbytes #i #j =' resize the volume.

    The numbers after the signs sharp suck according to index (not ID!) of the disk and volume (in that order). In the previous line, 'I' is the index of the disc, 'j' is the volume index.

    HTH

    Plamen

  • Help Desk accidentally uninstalled JAVA SDK and OBIEE no longer works

    The java SDK has been accidentally uninstalled. I reinstalled it. However, OBIEE (10g) does more work. I don't know what the previous version of the Java SDK. However, the new version is C:\Java\jdk1.6.0_19. I think that perhaps I have to configure OBIEE to point to the new directory Java SDK, but I do not know where to set it up. Any ideas on how I can get OBIEE working again?

    User,

    File C:\OracleBIData\web\config (instanceconfig.xml)

    \Java\jdk1.5.0_14

    Restart your presentation services

    Try this

    Thank you
    Saichand.v

  • We get ACCESS_TO_RESOURCE_IS_FORBIDDEN error when I try to instantiatevAppTemplate using Java SDK API vCloud

    Hi all

    I'm new to global vCloud. I'm trying to create a vApp by instantiating a model existing in vDC. I am getting error below. Could someone please tell what could be the problem? Thank you much for the help. I do not have full access to the catalog.

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    INFO: - > Post: https://rarvcloud.dfdev.jnj.com/API/v1.0/VDC/1735607793/action/instantiateVAppTemplate

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    NEWS: POST Request Body: <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

    " < = xmlns:ns1 ns2:InstantiateVAppTemplateParams ' http://schemas.DMTF.org/OVF/envelope/1 "xmlns:ns2 =" " http://www.VMware.com/vCloud/v1 "xmlns:ns3 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_ResourceAllocationSettingData "xmlns:ns4 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_VirtualSystemSettingData "xmlns:ns5 =" http://schemas.dmtf.org/wbem/wscim/1/Common "xmlns:ns6 =" http://www.VMware.com/vCloud/versions "xmlns:ns7 =" http://www.VMware.com/vCloud/extension/v1 "name ="BalaTestvAppp"> " "" "" "

    Bala Test VAPP < ns2:Description > < / ns2:Description >

    < ns2:InstantiationParams >

    < ns2:NetworkConfigSection >

    < ns1:Info / >

    < ns2:NetworkConfig networkName = "RBA 212" >

    < ns2:Configuration >

    " < ns2:ParentNetwork type="application/vnd.vmware.vcloud.network+xml "name ="RBA 212"href =" https://rarvcloud.dfdev.jnj.com/API/v1.0/network/1334432680 "/>

    Bridge of < ns2:FenceMode > < / ns2:FenceMode >

    < / ns2:Configuration >

    < / ns2:NetworkConfig >

    < / ns2:NetworkConfigSection >

    < / ns2:InstantiationParams >

    " < ns2:Source type="application/vnd.vmware.vcloud.catalogItem+xml "name ="RBA Test 1 "href =" https://rarvcloud.dfdev.jnj.com/API/v1.0/catalogItem/39249650 "/>

    < / ns2:InstantiateVAppTemplateParams >

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    INFO: POST request Content-Type: application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    INFO: POST charset request: null

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    INFO: Status Code: 403

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    INFO: Status line: HTTP/1.1 403 Forbidden

    June 17, 2011 14:02:36 com.vmware.vcloud.sdk.RestUtil post

    INFO: Status: banned

    June 17, 2011 14:02:37 com.vmware.vcloud.sdk.RestUtil post

    INFO: Response:? XML version = "1.0" encoding = "UTF-8"? >

    " < error xmlns =" http://www.VMware.com/vCloud/v1 "minorErrorCode ="ACCESS_TO_RESOURCE_IS_FORBIDDEN"message =" no access to the entity & quot; com.vmware.vcloud.entity.vapptemplate:39249650 & quot;. ' majorErrorCode = '403' "xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "xsi: schemaLocation =" http://www.VMware.com/vCloud/v1 http://rarvcloud.dfdev.jnj.com/api/v1.0/schema/master.xsd"> < / error > " "

    June 17, 2011 14:02:37 com.vmware.vcloud.sdk.Response Agency

    NEWS: Planned the State Code: 201

    June 17, 2011 14:02:37 com.vmware.vcloud.sdk.Response Agency

    INFO: Actual status Code: 403

    Exception in thread "main".

    com.vmware.vcloud.sdk.VCloudException : no access to the entity 'com.vmware.vcloud.entity.vapptemplate:39249650'.

    to com.vmware.vcloud.sdk.Response.handleUnExpectedResponse)

    Response.Java:121 )

    to com.vmware.vcloud.sdk.Vdc.instantiateVappTemplate)

    VDC. Java:477 ( )

    to com.vmware.vcloud.sdk.samples.HellovCloud.newvAppFromTemplate)

    HellovCloud.java:270 )

    to com.vmware.vcloud.sdk.samples.HellovCloud.main)

    HellovCloud.java:375 )

    ===============

    ==

    Here is the code snippet.

    public

    static Sub main (String args []) throws

    VCloudException,

    InterruptedException, HttpException, IOException,

    KeyManagementException, {NoSuchAlgorithmException}

    Usage example

    Connection and getting the list of organization

    HellovCloud. opening of session (

    " https://MyOrg.com/API/versions " , "1.0" , "userid@RBA-POV" , "password"

    );

    Find a

    VDC

    VCC Vcc is HellovCloud. findVdc (

    "RBA-POV" , "Org RBA vCD"

    );

    Catalog category = Catalog. getCatalogByReference (

    vcloudClient , findCatalogRef(' RBA-POV ', 'RBA catalogue' )

    ));

    Iterator Iterator < ReferenceType > =

    null

    ;

    iterator = catalog.getCatalogItemReferences () .iterator ();

    System.

    on .println ( 'List of the items in the catalogue' )

    );

    ReferenceType point =

    null

    ;

    While

    (iterator.hasNext ()) {

    Item = iterator.next ();

    System.

    on .println ( "name =" "')

    + item.getName ());

    System.

    on .println ( "href =" "')

    + item.getHref ());

    }

    ReferenceType vAppTemplatereference =

    null

    ;

    vAppTemplatereference = item;

    Instantiation of the vAppTemplate

    VAPP vapp is HellovCloud. newvAppFromTemplate (vAppTemplatereference, vdc);

    waitForTaskCompletion (vapp.getTasks () .get (0));

    chaning all the vms ip address mode static ip pool

    configureVMsIPAddressingMode (vapp.getReference (), vdc);

    String vappName = vapp.getReference () .getName ();

    Deploy the VAPP Instantiated

    System.

    on .println (' deployment of the " " ')

    (+ vappName);

    System.

    on .println("--------------------"

    );

    waitForTaskCompletion ((vapp.deploy)

    fake

    1000000));

    Turn the VAPP

    System.

    on .println (' PowerOn the ' )

    (+ vappName);

    System.

    on .println("-------------------"

    );

    waitForTaskCompletion (vapp.powerOn ());

    Suspend the vApp

    System.

    on .println ("suspend the" )

    (+ vappName);

    System.

    on .println("-------------------"

    );

    waitForTaskCompletion (vapp.suspend ());

    Turn the VAPP

    System.

    on .println (' PowerOn the ' )

    (+ vappName);

    System.

    on .println("-------------------"

    );

    waitForTaskCompletion (vapp.powerOn ());

    Turn off the vApp

    System.

    on .println ("PowerOff the ' )

    (+ vappName);

    System.

    on .println("--------------------"

    );

    waitForTaskCompletion (vapp.powerOff ());

    Undeploy VAPP

    System.

    on .println (' cancel the deployment of the " " ')

    (+ vappName);

    System.

    on .println("--------------------"

    );

    waitForTaskCompletion ((vapp.undeploy)

    true

    ));

    Removal of vApp

    System.

    on .println (' remove the " " ')

    (+ vappName);

    System.

    on .println("------------------"

    );

    Hello

    Get to the Organization of your preference.

    Organization org = organization. getOrganizationByReference (vcloudClient, vcloudClient.getOrgRefByName ("OrgName"));

    Download the catalogues of this organization.

    {for (catRef ReferenceType: {org.getCatalogRefs ())}

       Cat catalog is a Catalog. getCatalogByReference (vcloudClient, catRef);

    Check if the catalog is published.

    If (cat.getResource () .isIsPublished ()) {}

    System. out.println (cat.getReference (). GetName());

           Download the catalog items and its entities.

    {for (catItemRef ReferenceType: {cat.getCatalogItemReferences ())}

               CatalogItem catItem is CatalogItem. getCatalogItemByReference (vcloudClient, catItemRef);

    System. out.println ("" + catItem.getEntityReference () .getName () + "-" + catItem.getEntityReference () .getType () "");

    }

    }

    }

    Kind regards

    Rajesh Kamal.

  • creating a task of Java SDK revertToSnapshot

    Hello.

    I would like to create a revertToSnapshot task, and I have not seen a class that allows this. Am I missing something? I saw a method called startReplaying_Task in the VirtualMachine class that takes a VirtualMachineSnapshot as parameter, but I have not seen any method that returns to snapshot.

    Amir

    method 'startReplaying' is defined in the VirtualMachine managed object, however, the 'RevertToSnapshot_Task' is defined in VirtualMachineSnapshot managed object. You will need to seek 'snapshot' of VirtualMachine property and get the appropriate reference to "VirtualMachineSnapshot. You should be able to find the 'RevertToSnapshot_Task' method in this class.

    I hope this helps!

    Neha

  • IOM api to run a scheduled task

    Hello

    I use OIM 11.1.2.2.

    I run a scheduled task with the api and a failed idea. I saw this api Thor.API.Operations.tcuserOperationsIntf and that have what I need.

    Can you help me?

    SchedulerService (Oracle Fusion Middleware Java QAnywhere for Oracle Identity Manager), APIs will do it.

    triggerNow

    void triggerNow(java.lang.String jobName) throws SchedulerException, SchedulerAccessDeniedException
    
    Runs the specified job
    Parameters:
    jobName-The work that needs to be triggered
    Throws:
    SchedulerException -when an error occurs in the Quartz engine or Scheduler is not running.
    SchedulerAccessDeniedException -This exception will be thrown if the access permission for the operation is not available for the user

    -Kevin

Maybe you are looking for