api-site/api-ref/source/share/v1/share-share-instances.inc
Anne Gentle ac4cc65cb5 Adds migrated RST + YAML files from WADL
Contains .inc files which have all the contents of the .rst files
but are grouped together for easier editing.
Contains parameters.yaml, which has all parameters in one file.
Contains request and response samples (JSON and XML) that are
pointed to from the .inc files.

Change-Id: I42d5451300f95774a3ec4df66bc95cb36795844d
2016-05-02 17:42:49 -05:00

178 lines
3.3 KiB
ReStructuredText

.. -*- rst -*-
================================
Share instances (since API v2.3)
================================
Administrators can list, show information for, explicitly set the
state of, and force-delete share instances. Use the ``policy.json``
file to grant permissions for these actions to other roles.
List share instances
====================
.. rest_method:: GET /v2/{tenant_id}/share_instances
Lists all share instances.
Normal response codes: 200
Error response codes:
Request
-------
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- status: status
- replica_state: replica_state
- availability_zone: availability_zone
- created_at: created_at
- export_location: export_location
- share_network_id: share_network_id
- export_locations: export_locations
- share_server_id: share_server_id
- host: host
- share_id: share_id
- access_rules_status: access_rules_status
- id: id
Response Example
----------------
.. literalinclude:: ../samples/manila-share-instances-list-response.json
:language: javascript
Reset share instance state
==========================
.. rest_method:: POST /v2/{tenant_id}/share_instances/{share_instance_id}/action
Administrator only. Explicitly updates the state of a share instance.
Use the ``policy.json`` file to grant permissions for this action
to other roles.
Error response codes:202,
Request
-------
.. rest_parameters:: parameters.yaml
- status: status
- tenant_id: tenant_id
- share_instance_id: share_instance_id
Request Example
---------------
.. literalinclude:: ../samples/manila-share-instance-actions-reset-state-request.json
:language: javascript
Force-delete share instance
===========================
.. rest_method:: POST /v2/{tenant_id}/share_instances/{share_instance_id}/action
Administrator only. Force-deletes a share instance.
Use the ``policy.json`` file to grant permissions for this action
to other roles.
Error response codes:202,
Request
-------
.. rest_parameters:: parameters.yaml
- force_delete: force_delete
- tenant_id: tenant_id
- share_instance_id: share_instance_id
Request Example
---------------
.. literalinclude:: ../samples/manila-share-instance-actions-force-delete-request.json
:language: javascript
Show share instance details
===========================
.. rest_method:: GET /v2/{tenant_id}/share_instances/{share_instance_id}
Shows details for a share instance.
Normal response codes: 200
Error response codes:
Request
-------
.. rest_parameters:: parameters.yaml
- tenant_id: tenant_id
- share_instance_id: share_instance_id
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- status: status
- replica_state: replica_state
- availability_zone: availability_zone
- created_at: created_at
- export_location: export_location
- share_network_id: share_network_id
- export_locations: export_locations
- share_server_id: share_server_id
- host: host
- share_id: share_id
- access_rules_status: access_rules_status
- id: id
Response Example
----------------
.. literalinclude:: ../samples/manila-share-show-instance-response.json
:language: javascript