3PAR StoreServ Storage
cancel
Showing results for 
Search instead for 
Did you mean: 

3PAR Web Services API not returning all information in queries

 
Highlighted
mark_collins
Collector

3PAR Web Services API not returning all information in queries

When querying information using the WSAPI, it does not seem to return all the available information in their JSON objects. For example, when querying ports, an HTTP GET is used with https://<storage_system>:8080/api/v1/ports

Here is an example of the JSON output:
{
"portPos": {
"node": 0,
"slot": 0,
"cardPort": 4
},
"mode": 2,
"linkState": 4,
"nodeWWN": "XXXXXXXXXXXXXXX",
"portWWN": "XXXXXXXXXXXXXXX",
"type": 3,
"protocol": 1,
"label": "GRP107",
"partnerPos": {
"node": 1,
"slot": 0,
"cardPort": 4
},
"failoverState": 1,
"device": []
},

As you can see, it stops at the 'device' field. In the WSAPI documentation (https://support.hpe.com/hpsc/doc/public/display?docId=c03606339) on page 245 for querying ports, you can see that there is quite a substantial amount of information I am not receiving such as its connectionType, connectionMode, configurableRate, etc. I have data missing for quite a few queries besides just ports.

Am I using the WSAPI incorrectly? Is there a way to get more detailed information? Is there something I need to be putting in my headers?

-Mark

1 REPLY 1
Highlighted
N_J_K
Occasional Visitor

Re: 3PAR Web Services API not returning all information in queries

Hi Mark,

From the output, I could find this is a FC port with status "Free",

And I could find that all the basic details are reported for a free port,

Have you checked the output for any host connected / remote copy port.

Thanks and Regards,

N_J_K

 

Note : I am an HPE Employee