This example shows how to use the GET /datastores API operation to obtain information about the existing datastores within the HyperFlex cluster. Important information for using this specific API, such as the API method, API parameters, and API request URL can be found within the HyperFlex REST API Explorer in the Datastore sub-category under the Core APIs top-level category.
API documentation location in HyperFlex REST API Explorer:

Example procedure using the Postman API client:
- Set the method to GET.

- Set the URL based on the specific API call. For the “GET /datastores” operation to obtain a list of datastores, the complete URL should be set to https:///rest/datastores as seen below.

- Set the Authorization Type to Bearer and input a valid access token in the Token textbox. This example uses the access token that was generated in Obtaining a Valid Access Token Topic.
NOTE:
By selecting the Authorization Type as Bearer Token, Postman will automatically generate the required Header once the request is sent. An alternative method is to set Authorization Type to No Auth and manually enter the Header entry with the Key set to Authorization and the Value set to Bearer . Ensure there is a space between the word Bearer and .

- Click the Send button in the upper right corner and review the response in the bottom pane. If successful, you will get a response which includes information about the existing datastores within the HyperFlex cluster.
