Understood, Andrew; thanks.

Moving along in my code, when I try to call, say, orgApi.list(), I am
getting a fairly obvious certificate-based authentication failure:

Exception in thread "main" org.jclouds.http.HttpResponseException:
org.jclouds.http.HttpResponseException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target connecting to POST
https://dpvcloud.myCompany.com/sessions HTTP/1.1 connecting to GET
https://dpvcloud.myCompany.com/org/ HTTP/1.1

In looking over some code I wrote last year - code that uses the VMware VCD
Java client - I noticed that, after instantiating the VcloudClient, I
called its registerScheme method passing it a protocol ("https"), a port
number (443), and an instance of an SSLSocketFactory. I provided a factory
that accepts self-signed certificates.

Is there some analog for this in jclouds?

Thanks.

Cordially,

Paul

On Wed, Nov 6, 2013 at 2:48 PM, Andrew Phillips <[email protected]> wrote:

> But, unless I am sorely mistaken (always possible!), I don't presently
>> have access to these abstractions for VCD.
>>
>
> No, you're not sorely mistaken (and good searching!) - there is no view
> abstraction yet for vcloud-director. Note the lack of a "view" element in
> the VCloudDirectorApiMetadata vs. the EC2ApiMetadata.
>
>
>  If so, then won't my code - at least for the time being - be limited to a
>> single provider (VCD)?
>>
>
> Yes, that's correct.
>
>
>  a. create one or more vApps, each consisting of one or more VMs.
>> b. deploy thereon an OVA/OVF
>> c. configure application specific stuff on these VMs
>> d. start them up
>>
>
> I don't know the exact calls to make for each of these, but the
> corresponding APIs should all be accessible from the VCloudDirectorApi.
>
> An easy way to find the appropriate calls is to look at the equivalent
> calls you would make via the underlying vCDC HTTP API.
>
> ap
>
> [1] https://github.com/jclouds/jclouds-labs/blob/master/
> vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/
> VCloudDirectorApiMetadata.java#L79
> [2] https://github.com/jclouds/jclouds/blob/master/apis/ec2/
> src/main/java/org/jclouds/ec2/EC2ApiMetadata.java#L77
> [3] https://github.com/jclouds/jclouds-labs/blob/master/
> vcloud-director/src/main/java/org/jclouds/vcloud/director/
> v1_5/user/VCloudDirectorApi.java
>

Reply via email to