4551a6cd7c
Admin user can delete datastore if there are no instances or backups associated. Change-Id: If15b79661859d5c40f4d9e5fe65e478954b6ddd4
67 lines
992 B
ReStructuredText
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
|