Create the ProviderVDC vai vCloud API

I want user vCloud API to create the ProviderVDC, but there is an error, anyone can help me? Thank you!

The XML form beolw:

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.admin.extensions.VcloudAdminExtension createVMWProviderVdc

INFO: POST URL - https://10.0.70.23/API/admin/extension/providervdcsparams

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.RestUtil post

INFO: POST URL - https://10.0.70.23/API/admin/extension/providervdcsparams

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.RestUtil post

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

" < ns9:VMWProviderVdcParams xmlns =" http://www.VMware.com/vCloud/versions "xmlns:ns2 =" http://schemas.dmtf.org/OVF/Envelope/1 "xmlns:ns3 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_VirtualSystemSettingData "xmlns:ns4 =" http://schemas.dmtf.org/wbem/wscim/1/Common "xmlns:ns5 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_ResourceAllocationSettingData "xmlns:ns6 =" http://www.VMware.com/vCloud/v1.5 "xmlns:ns7 =" http://www.VMware.com/Schema/OVF "xmlns:ns8 =" http://schemas.dmtf.org/OVF/Environment/1 "xmlns:ns9 =" http://www.VMware.com/vCloud/extension/v1.5 "name ="ProVDC"> " "" "" "" ""

< ns9:ResourcePoolRefs >

< ns9:VimObjectRef >

" < href = ns9:VimServerRef ' https://10.0.70.48 "/>

Cluster < ns9:MoRef > < / ns9:MoRef >

< ns9:VimObjectType > RESOURCE_POOL < / ns9:VimObjectType >

< / ns9:VimObjectRef >

< / ns9:ResourcePoolRefs >

" < href = ns9:VimServer ' https://10.0.70.48 "/>

< ns9:StorageProfile > * (all) < / ns9:StorageProfile >

< / ns9:VMWProviderVdcParams >

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.RestUtil post

INFO: POST Content Type application - application/vnd.vmware.admin.createProviderVdcParams+xml

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.RestUtil post

INFO: Status Code - 400

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.RestUtil post

INFO: Status - Bad Request

March 19, 2015 14:27:21 com.vmware.vcloud.sdk.RestUtil post

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

" < error xmlns =" " http://www.VMware.com/vCloud/v1.5 "majorErrorCode = "400" message ="the reference https://10.0.70.48 cannot be parsed correctly" minorErrorCode = "INVALID_REFERENCE" stackTrace = "com.vmware.vcloud.api.rest.handlers.exceptions.InvalidReferenceRestApiException: the reference https://10.0.70.48 can not be parsed correctly "

The VimServerRef should look more like this.

"href ="https://vcloud.example.com/api/admin/extension/vimServer/{identifier}.

see create a provider VDC

Tags: VMware

Similar Questions

  • Cannot create the VDC

    Hello

    When I try to create the VCC, the task ends by: cannot create the VCC.

    From the vSphere client, I have this error message: unable to create the name vdc 'VCloud appliance HOSTNAME' already exists

    If someone know the solution...

    Hello Jeremiah,

    Welcome to the VMware communities.

    Can you please explain your problem in detail, like how host, vCloud version and screenshots.

  • vCloud API for private cloud / backwards?

    Hello

    Sorry for the question of novice.  For API vCloud, VMware provides a cloud application on vCenter server endpoint?  It might be useful for my internal private cloud (and I did not need to develop the additional layer on top of my vCenter server).

    From coffee to speak today, I understand that vCloud what API should talk of endpoint of cloud which is implemented by the provider of public/external cloud services (vCloud Express partner).

    For private/inside cloud based on vSphere, we could use vSphere SDK to speak directly to the cloud.  If the vCenter server shows the implementation of vCloud API, I could use the same code (based on the vCloud API) to talk to the public/external and internal/private clouds.

    Thank you.

    Kong

    Hi Kong,

    vCenter Server does not expose endpoint vCloud API at this time.  VCloud Express partners expose endpoints that will be produced computing cloud of VMware that sits on top of vCenter Server.

  • Create the new virtual machine using Java API vCloud

    Hi guys,.

    I am trying to create the new virtual machine in TIME, but I've stuck here. The API I'm using is vcloud-java-sdk - 1.0.jar.

    Could you please show me a code snippet how to do this?

    For now I do it like this:

    RecomposeVAppParamsType recomposeVAppParamsType = new RecomposeVAppParamsType();

    List the items < CompositionItemParamType > = recomposeVAppParamsType.getItem ();
    ReferenceType vappTemplateVMRef = new ReferenceType();

    // ??? seems that new reference to the new virtual machine should be here. But how to create this VM
    CompositionItemParamType compositionItemParamType = new CompositionItemParamType();
    compositionItemParamType.setSource (vappTemplateVMRef);

    Items.Add (compositionItemParamType);
    ReferenceType vAppRef is Vdc.getVdcByReference (vcloudClient, vdcRef) .getVappRefByName ("vApp_Websrv");.

    Vapp.getVappByReference (vcloudClient, vAppRef) .recomposeVapp (recomposeVAppParamsType);

    One day before I played with Web Services SDK, which is much easier to understand. I was able to create the vApp and VMs in vSphere. Is it possible to import machines virtual vSphere to vCloud? Should what API I use for this?

    Thank you

    Hello

    You cannot add a new empty virtual machine in a paralytic.

    Instead, you can add a virtual machine from an existing vapp, vapptemplate.

    To import a vsphere vm to vcloud.

    Import vsphere vm as VAPP in vcloud. VMWVimserver-> importVmAsVApp()

    The importation of vsphere vm, as vAppTemplate, in vcloud. VMWVimserver-> importVmAsVAppTemplate()

    See also the example of ImportVmAsvAppTemplate.java, which is part of the vcloudjavasdk group.

    Kind regards

    Rajesh Kamal.

  • VCloud API c# adding firewall rules 5.1 to configure the edge gateway.

    Hello world

    I am setting up in edge gateway firewall rules in my VDC using Vcloud Director api 5.1.0.2. While the settings for a FirewallRuleType I am trying to add protocols, but I don't know what exactly should be passed to FirewallRuleTypeProtocols. There are only 2 properties in the object FirewallRuleTypeProtocols elements and ItemsElementName. Take items objects Array and ItemsElementName takes ItemsChoiceType. I tried to update value of items in the table of the types of annonymous as new {new {TCP = true}}; and the array of strings, new string {"TCP"}; but when ever I trie to execute the configureservices method after spending the type of firewall service for network services "Bad Request: error on line 1." End the file Premeture " can someone send sample c# code to configure firewall rules in Edgegateway?"

    I get this response on service gateway configuration edge call.

    ? XML version = "1.0" encoding = "UTF-8"? >

    "< error xmlns ="http://www.vmware.com/vcloud/v1.5"stackTrace =" javax.ws.rs.WebApplicationException: com.vmware.vcloud.common.xml.XMLProcessingException: Bad request

    to com.vmware.vcloud.api.rest.providers.CommonJAXBProvider.readFrom(CommonJAXBProvider.java:255)

    to org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1025)

    to org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:606)

    to org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:571)

    to org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:239)

    to org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)

    to org.apache.cxf.interceptor.ServiceInvokerInterceptor$ 1.run(ServiceInvokerInterceptor.java:58)

    to java.util.concurrent.Executors$ RunnableAdapter.call (unknown Source)

    to java.util.concurrent.FutureTask$ Sync.innerRun (unknown Source)

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

    to org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

    to org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

    to org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

    to org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)

    to org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)

    to org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

    to org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:166)

    to org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)

    to org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)

    to org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)

    to javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    to com.vmware.vcloud.api.rest.jaxrs.servlet.CxfServlet.service(CxfServlet.java:161)

    to com.vmware.vcloud.api.rest.jaxrs.servlet.JaxRsDispatcherServlet.doService(JaxRsDispatcherServlet.java:97)

    to org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

    to org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)

    to javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    to javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    to org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)

    to org.eclipse.jetty.servlet.ServletHandler$ CachedChain.doFilter (ServletHandler.java:1360)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:368)

    to com.vmware.vcloud.api.rest.diagnostics.DiagnosticFilter.doFilter(DiagnosticFilter.java:33)

    to com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.security.filters.ValidationFilter.doFilterHttp(ValidationFilter.java:96)

    to com.vmware.vcloud.api.rest.security.SecurityFilter.doFilterHttp(SecurityFilter.java:82)

    to com.vmware.vcloud.security.filters.HttpFilterBean.doFilter(HttpFilterBean.java:35)

    to com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.api.framework.web.ExtensibilityFilter.doFilter(ExtensibilityFilter.java:131)

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

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

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

    to org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)

    to org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)

    to org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)

    to org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

    to $Proxy734.doFilter (unknown Source)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.security.filters.ValidityExceptionFilter.doFilterHttp(ValidityExceptionFilter.java:47)

    to com.vmware.vcloud.security.filters.HttpFilterBean.doFilter(HttpFilterBean.java:35)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.security.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:155)

    to com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.api.rest.versioning.AcceptHeaderFilter.doFilter(AcceptHeaderFilter.java:108)

    to com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.security.web.ConversationFilter$ 1.run(ConversationFilter.java:39)

    to com.vmware.vcloud.security.web.ConversationFilter$ 1.run(ConversationFilter.java:37)

    to com.vmware.vcloud.common.persist.ConversationContextExecutor.execute(ConversationContextExecutor.java:67)

    to com.vmware.vcloud.security.web.ConversationFilter.doFilter(ConversationFilter.java:45)

    to com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to com.vmware.vcloud.security.web.ThreadLocalCleanerFilter.doFilter(ThreadLocalCleanerFilter.java:65)

    to com.vmware.vcloud.api.rest.diagnostics.RestApiDiagnosticsInterceptor.doFilter(RestApiDiagnosticsInterceptor.java:129)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:380)

    to org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)

    to org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

    to org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

    to org.eclipse.jetty.servlet.ServletHandler$ CachedChain.doFilter (ServletHandler.java:1331)

    to org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:77)

    to org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:181)

    to org.eclipse.jetty.servlet.ServletHandler$ CachedChain.doFilter (ServletHandler.java:1331)

    to org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)

    to org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)

    to org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)

    to org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)

    to org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)

    to org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)

    to org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)

    to org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)

    to org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

    to org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)

    to org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)

    to org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)

    to org.eclipse.jetty.server.Server.handle(Server.java:349)

    to org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)

    to org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)

    to org.eclipse.jetty.server.AbstractHttpConnection$ RequestHandler.headerComplete (AbstractHttpConnection.java:910)

    to org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)

    to org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)

    to org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)

    to org.eclipse.jetty.server.bio.SocketConnector$ ConnectorEndPoint.run (SocketConnector.java:254)

    to org.eclipse.jetty.server.ssl.SslSocketConnector$ SslConnectorEndPoint.run (SslSocketConnector.java:665)

    to org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)

    to org.eclipse.jetty.util.thread.QueuedThreadPool$ 3.run(QueuedThreadPool.java:534)

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

    Caused by: com.vmware.vcloud.common.xml.XMLProcessingException: Bad request

    to com.vmware.vcloud.common.xml.JAXBUtils.readFromStream(JAXBUtils.java:257)

    to com.vmware.vcloud.api.rest.providers.CommonJAXBProvider.readFrom(CommonJAXBProvider.java:250)

    108... more

    Caused by: org.dom4j.DocumentException: error on line 1 of document: premature end of file. Nested exception: premature end of file.

    to org.dom4j.io.SAXReader.read(SAXReader.java:482)

    to org.dom4j.io.SAXReader.read(SAXReader.java:365)

    to com.vmware.vcloud.common.dom4j.Dom4jUtils.parseDocumentFromString(Dom4jUtils.java:158)

    to com.vmware.vcloud.common.ovf.OvfCleanerImpl.process(OvfCleanerImpl.java:86)

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

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

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

    to org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)

    to org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)

    to org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)

    to org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

    to org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

    to org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

    to org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

    to $Proxy716.process (unknown Source)

    to com.vmware.vcloud.common.xml.JAXBUtils.readFromStream(JAXBUtils.java:223)

    ... more than 109

    I found the answer. Here's how to set firewall type protocol rules in c# API.

    Create the object of type firewall protocols

    Protocol of var = new FirewallRuleTypeProtocols();

    Value of protocols items this value corresponds to the value of the xml element

    Protocol. Items = new Object() {true};

    The name of the element value that is the name of xml element.

    Protocol. ItemsElementName = new ItemsChoiceType [] {ItemsChoiceType.Tcp};

    Protocol Set

    firewallRuleType.Protocols = Protocol;

  • Y at - it no vCloud API Java, who can give me the pool of the external IP address list for a particular network of org. ?

    Hello

    I've implemented vCloud Director on my network, when I create an organization network that is NAT-Routed I give him a pool of external IP addresses.

    My Question is that when an organization network is deleted what is happening with this pool of IP, how can retrieve us these IP address.

    Y at - it no vCloud API Java, who can give me the pool of the external IP address list for a particular network of org. ?

    Kind regards

    SachinJ

    Check the examples 6-10 and 6-11 in the vCloud API Programming Guide ("' an Administrative organization network overview").

    Although the 6-11 is abbreviated, 6-10 seems to suggest that the AllocatedIpAddresses element may contain what you are looking for.

    http://pubs.VMware.com/vCloud-API-1/vCloud_API_Guide_Admin.8.7.html#1039433

    I don't know how the Java SDK surfaces this information.

  • create the document using the CMIS REST API

    Hello! I would like to integrate my java application with Oracle Webcenter via the REST API of CMIS. I can read, delete documents, but have some problem with creating one.

    I get success only when I create document (type = "/ ucmserver / IDC:GlobalProfile") with the name "idcPrimaryFile". In other cases I have the exception:

    oracle.webcenter.content.integration.RepositoryException: November 12, 2015 08:52:06 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is XXX and the name of the file is idcPrimaryFile

    My properties:

    Properties =]

    (PropertyIds.OBJECT_TYPE_ID): type.

    (PropertyIds.NAME): name,.

    "/ ucmserver / IDC:GlobalProfile.ora:p:dDocType ':"Application. "

    ' / ucmserver / IDC:GlobalProfile.ora:p:dDocTitle ': 'Test ',.

    ' / ucmserver / IDC:GlobalProfile.ora:p:dSecurityGroup ': 'Public ',.

    ]

    I would appreciate help

    Hello! I solved my problem, but with a workaround.

    I will try to explain the problem and how it is possible to create documents via Oracle Webcenter Content Management API REST CMIS:

    For the next POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Content-Type: application/atom + xml; type = entry

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I get the response from the server

    Error 500 - Internal server error

    oracle.webcenter.content.integration.RepositoryException: 18 November 2015 05:24:04 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is test , and the name of the file is idcPrimaryFile.

    When the test is the document name.

    This request, I checked with an another compatible services of CMIS (IBM FileNet and OpenCMIS InMemory repository). I created the document with name test it.

    Workaround solution:

    POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Host: 192.168.32.192:8888

    Content-Type: application/atomsvc + xml

    Slug: test

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I created the document with the name test in Oracle Webcenter.

    The differences between applications are:

    Content-Type: application/atomsvc + xml

    Slug: test

    So I'm not sure that the Oracle Webcenter Content Management Service STILL provides "correct" implementation of the OASIS CMIS specification, because I found nothing in therehttp://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html on the Slug query parameter and it is not clear to me how the Oracle Webcenter Content Management REST Service works with Content-type application/atom + xml; type = entry (I mean according to CMIS specification().



    It will be very useful for me to get another point of view. Maybe someone could correct me if I'm wrong.

    Thanks in advance.

  • API to create the purchase order in the Oracle applications?

    Hi all

    Can you please tell me the API to create the purchase order in the Oracle Applications.

    Hello

    Please read the screenshot. There is no standard API to create a purchase order.  Better go to the open Interface to create the purchase order.

  • How to create the Clone VM using VCO plugin to vCloud Director?

    Hello

    Vcloud Director I can do a right-click option to copy of VM use for cloning. However, vCenter Orchestrator 5.1, I don't see the copy method in the VclVM object.

    How to write a stream VCO to clone a virtual machine that is customized?

    Kind regards

    Danie

    In vCD you need to recompose a vApp to clone a virtual machine in a paralytic.

    Here's some code I created for the vCD 1.5

    var recomposeVAppParams = new VclRecomposeVAppParams();
    var vmItem = new VclSourcedCompositionItemParam();
    if (vmName != null) vm.name = vmName;
    vmItem.source = vm.getReference();
    vmItem.sourceDelete = false;
    vmItem.instantiationParams = new VclInstantiationParams();
    
    //var numNetConnections = vm.getNetworkConnectionSection().networkConnection.size();
    
    var networkConnectionSection = vm.getNetworkConnectionSection();
    vmItem.instantiationParams.section.add(networkConnectionSection);
    
    recomposeVAppParams.sourcedItem.add(vmItem);
    return vApp.recompose(recomposeVAppParams);
    

    If you want to just clone the VAPP then it is a workflow of clone in the library of vCloud.

  • Cannot create the vCloud Director VDC

    Hi all

    Need help with my proof of concept of vCloud implementation Director. running on 5.1 vCloud Director unit. Just to give you an idea, I followed the VMware vCloud Director 5.1 Assessment Guide that we find on the VMware Web site.

    Note: My setup does not contane VXLAN although we have the network VLAN supported to improve network performance.  Of the vExpert mentioned to create a dummy VXLAN right in the vCloud Director and I'm not sure how to do this in vCloud Director console. (I noticed a default VXLAN is already created, I understand vCloud 5.1 has this feature is enabled by default)

    Installation succeeded in creating the Org VDC failed with error 'cannot create the VDC' found this disabling and re activation will release the Red 'X' I think it's false positive because it shows us that everything is perfect even if we get an error message in the logs ' status: error "and with" details: Internal Server Error' find the home images below.


    " In any case when it comes to download media after having created the catalogue for Org VDC we get the error message cannot complete the operation because the current organization VDC"Demo-Org-VDC"is disabled or is not ready '.

    I also noticed that we get an error message on vcenter Server vcloud (cell) cannot create the folder name already exists check the last my vcenter Server error message.

    also attached the logs in the images below.

    I found two post, which there is not yet of resolution and the other said its solved but does not have the fix.

    Any help to point me in the right direction will be appreciated.

    I will be happy to provide you with newspapers if necessary.

    Thank you

    Ibrahim

    I was not talking about data warehouses.  I refer to the view in the vSphere Client.

    Open the vSphere Client... and go to the computers view models and virtual (c# = Home button at the top, then models and virtual computers)

    In this perspective, there is a number of record Blue icons. Make sure that none have the same name as you describe.

    This is directly related to the error message in the client image vSphere that you took in the original post "cannot create folder. "PNG"

    vCloud produces an error because of something that happens in vCenter.

  • Using the vCloud on hosted iland Director vCloud API

    Hi all, I'm new to vCloud so please forgive me if I ask a stupid question. I am currently developing a solution of automation using vCloud API (.Net), and I have at my disposal a vCloud hosted on iland.

    I am trying to run the .net SDK samples and I see that I must provide the "vcloud" url to connect. For example, the command to get a list with all current VM is the following:

    ListAllvApps VcloudUrl user@organization password

    The thing is that I don't really know what is this "vcloudurl", I tried to use the value that appears in "URL for the default organization" on the parameters of the Organization (see screenshot), but I got an error in the response (rather than get a xml, I get an element html with text "Page not found" or something similar in the body).

    Can someone help me on this?

    Thank you very much

    Jorge

    ilandsshot.png

    I don't use iland, so I can't test it for real... but I did a few tests with what I could.

    URL of the API:

    https://dal01.ilandcloud.com/API

    API version: 1.5 (5.1 I tried, but it seems that they are not on this version yet)

    Example command to run with curl (most linux boxes can work and windows with Cygwin)

    curl-i k h ' Accept: application / * + xml; " version = 1.5"test@test:test u x POST https://dal01.ilandcloud.com/api/sessions

    This should connect and give you a token of permission-vcloud-x.  If you know that the RestAPI can connect.

    Hope it gets you going, wish I could do more but I do not have a full account to test with their services.

  • get the storage you use vCloud API

    I'm trying to figure out how to get the storage you use in an organization using vCO.

    There is information about the storage profiles used to an Org - vDC, but this information contains only the limit.

    My code looks like this:

    for each (var vdc in {org.getVdcs ()})

    for each (var profile in {vdc.toAdminObject () .getStorageProfiles ())}

    System.log (Profile.ToXml ();

    }

    }


    In the XML dump I only see the limit configured for this Org - vDC but not the consumption of this limit.

    The information are present in the Web GUI vCloud, how do I get this information from a code?

    Thank you

    Cristian

    LOL, favorite of this place, it will be VERY valuable to you... now, regarding your question, this help?

    This task scriptable takes an object provider VDC as input:

    System.log("============ Provider VDC: "+providerVdc.name+" ============");
    System.log("NOTE: If allocatedMB = 0, then the org vdc has been configured for 'unlimited'");
    var vdcs = providerVdc.getAdminVdcs();
    var host = providerVdc.getHost();
    for each (vdc in vdcs){
    System.log("====== Processing Org VDC: "+vdc.name + " ======");
    var queryService = host.getQueryService();
    var profs = vdc.getStorageProfiles();
    for each (var prof in profs) {
    var expression = new VclExpression(VclQueryAdminOrgVdcStorageProfileField.HREF, prof.getReference().href , VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    var resultSet = queryService.queryRecords(VclQueryRecordType.ADMINORGVDCSTORAGEPROFILE,params);
    
    while (resultSet != null) {
    var records = resultSet.getRecords(new VclQueryResultAdminOrgVdcStorageProfileRecord);
    //System.log(records.length + " records found");
    for each (var record in records) {
    System.log("Storage Profile Name (usedMB/allocatedMB): " + record.name + " ("+record.storageUsedMB+"/"+record.storageLimitMB+")");
    }
    resultSet = resultSet.getNextPage();
    }
    }
    System.log("");
    }
    
    // --------------------------- End code Snippet
    
    Sample output:
    [2013-03-21 12:27:03.553] [I] ============ Provider VDC: pVDC1 ============
    [2013-03-21 12:27:03.554] [I] NOTE: If allocatedMB = 0, then the org vdc has been configured for 'unlimited'
    [2013-03-21 12:27:03.763] [I] ====== Processing Org VDC: demo ======
    [2013-03-21 12:27:03.859] [I] Storage Profile Name (usedMB/allocatedMB): Shared (0/409497)
    [2013-03-21 12:27:03.861] [I]
    [2013-03-21 12:27:03.863] [I] ====== Processing Org VDC: tiny ======
    [2013-03-21 12:27:03.959] [I] Storage Profile Name (usedMB/allocatedMB): Local (1792/6144)
    [2013-03-21 12:27:03.963] [I]
    [2013-03-21 12:27:03.965] [I] ====== Processing Org VDC: CimVDC ======
    [2013-03-21 12:27:04.016] [I] Storage Profile Name (usedMB/allocatedMB): Shared (231680/0)
    [2013-03-21 12:27:04.020] [I]
    March 21 at 12:29 pm
    
  • How to use the api to query / vcloud api to filter records by ID AdminVAppTemplate?

    I tried the following REST calls:


    Here, I tried to use the href of the vAppTemplate:

    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = href is https://VCD.dDEV/API/vapptemplate-ed8aa4df-64be-454a-9acc-48ad25248092

    This means "com.vmware.vcloud.api.rest.parser.QueryParseException: Bad request: href unknown property name.

    Here, I tried to use the ID of the vAppTemplate (preferred method):
    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = ID is urn:vCloud:vapptemplate:ed8aa4df - 64be-454-bis-9acc-48ad25248092

    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = ID is ed8aa4df-64be - 454 a-9acc-48ad25248092

    the two returned "com.vmware.vcloud.api.rest.parser.QueryParseException: Bad request: name id unknown property.

    Here I was filtering by the parent organization (WORKS)
    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = org is 0913b09e-7f78-4DE0-87cd-99f6cbf3227a

    Any thoughts on how I can sort by ID?  or same href?

    Hi jarhorn,

    Currently the query Service does not support filtering based on the href or id property, but you can use the entity resolver to help you since you already know that the property ID take a look at this article for more details - http://blogs.vmware.com/vsphere/2012/05/entity-resolver-in-the-vcloud-api.html

    FYI - we are aware of this limitation today with the query Service and it will be fixed.

    Thank you

  • identification of the Director of virtual cloud into vCloud API

    Hello

    VCloud API, we can try to identify a computer virtual questioning his AdminVMRecord and by comparing these attributes:

    • AdminVMRecord.id
    • AdminVMRecord.vc
    • AdminVMRecord.vdc
    • AdminVMRecord.org

    I think it's safe to uniquly identify each VM in the vcloud, but what happens if I have two different sets of vcloud, which means I have two separate virtual-cloud-Director?

    Is it possible to acquire information of identification-virtual-cloud-Director via vCloud api?

    Thanks for comments in advance.

    To uniquely identify a virtual machine or any object in an instance of vCloud Director (several cells), at least in VCD 1.5, you must use its ID (format URN)

    for example urn: vcloud:vm:71d5b81a-f82d-495a-9e58-4b95a645c841

    If you need identify different vCloud Director forums, you can always use the same ID, but you'll want to capture the href that includes the host name of the VCD instance and if you break the href you will see that it includes the ID of the object as well.

    for example https://vcd1/api/vApp/vm-71d5b81a-f82d-495a-9e58-4b95a645c841

    You can also take a look at these articles for more information:

    http://blogs.VMware.com/vSphere/2012/02/uniquely-identifying-virtual-machines-in-vSphere-and-vCloud-part-1-Overview.html

    http://blogs.VMware.com/vSphere/2012/02/uniquely-identifying-virtual-machines-in-vSphere-and-vCloud-part-2-technical.html

  • Impossible to connect to the vCloud API - not allowed

    Hello

    We are new to vCloud environment and we are currently generating some POCs to become a vCloud provider.

    I'm suppose to integrate vCloud Director with our company portal, but I am currently struggling to connect to the vCloud API. It always throws an error "unauthorized". With the same credentials I can log into the vCloud Director without a problem.

    http:// < server_ip >/API/versions works very well for me, but http:// < server_ip > /api/v1.0/login message "unauthorized."

    I followed a few threads on the same discussion, and I give my user/pass in the following order.

    User@system

    < password >

    Appreciate help on this for me to pursue further away that I fight to achieve this for the last two days.

    Thanks in advance.

    Hello

    You can try with another tool - for example curl?

    Curl for example connection command: curl k u @System: /api/v1.0/login https:// (k option must ignore SSL certificate errors, as appropriate).

    In addition, you can try with a user in a different Organization (non-system).

    Can you also send the contents of the container-vcloud - debug.log after unsuccessful login (it is under/opt/vmware/vcloud-director/logs).

    Todor

Maybe you are looking for