Start a Conversation

Unsolved

Closed

J5

3 Posts

589

April 24th, 2023 09:00

API Sample Data

Is there a repository of sample API return data?

I'm in the process of developing a series of applications for monitoring Dell products...
I can find the API definitions, but they are short on sample data...
Is there a way to get the sample data or an emulator ?
(Since I don't have the physical devices available)...

 

Thanks

  JR

5 Posts

May 17th, 2023 03:00

Hi,

I assume you already checked Dell EMC PowerStore REST API Reference Guide and PowerStore 1000X | Dell EMC PowerStore REST API Developers Guide | The PowerStore Management REST API to get some information about PowerStore Rest-API. 

I show some examples also in a Blog on infohub.delltechnologies.com

PowerStore REST API: Using Filtering to Fine Tune Your Queries | Dell Technologies Info Hub

 

However, you are asking for an example - This is a query to get all primary volumes on a PowerStore with id,name and size:

$ curl -k -H "accept: application/json" -H "Content-Type: application/json" -u admin:XXXXX "https://powerstore-a.lab/api/rest/volume?select=id,name,size&type=eq.Primary"
[{"id":"130e2906-0b8b-4f19-8547-9b3a19f301b6","name":"MetroVolume-009","size":214748364800},
{"id":"44294da0-6d6e-435a-8d32-4f50e6f72897","name":"MetroVolume-004","size":214748364800},
{"id":"49065d86-cebf-46d6-aa65-014f34cdaeb4","name":"MetroVolume-010","size":214748364800},
{"id":"4cfff255-6062-4448-9187-d9b7d7d308b5","name":"MetroVolume-005","size":214748364800},
{"id":"988c1bcd-c708-40ea-8c85-43dd7a239abc","name":"MetroVolume-008","size":214748364800},
{"id":"9abcc8dc-a21f-4352-8f30-62adfb80dbe5","name":"MetroVolume-003","size":214748364800},
{"id":"af33e179-5b71-4fb4-b85a-f0db7987a319","name":"Heartbeat-A","size":107374182400},
{"id":"bf338e11-6ba7-4b97-b7ef-6c637f03691b","name":"MetroVolume-001","size":214748364800},
{"id":"cc8a8bcc-7ea5-4d76-b60e-5670e7a3f35a","name":"MetroVolume-002","size":214748364800},
{"id":"f46d4dc1-4376-46c6-af9d-fa56bdc9a142","name":"MetroVolume-006","size":214748364800},
{"id":"fe443e7b-f741-4be5-8783-95cfc2553fbb","name":"MetroVolume-007","size":214748364800}]

 

Note: if you only query a resource e.g. volumes without selecting attributes (select=) you only get the id's.

I'm not aware of any public emulator or simulator.

 

Thanks,
Robert

3 Posts

May 17th, 2023 10:00

Hi iRob...

Yes, I have found all of those, thank you...

I'm looking for more sample data as the one you sent..
I need at least one good sample of each API call related to telemetry and status..

So, anything you or anyone else can share would be awesome...
Thanks

  JR

3 Posts

May 17th, 2023 11:00

P.S. in particular, the following series of api calls

```
/api/rest/metrics/generate
entity:
        - performance_metrics_by_appliance
        - performance_metrics_by_node
        - performance_metrics_by_volume
        - performance_metrics_by_cluster
        - performance_metrics_by_vm
        - performance_metrics_by_vg
        - performance_metrics_by_fe_fc_port
        - performance_metrics_by_fe_eth_port
        - performance_metrics_by_fe_eth_node
        - performance_metrics_by_fe_fc_node
        - wear_metrics_by_drive
        - wear_metrics_by_drive_daily
        - space_metrics_by_cluster
        - space_metrics_by_appliance
        - space_metrics_by_volume
        - space_metrics_by_volume_family
        - space_metrics_by_vm
        - space_metrics_by_storage_container
        - space_metrics_by_vg
        - copy_metrics_by_appliance
        - copy_metrics_by_cluster
        - copy_metrics_by_vg
        - copy_metrics_by_remote_system
        - copy_metrics_by_volume
        - performance_metrics_by_file_system
        - performance_metrics_nfs_by_node
        - performance_metrics_nfsv3_by_node
        - performance_metrics_nfsv4_by_node
        - performance_metrics_file_by_node
        - performance_metrics_file_by_appliance
        - performance_metrics_file_by_cluster
        - performance_metrics_by_ip_port
 ```
No Events found!

Top