Highlighted
noprompt
1 Copper

Symmetrix REST API?

Having a bit of a problem getting solid info on REST API. Sounds very useful from the snippets I've found, but would appreciated any pieces of practical code that anyone could post on this:

- Are there any definitive documents on this?

- What do I need to install client side for this to work?

- Can it work with older Enginuity / DMX arrays?

- Can I manipulate the API from any programming environment (shell, perl, C#, python etc) or just restricted to a few languages?

- Any small pieces of practical code that folks have worked out, just so that I can get a handle on how to call/use would be great to see?

Thanks.

Labels (2)
0 Kudos
3 Replies

Re: Symmetrix REST API?

Hi,

to answer your questions

1. there is additional information and more documentation at https://community.emc.com/docs/DOC-46344 which also has a very useful REST client that was developed.

2. REST wont work with DMX I'm afraid.

3. REST works with HTTP so any programming language that can use that can be manipulates.

4. As of yet we don't have a code repository for REST calls but perhaps other contributors here may be able to help.

Let me know if you need anything else

Regards

Finbarr.

PaulCork
3 Argentium

Re: Symmetrix REST API?

There is a programming guide on REST, also if the customer just points their browser to the port for REST Point the browser to:

https://:8443/univmax/restapi/docs<%20%20> and they can pull down the online help.

https://support.emc.com/docu68854_Unisphere_for_VMAX_8.2.0_REST_API_Concepts_and_Programmer's_Guide.pdf?language=en_US&language=en_US

There is also a very useful REST Client that makes this soooo much easier to consume and will help them structure their rest calls. Ken did a great post on it.

https://community.emc.com/docs/DOC-46344

I’ve seen a few Githubs up there for this,

Here’s one example that could be tailored

https://github.com/scottbri/unisphere-rest-client/blob/master/symmREST.py

Paul Martin

Principal Corporate Systems Engineer

Core Technologies Division - Enterprise & Mainframe Solutions

EMC²

• Office +353 21 4938979

Cell +35387 696 0621

https://www.emc.com/auth/rpage/ec-for-vmax3.htm

EMC Information Systems International

Registered in Ireland with Company Number: 461022 and Registered address: IDA Industrial Estate, Ovens, Co. Cork

The information contained in this e-mail message and any files transmitted with it are confidential. It is intended only for the addressee and others authorised to receive it. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are advised that you have received the e-mail in error; please delete it and notify the sender immediately. You should not retain the message or disclose its contents to anyone. Any disclosure, copying, distribution or action taken in reliance on the contents of the e-mail and its attachments is strictly prohibited.

nasemoha
1 Copper

Re: Symmetrix REST API?

Below are few examples.

Storage Group Metrics using Unisphere RESTAPI with CURL

#list of sg_groups with first and last available dates

#data.json

{

  "symmetrixId": "000196701xxx"

}

curl -u smc:smc -X POST -d @data.json https://<unishperehost>:8443/univmax/restapi/performance/StorageGroup/keys -k -H "Content-Type: application/json"

#To get Storage Group Performance metrics

#data.json

{

  "startDate": 1454436600000,

  "symmetrixId": "000196701xxx",

  "storageGroupId": "StorageGroupName",

  "metrics": [ "RESPONSE_TIME", "ReadResponseTime", "WriteResponseTime"  ],

  "dataFormat": "Average",

  "endDate": 1455044400000

}

curl -u smc:smc -X POST -d @data.json https://<unishperehost>:8443/univmax/restapi/performance/StorageGroup/metrics -k -H "Content-Type: application/json"


Check the unisphere restapi documentation for more details.

doclink : https://<unsipherehostorIP>:8443/univmax/restapi/docs