Closed GoogleCodeExporter closed 9 years ago
In the document,it's shown the description "Creates an EBS volume either by
size, or from a snapshot"
So it means there're two ways to create the volume, right?
if I just wanna create the volume by size and do I set the field "snapshotId"
as null ?
And how to set up the field "zone name" ?
I setup the field by using the return value of function
"describeAvailabilityZones" and try to get the name,state or toString,
But it still fail to create the volume.
Original comment by kevinwan...@gmail.com
on 6 Jul 2010 at 7:38
Thanks. I've applied the patch
Kevin, You can now call VolumeInfo vol = ec2.createVolume("512", null,
"us-east-1a");
for instance.
The AvailabilityZone.getName() value is what you'd pass as the zoneName param.
Original comment by dkavan...@gmail.com
on 8 Jul 2010 at 10:43
This issue was closed by revision r336.
Original comment by dkavan...@gmail.com
on 8 Jul 2010 at 10:44
I use this calling below
List<AvailabilityZone> availZone = iws.describeAvailabilityZones(null);
VolumeInfo volInfo = iws.createVolume(volSize,null,availZone.get(0).getName());
It return the exception message "com.xerox.amazonws.ec2.EC2Exception: Problem
parsing returned message."
But I'm sure that availZone.get(0).getName() is right.
I'm in the Ecua EC2 environment with typica 1.6
Original comment by kevinwan...@gmail.com
on 9 Jul 2010 at 4:31
Original issue reported on code.google.com by
frank.bi...@gmail.com
on 30 Apr 2010 at 8:25Attachments: