jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Daggett <jeremy.dagg...@RACKSPACE.COM>
Subject FW: passing the name while creating a volume in aws-ec2 using jclouds
Date Fri, 26 Sep 2014 04:42:22 GMT
Forwarding to the user@ list...

On 9/22/14, 6:34 AM, "Subhadip Bagui" <i.bagui@gmail.com> wrote:

>Hi All,
>
>I'm using the below code part to create a volume in ec2 using jclouds api.
>
>            EC2Api ec2Api = computeServiceContext.unwrapApi(EC2Api.class);
>            LOG.info("initialized ec2 api for volume creation");
>
>            org.jclouds.ec2.domain.Volume volume = ec2Api
>                    .getElasticBlockStoreApi()
>                    .get()
>                    .createVolumeInAvailabilityZone("ap-southeast-1b",
>size);
>            responseTemplate.setJobId(volume.getId());
>            responseTemplate.setCreationTime(volume.getCreateTime());
>            responseTemplate.setZoneId(volume.getAvailabilityZone());
>
>Now there is no option to pass the name of the volume while creating. But
>I
>want to list the volumes with respect to volume name in my api. Please let
>me know if there is anyway to pass the volume name while creating volume
>and get the volume name in volume details while using describeVolume.
>
>Also the aws api *describeVolumesInRegion
><http://demobox.github.io/jclouds-maven-site-1.5.8/1.5.8/jclouds-multi/api
>docs/org/jclouds/ec2/services/ElasticBlockStoreAsyncClient.html#describeVo
>lumesInRegion(java.lang.String,
>java.lang.String...)>*(String
><http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-ext
>ernal=true>
> region, String
><http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-ext
>ernal=true>
>... volumeIds)  doesn't provide the volume name even set from amazon ui
>after volume creation.
>
>Please help how to create volume with specified name and list the same
>also.
>
>
>Regards,
>Subhadip
>
>--------------------------------------------------------------------------
>-----------------------------------------


Mime
View raw message