You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by SANDEEP BAZAR <sa...@gmail.com> on 2014/08/21 18:35:34 UTC

Can we retrive OpenStack Swift Object using ObjectID?

Hi,

* Is there anyway to get the ObjectID for the Swift Object?
* And retrieve Swift Object using same ObjectID.

Thanks,
Sandeep Bazar

<http://r1.wisestamp.com/r/landing?u=d15491110c4ca423&v=3.11.25&t=1352974492165&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>

Re: Can we retrive OpenStack Swift Object using ObjectID?

Posted by Andrew Phillips <an...@apache.org>.
Moving this to user@...

> I am not sure how to get ObjectID for Swift Object. Earlier I have worked
> with SNIA CDMI object storage. Where we can access an Object using its name
> or unique ObjectID.

Both the portable BlobStore API [1] and the Swift-specific ObjectApi  
[2] support blob retrieval by name only, which serves as the unique  
identifier. The SwiftObject class also does not have an "ObjectID"  
field [3].

Looking at the Swift API documentation for Objects [4], I can also not  
see any obvious "ObjectID" field [5]. Could you let us know which  
attribute you have in mind here?

Regards

ap

[1]  
http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/blobstore/BlobStore.html
[2]  
http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/swift/v1/features/ObjectApi.html
[3]  
http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/swift/v1/domain/SwiftObject.html
[4]  
http://docs.openstack.org/api/openstack-object-storage/1.0/content/storage_object_services.html
[5]  
http://docs.openstack.org/api/openstack-object-storage/1.0/content/GET_getObject__v1__account___container___object__storage_object_services.html#GET_getObject__v1__account___container___object__storage_object_services-Response

Re: Can we retrive OpenStack Swift Object using ObjectID?

Posted by SANDEEP BAZAR <sa...@gmail.com>.
Thanks for the info.

I am not sure how to get ObjectID for Swift Object. Earlier I have worked
with SNIA CDMI object storage. Where we can access an Object using its name
or unique ObjectID.
So was wondering whether we can do the same with Swift Object?


On Thu, Aug 21, 2014 at 10:48 PM, Shrinand Javadekar <
shrinand@maginatics.com> wrote:

> Hey Sandeep,
>
> Is there a way to get the object id using the Swift command line
> client or simply using curl? If yes, can you point out how it is done?
>
> On Thu, Aug 21, 2014 at 9:35 AM, SANDEEP BAZAR <sa...@gmail.com>
> wrote:
> > Hi,
> >
> > * Is there anyway to get the ObjectID for the Swift Object?
> > * And retrieve Swift Object using same ObjectID.
> >
> > Thanks,
> > Sandeep Bazar
> >
> > <
> http://r1.wisestamp.com/r/landing?u=d15491110c4ca423&v=3.11.25&t=1352974492165&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10
> >
>

Re: Can we retrive OpenStack Swift Object using ObjectID?

Posted by Shrinand Javadekar <sh...@maginatics.com>.
Hey Sandeep,

Is there a way to get the object id using the Swift command line
client or simply using curl? If yes, can you point out how it is done?

On Thu, Aug 21, 2014 at 9:35 AM, SANDEEP BAZAR <sa...@gmail.com> wrote:
> Hi,
>
> * Is there anyway to get the ObjectID for the Swift Object?
> * And retrieve Swift Object using same ObjectID.
>
> Thanks,
> Sandeep Bazar
>
> <http://r1.wisestamp.com/r/landing?u=d15491110c4ca423&v=3.11.25&t=1352974492165&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>

Re: Can we retrive OpenStack Swift Object using ObjectID?

Posted by Jeremy Daggett <je...@RACKSPACE.COM>.
Moving to user@Š.

Hi Sandeep,

I am not clear on what you mean by ³ObjectID² here. All Swift objects are
accessed via their name, as per the OpenStack docs [1]. The
openstack-swift API provides a get method [2] to access the object.

Please let us know if you have any additional questions!

/jd

[1] 
http://docs.openstack.org/api/openstack-object-storage/1.0/content/GET_getO
bject__v1__account___container___object__storage_object_services.html

[2] 
https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-swi
ft/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java#L17
5

On 8/21/14, 9:35 AM, "SANDEEP BAZAR" <sa...@gmail.com> wrote:

>Hi,
>
>* Is there anyway to get the ObjectID for the Swift Object?
>* And retrieve Swift Object using same ObjectID.
>
>Thanks,
>Sandeep Bazar
>
><http://r1.wisestamp.com/r/landing?u=d15491110c4ca423&v=3.11.25&t=13529744
>92165&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_s
>ource%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>


Re: Can we retrive OpenStack Swift Object using ObjectID?

Posted by Jeremy Daggett <je...@RACKSPACE.COM>.
Moving to user@Š.

Hi Sandeep,

I am not clear on what you mean by ³ObjectID² here. All Swift objects are
accessed via their name, as per the OpenStack docs [1]. The
openstack-swift API provides a get method [2] to access the object.

Please let us know if you have any additional questions!

/jd

[1] 
http://docs.openstack.org/api/openstack-object-storage/1.0/content/GET_getO
bject__v1__account___container___object__storage_object_services.html

[2] 
https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-swi
ft/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java#L17
5

On 8/21/14, 9:35 AM, "SANDEEP BAZAR" <sa...@gmail.com> wrote:

>Hi,
>
>* Is there anyway to get the ObjectID for the Swift Object?
>* And retrieve Swift Object using same ObjectID.
>
>Thanks,
>Sandeep Bazar
>
><http://r1.wisestamp.com/r/landing?u=d15491110c4ca423&v=3.11.25&t=13529744
>92165&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_s
>ource%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>