Instructions
This article will use the LInux curl command. Similar commands can be executed using other REST API tools such as Postman.
If communicating with a ScaleIO system, use the IP address of the ScaleIO gateway. If using an AMS cluster, use the AMS management IP address.
The initial username and password will be the username and password for thd MDM cluster.
Login to the REST API server:
curl -u <username>:<password> https://<IP address>/api/login
Returned value will be the authentication token. You will use this as the password in other queries moving forward.
NOTE: If you are using a self-signed certificate on your gateway or AMS controller, you will need to add the --insecure option to the command.
Obtain a list of objects:
To obtain a list of SDS servers:
curl -u admin:<authentication token> https://<IP address>/api/types/Sds/instances/ --insecure
To obtain information on a specific SDS server
curl -u admin:<authentication token> https://<IP address>/api/instances/Sds::<sds id> --insecure
To obtain a list of volumes:
curl -u admin:<authentication token> https://<IP address>/api/types/Volume/instances/ --insecure
To obtain information on a specific volume:
curl -u admin:<authentication token> https://<IP address>/api/instances/Volume::<volume id> --insecure
To obtain a list of Storage Pools:
curl -u admin:<authentication token> https://<IP address>/api/types/StoragePool/instances/ --insecure
To obtain information on a specific Storage Pool
curl -u admin:<authentication token> https://<IP address>/api/instances/StoragePool::<storage pool id> --insecure
Produits concernés
VxFlex Product Family
Produits
PowerFlex Software, VxFlex Product Family