How to import plugin VCO through the REST API

I try to import plugin VCO via customer REST VCO, it always by listed below error

Exception in thread "main" org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error

at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:92)

at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:494)

at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:451)

at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:423)

at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:328)

at com.vmware.o11n.sdk.rest.client.services.PluginService.importPlugin(PluginService.java:65)

at com.vmware.o11n.sdk.rest.client.services.PluginService.importPluginFromFile(PluginService.java:53)

at FileUploadAdv100.uploadVCOPluginsList (FileUploadAdv100.java:53)

at FileUploadAdv100.main (FileUploadAdv100.java:26)

My code is here

File pluginFile = new File("D:\\vcoplugins\\JAVARESTSDK_Examples\\o11nplugin-powershell-1.0.1.vmoapp");
Boolean overwrite = false;
SessionFactory VcoSessionFactory = createSessionFactory();
Authentication auth = createAuthentication (sessionFactory);
Session VcoSession = sessionFactory.newSession (auth);
PluginService pluginService = new PluginService (session);
pluginService.importPluginFromFile (pluginFile, overwrite);

Concerning
APR

Hi APR,.

PluginService.importPluginFromFile () supports only import plug-ins of .dar files, not files .vmoapp.

The good news is that you can extract the .dar file is the .vmoapp file. Simply open the file .vmoapp with a program that can open. ZIP archives (like WinRar, WinZip, 7-zip, etc.) and check out the .dar file. Then change your code to pass the path to the file .dar (the first line of your code).

Another option would be to try PluginService.importApplicationFromFile (), which should support the import of .vmoapp files.

Hope this helps,

-Ilian

Tags: VMware

Similar Questions

  • How to pass the elqCustomerGUID as well as data of form through the rest API?

    Hey everybody,

    We have our own installer of forms on our front-end server.  We take this data with the basting eloqua (elqCustomerGUID) id and pass it on to our backend.  We then use the Eloqua Rest API to send the form data to Eloqua.  The problem is that I can not understand how to properly send the elqCustomerGUID so that it binds a contact to the the ID.  Need this to display the tracking page to work.

    According to the data of the shipment, it works perfectly - map us the values of their corresponding form ID field and send it.

    Any help would be appreciated!

    Thank you

    Chris

    I just finished using the CURL approach to imitate the real form post that Eloqua uses.  If you look at the html code of the form, you can see the fields, it took:

    elqFormName, elqCustomerGUID, elqCookieWrite, elqSiteID

    and then the htmlNames in any other field that the form is intended.

    If you post all what to "http://s«.$elqSiteID.".t.eloqua.com/e/f2 "in a tone of param query normal-online configuration of the value, it will count as if you clicked on submit on the real shape."

    Hope that helps! If you have any questions just shoot me a message.

  • How a VAPP user could get the Info org-network through the REST API?

    Hi all

    I can get the org-network when I use the system administrator use the REST url "/ api/org", but when I use a VAPP user, may not work properly.

    Then I try to config user VAPP role permission and give him the permition operating organization. The answer is STILL no network-org Info too

    What should I do?

    Respect of

    Hello

    VAPP users are not allowed to see the org above their visibility networks. They are allowed to see the networks VAPP.
    Org networks are visible to the user 'administrator of the Organization ". If you want you can see the permissions of the role "Administrator of the Organization" and create role with the org network of related rights, which will be tailored to your needs. You can also change the role of 'paralytic' adding rights for ' Org networks-> view/edit properties "and"organization-> view organization networks. This can be done as easily in the user interface of vCD.
  • Publish ads IPsets created on a scope through the REST API

    I am able to create a FPS on a range of data center as follows:

    POST https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

    < ipset(8) >

    < objectId / >

    < type >

    < typeName / >

    < / type >

    < description > new Description < / description >

    < name > TestIPSet2 < / name >

    < revision > 0 < / revision >

    < objectTypeName / >

    < value > 10.112.201.8 - 10.112.201.14 < / value >

    < / ipset(8) >

    that gives me id is:

    FPS-205

    I can successfully query this FPS directly with:

    GET https://192.168.x.x/api/2.0/services/ipset/ipset-205

    < ipsetipset >

    < objectId > FPS-205 < / objectId >

    < type >

    < typeName > Ipset(8) < / typeName >

    < / type >

    < name > TestIPSet2 < / name >

    < description > new Description < / description >

    < revision > 1 < / revision >

    < objectTypeName > Ipset(8) < / objectTypeName >

    < scope >

    < id > datacenter-xx / < ID >

    < objectTypeName > data center < / objectTypeName >

    XXXXX < name > < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < value > 10.112.201.8 - 10.112.201.14 < / value >

    < / ipset(8) >

    However, if I try to enumerate all IPsets on the scope of data center-xx, I get an error:

    GET https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

    https://192.168.x.x/API/2.0/services/IPSET/Datacenter-XX

    https://192.168.x.x/API/2.0/services/IPSET/IPSET-205

    < error >

    <>details requested object: data center-xx could not be found. Object identifiers are case sensitive. < / details >

    < > 202 errorCode < / errorCode >

    < moduleName > - basic services < / moduleName >

    < / error >

    Any ideas? Surely the datacenter-xx must exist because I have successfully created a FPS on that?

    Figured it out. The URL in the documentation is incorrect, that you actually need is:

    https://192.168.x.x/API/2.0/services/IPSET/scope/Datacenter-XX

    that is, it lacks the /scope

    Once added to the request is so successful

  • vRO package import/export using the REST API, but what to rebuild a package?

    Hello

    I can export and import a package using the REST API. The package consists of all the workflows in a certain folder of the project.

    That's fine, but when we do another workflow example in the folder of our project, it is not automatically part of the package. This reduces the value of planning an export of it, because it would still this manual interaction.

    Is there a way to do it (automate/CLI/REST /...) this?

    Thank you!

    Ed

    Hello

    REST API for package management (adding/removing items to package, rebuild a package, etc.) are planned for the next version of vRO - vRO 7.1 (or whatever the COMP version it gets).

  • Import a workflow with Orchestrator rest API

    Hello

    I am trying to import a workflow to Orchestrator through the REST API, but it always end upward with a 500 error:

    HTTP/1.1 100 continue
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/html; charset = utf-8
    Transfer-Encoding: segmented
    Date: Thu, February 28, 2013 16:54:57 GMT
    Connection: close
    Server: vCO Server
    I proceed in this way:
    I prepare the file that will be sent:

    -5bf10fbcf09

    Content-Disposition: form-data; name = "listVm"; filename = "listVm.Workflow"

    Content-Type: application/zip

    Binary

    -5bf10fbcf09-

    and then make a POST request to my server of vCO:
    curl - ik u "user: pass" h "Accept: application / xml ' h ' Content-type: multipart / form - data; "limit = - 5bf10fbcf09 ' h ' content-length: 19442 ' https://IP:PORT/api/stream / x POST @listVm.wf d
    Then it'll wait state:
    HTTP/1.1 100 continue
    and about 60 years later it returns me an error 500
    Thanks for your help!

    Here is a code that a workflow is important in a category:

    SessionFactory VcoSessionFactory = new DefaultVcoSessionFactory (new URI ("https://vcohost:8281 / api")) {}
    @Override
    protected SSLContext newSSLContext() throw KeyManagementException, {NoSuchAlgorithmException}
    Return newUnsecureSSLContext();
    }
    @Override
    protected HostnameVerifier {} newHostnameVerifier()
    Return newUnsecureHostnameVerifier();
    }
    };
    This is for basic authentication in the what the vCO is in LDAP mode
    Authentication Authentication = new UsernamePasswordAuthentication ("userName", "password");
    It is to the SSO authentication
    Authentication Authentication = null;
    try {}
    SsoAuthenticator authenticator =
    new SsoAuthenticator (new
    1800 l);
    Authentication =
    authenticator.createSsoAuthentication ("userName",
    "password");
    } catch (IOException e) {}
    throw new RuntimeException ("Cannot authenticate to the OSP", e);
    } catch (URISyntaxException e) {}
    / / There are unlikely to occur
    // }
    Session VcoSession = sessionFactory.newSession (authentication);
    WorkflowService wfService = new WorkflowService (session);
    wfService.importWorkflowInCategory ("categoryId", new file)
    'path_to_some_workflow.workflow'));

    I have this code I use only the customer is provided with vCO:

    https://vcohost:8281/API/docs/downloads.html

    Hope this helps

    Concerning

    Ivan

  • Add a contact e-mail group via the Rest API

    Hello

    Is it possible to add a contact to a group of e-mail through the Rest API?

    I saw this article here http://topliners.eloqua.com/docs/DOC-3526 which shows that you can get a subscription email group contacts status, however it is not clear how actually to add a contact to a group of e-mail via the API.

    I tried to post data to ' data/contact / {id} / groups/email/subscription "but I get a response of"Method not allowed"API."

    If someone managed to achieve? If so, how?

    See you soon

    Hi David,

    The POST operation is not supported by this endpoint, but you can use PUT a method for updating subscriptions Contact:

    • PUT: / data/contact / {id} / email/group / {groupId} / subscription

    Where the request body contains an object of the subscription. Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • The REST api is supported by Eloqua?

    Hi guys,.

    I know that this seems to be an odd question at first, but bear with me.

    Recently, I created a few features to read certain Eloqua components.

    Then I came across some problems with th! api e REST and contacted support, at one point, they reported that the REST api was not officially taken in charge, is this true?

    Because using SOAP is no option for our programming environment and the major PART is just for the massif of the small amount of calls, we have to do.

    Hope you can give me a permission in this respect, because we do not want to create stuff on top of the api REST when we can never support on it.

    Through the REST API, you can do many things, not all supported.  This page lists the supported operations: management of Eloqua API use cases

  • Access catalog getting and setting using the REST API

    I have a catalog I can see through the user interface which allows members to add in the tab share read-only, read/write or full control of the vCD. They do not appear anywhere that I can find when obtaining the catalog through the REST API.

    The REST API of 1.5 of vCloud Director documentation indicates that it supports the getting or setting user access to catalogs by using the link "conrolAccess". This link does not appear in the response to a GET the href of the catalog (admin or his substitute). Attempted to add "/ controlAccess" HREF catalogue translated by RESOURCE_NOT_FOUND.

    Hello

    Could be a bug in the documentation, try like this

    https://cloud/api/org/org-uuid/catalog/catalog-uuid/controlAccess - Fetch (GET)

    https://cloud/api/org/org-uuid/catalog/catalog-uuid/action/controlAccess - updated (AFTER)

    Kind regards
    Rajesh Kamal.

  • Input values default settings for a workflow run through the REST interface

    Can someone give me an overview here, I have a workflow configuration that takes a series of input parameters, most of the time the default values (defined through the presentation tab) are correct, so I hope not not to be specified in each request only on exception

    How can I call the workflow to execute with other api provides only the settings I have and leave the value default those to do their job?

    There is a REST API for presentation and execution of workflow.

    So, you can use presentation REST API to create/update presentation running, providing only the necessary parameters. As a result of these API calls, you will get the values for all time settings (those you passed to the call) and those calculated by your presentation logic. Then, you can call the REST API by passing all values returned by presentation REST API for the execution of workflow.

  • Workflow of vCO of query using the REST API in PowerShell

    Hello

    I am interrogating a workflow vCO by name using the REST API of PowerShell based on this article:

    http://www.vcoteam.info/articles/learn-VCO/268-how-to-use-the-rest-API-to-start-a-workflow.html

    $username = "XXXXXX".

    $upassword = "XXXXXX".

    $auth = $username + ':' + $upassword

    $Encoded = [System.Text.Encoding]: UTF8. GetBytes ($auth)

    $EncodedPassword = [System.Convert]: ToBase64String ($Encoded)

    $headers = @{' authorization '=' basic $($EncodedPassword) ' ;}}

    $body = "<-xmlns = execution context" ". ' http://www.VMware.com/VCO ' > < / execution context > '

    #query for workflow named "donothing".

    Invoke-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donothing -Headers $headers - body $body - ContentType "application/xml" - Get method

    Invoke RestMethod: failed to send a content-body with this type of verb.

    On line: 1 char: 1

    + Call-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donoth ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [invoking-RestMethod], ProtocolViolationException)

    + FullyQualifiedErrorId: System.Net.ProtocolViolationException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand

    The request succeeds by using the customer REMAINS on Firefox, but I can't make it work on PowerShell. (NOTE: PowerShell workflow execution works very well)

    Any help is appreciated.

    Thank you

    Juan.

    OK, I managed to do work by removing

    [System.Net.ServicePointManager]: ServerCertificateValidationCallback = {$true}

    And add this at the beginning of the script

    "Add-type @ '.

    using System.Net;

    using System.Security.Cryptography.X509Certificates;

    public class TrustAllCertsPolicy: {ICertificatePolicy

    public bool CheckValidationResult)

    ServicePoint srvPoint, X509Certificate certificate,

    WebRequest request, int certificateProblem) {}

    Returns true;

    }

    }

    "@

    [System.Net.ServicePointManager]: CertificatePolicy = New-Object TrustAllCertsPolicy

    Now I can use the GET method:

    $ret = Invoke-WebRequest - uri $URL - Headers $headers - ContentType "application/xml" - Get method

    I spent to Invoke-WebRequest so I can get the return of application Web.

    Juan.

  • How to get assets via the REST API (Webcenter Sites)

    Hello world

    I need to get assets via the REST API using Javascript, but I don't know how to open a session. Can someone explain to me how do?

    I would really appreciate it.

    I also followed this guide Oracle Webcenter REST API permission | Stories of official codification but does not work.

    Best regards!

    Hello rvillamarin,

    Take a look at https://docs.oracle.com/cd/E29542_01/doc.1111/e29634/wemsecurity.htm#WBCSD306. With this, you should be able to get a ticket, to pass at the request of the REST.

    Kind regards

    Stephan.

  • How to import my mp3 in the cc Flash library? I got an error, what should I do?

    How to import my mp3 in the cc Flash library?

    They have to import without a problem. Make sure they are 44.1 Khz and 16-bit.

  • How to configure Hostname of the node with the REST API?

    I tried the value of hostname of the virtual machine when I deploy an application, but were unsuccessful.  The application consists of all the operating system - there is no installed service but an example here that I used when I deployed the application.  It is based on the release of the REST API "node info": for the particular deployment profile.

    {

    'node': [{}

    "name': 'VM1."

    "properties": [{}

    "hostname": "joe".

    }],

    ["nodeComponent":]

    }]

    }

    But when you use this application I get the error message: "the node 'VM1' does not exist in the current 'deployment profile'. ' even if 'VM1' is the only node in the deployment profile.  I tried other variations and still get the same error message.

    Does anyone have suggestions for how I can configure the hostname of the node when you deploy the application?  Thank you.

    Apparently, the REST API for planning a deployment is designed after characteristic GUI Application Director "rapid deployment". Rapid deployment does not allow the substitution of properties of node as hostname. Idea being the deployment profile once defined and prepared, each individual call of it must change some subset of the properties of the component. We can always create several profiles of deployment to account for changes in node.

    Nevertheless, it seems that property of node specifications would help your situation... so that your comments reached the product team.

    Thank you rags

    This posting is provided as is and confers no rights.

  • How do to identify the documents called "models of library" using the RESTful API?

    How do to identify the documents called "models of library" using the RESTful API? Furthermore, what constitutes a document to be a "model of library"? I see nothing in the libraryDocuments RESTful documentation that describes this type of document, such as presented on the tab 'Manage' my developer account. Please see the screenshot below. There is a model of Document named "[DEMO ONLY] Test model" listed under "Library Templates" and I try to figure out which classifies that document to be included this way and how does produce a similar announcement by using the RESTful API.

    Screen Shot 2014-10-29 at 11.16.48 AM.png

    Thank you!

    Hello

    You can connect to access library models using the REST API, use 'GET /libraryDocuments' allowing to recover documents in library for a user. Models are created in the account of EchoSign, which later are accessible via the REST method mentioned above.

    Jat

Maybe you are looking for

  • How can I empty easily deleted folder?

    I want to empty e-mail removed easily without doing it individually

  • Error set up a new sync account

    As a former user of firefox, that I recently tried to use synchronization to easily manage bookmarks and preferences between my computers. So I created a sync account on my laptop, but the timing never worked. Instead, my browser displays an error me

  • Installed Windows 7 Pro 64 bit on original Vista CQ60 and now can't do the system recovery

    I have a Compaq Presario CQ60-320SA, which came with Vista Home Premium 32-bit and do a new install of 7 Pro 64-bit.  Now I want to go back but F11 does not work, and there is no recovery for a reason Manager any. The recovery partition is still ther

  • Hidden network problems

    I can most connect to a wi - fi network, I used to be able to connect in a hotel, so I was unable to have the use of the web for 5 days, I was there - whenever I used the diagnosis that he returned the network was hidden - how I get it back?

  • EqualLogic PS4000 replacement doesn't have a disk with the largest disk

    I have a drive failing in PS4000. Now, I need to replace the disc, but is it possible to replace the current failed drive with disc compatible but bigger? See the attached picture. I use RAID 50 and all disks are now 300 GB except a spare drive which