trove/api-ref/source/datastores.inc
Lingxian Kong 4551a6cd7c Delete datastore
Admin user can delete datastore if there are no instances or backups
associated.

Change-Id: If15b79661859d5c40f4d9e5fe65e478954b6ddd4
2020-01-11 22:54:09 +13:00

67 lines
992 B
ReStructuredText

.. -*- rst -*-
==========
Datastores
==========
List datastores
~~~~~~~~~~~~~~~
.. rest_method:: GET /v1.0/{project_id}/datastores
Get all the datastores registered in the system
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id
Response Example
----------------
.. literalinclude:: samples/datastore-list-response.json
:language: javascript
Show datastore details
~~~~~~~~~~~~~~~~~~~~~~
.. rest_method:: GET /v1.0/{project_id}/datastores/{datastore}
Shows datastore details
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id
- datastore: data_store
Response Example
----------------
.. literalinclude:: samples/datastore-show-response.json
:language: javascript
Delete datastore
~~~~~~~~~~~~~~~~
.. rest_method:: DELETE /v1.0/{project_id}/datastores/{datastore}
Delete a datastore.
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id
- datastore: data_store