Highlighted
1 Copper

Get replicas Info by Emc Atmos rest Api

The rest api "/rest/objects/<objectId>?info" can not return replicas status, such as "numReplicas" and "replicas", is there any ways to realize my requirement?


the emc atmos client version i used:

<dependency>
   <groupId>com.emc.vipr</groupId>
   <artifactId>atmos-client</artifactId>
   <version>2.1.6</version>
</dependency>

 

0 Kudos
3 Replies
Highlighted
Moderator
Moderator

Re: Get replicas Info by Emc Atmos rest Api

Hello Allen_J,

Here is the link to EMC Atmos Version 2.1.6 Programmer’s Guide & if you look on page 86-88 should be of assistance.

https://dell.to/2YIvWxp

Please let us know if you have any other questions.

DELL-Sam L
Dell | Social Outreach Services - Enterprise
Download the Dell Quick Resource Locator app today to access PowerEdge support content on your mobile device! (iOS, Android, Windows)

0 Kudos
Highlighted
1 Copper

Re: Get replicas Info by Emc Atmos rest Api

Hi Sam 

After checked on the Programmer’s Guide, i foud that the rest api "rest/objects/objectId?info"  will return the response like the below:

Request

GET /rest/objects/4b00fffea12059c104b00ffca1f8e804b040c4d911c9?info HTTP/1.1 Host: 10.32.89.193 accept:*/* date:Fri, 20 Nov 2009 05:47:29 GMT content-type:application/octet-stream x-emc-date:Fri, 20 Nov 2009 05:47:29 GMT x-emc-uid:e103f726a87d45abbd8d5f189a8cecfc/aaa x-emc-signature:u/kFWYGR2Uf1/xpIikY/nBAeFXg=

Response

HTTP/1.1 200 OK

Date: Fri, 20 Nov 2009 05:47:29 GMT Server: Apache x-emc-policy:_int

Content-Length: 723

Connection: close

Content-Type: text/xml

<?xml version='1.0' encoding='UTF-8'?>

<GetObjectInfoResponse xmlns='http://www.emc.com/cos/'>

<objectId>4b00fffea12059c104b00ffca1f8e804b040c4d911 c9</objectId>

<selection></selection>

<numReplicas>2</numReplicas>

<replicas>

<replica>

<id>3</id>

<type>sync</type>

<current>true</current>

<location>Boston</location>

<storageType>Normal</storageType>

</replica>

<replica>

<id>5</id>

<type>sync</type>

<current>true</current>

<location>Boston</location>

<storageType>Normal</storageType>

</replica>

</replicas>

<retention>

<enabled>false</enabled>

<endAt></endAt>

</retention>

<expiration>

<enabled>false</enabled>

<endAt></endAt>

</expiration>

</GetObjectInfoResponse>

 

However,  when i try on postman , it only return like the below:

Capture-atmos-rest-api.PNG

so i doubt that is it because your api have upgraded to not support return replicas information?
if yes, do you have other api for me to get replicas information by objectId?

0 Kudos
Highlighted
Moderator
Moderator

Re: Get replicas Info by Emc Atmos rest Api

Hello Allen_J,

Here is the link to the only other API guide that I am aware of EMC Atmos Version 2.1.7 CAS API Reference Guide. https://dell.to/2UUQDoH

Please let us know if you have any other questions.

DELL-Sam L
Dell | Social Outreach Services - Enterprise
Download the Dell Quick Resource Locator app today to access PowerEdge support content on your mobile device! (iOS, Android, Windows)

0 Kudos