Unsolved

This post is more than 5 years old

1 Rookie

 • 

3 Posts

1318

July 21st, 2011 09:00

Access to object MetaData?

Is there a way to get to ALL of an objects Atmos system metadata through the REST interface?  Specifically, what we're looking for is state information about an object's replicas, and whether they are 'current'.

I can see a several more fields are available through using the mauiobjbrowser tool console, and there is lots of info on the replicas.  Using the REST interface against the Atmos Evaluation Edition, I can see little more than UNIX-like file attributes.

Thanks,

Paul

281 Posts

July 21st, 2011 11:00

Hi Paul,

With Atmos 1.4+, there's a "Get Object Information" call you can make that will return information about replicas, retention, and expiration.  What language are you using?  Most of the API wrappers should have a "GetObjectInfo" method you can call.

1 Rookie

 • 

3 Posts

July 21st, 2011 11:00

Hi Jason,

Thanks.  For our prototyping work, we're using the Python EsuRestApi.py wrapper file.

I do see a section for Object Info in the programmers guide, and it looks like the syntax is to add an 'info' parameter to the GET request.  I don't see anywhere in the Python API where 'info' is used to build any requests, but it would be easy to add.  I'll give that a try.

Paul

222 Posts

July 22nd, 2011 07:00

Paul,

I added a method to the EsuRestApi.py called get_object_info() that does what we're discussing.  It takes an object_id as input and returns details about the replicas.

I checked the addition in to the Google Code repo.

Raj

0 events found

No Events found!

Top