2016-05-07 17:18:15 +02:00
|
|
|
.. -*- 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
|
|
|
|
====================
|
|
|
|
|
2021-02-03 11:16:51 -08:00
|
|
|
.. rest_method:: GET /v2/share_instances
|
2016-05-07 17:18:15 +02:00
|
|
|
|
2019-03-26 20:14:42 -07:00
|
|
|
.. versionadded:: 2.3
|
|
|
|
|
2016-05-07 17:18:15 +02:00
|
|
|
Lists all share instances.
|
|
|
|
|
2018-03-22 18:38:36 +08:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
2016-05-07 17:18:15 +02:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 19:55:30 +01:00
|
|
|
- project_id: project_id_path
|
2017-05-02 18:10:47 +08:00
|
|
|
- export_location_id: export_location_id_query
|
|
|
|
- export_location_path: export_location_path_query
|
2016-05-07 17:18:15 +02:00
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2021-02-12 18:17:24 -08:00
|
|
|
- status: share_status_response
|
2016-05-07 17:18:15 +02:00
|
|
|
- access_rules_status: access_rules_status
|
2021-02-12 18:17:24 -08:00
|
|
|
- share_id: share_id_share_instances_response
|
2020-01-13 16:37:08 +00:00
|
|
|
- progress: progress_share_instance
|
2021-02-12 18:17:24 -08:00
|
|
|
- availability_zone: availability_zone
|
2019-03-28 14:56:08 -07:00
|
|
|
- created_at: created_at
|
2016-05-07 17:18:15 +02:00
|
|
|
- replica_state: replica_state
|
|
|
|
- export_location: export_location
|
|
|
|
- export_locations: export_locations
|
2019-03-26 20:14:42 -07:00
|
|
|
- cast_rules_to_readonly: share_instance_cast_rules_to_readonly
|
2021-02-12 18:17:24 -08:00
|
|
|
- share_network_id: share_network_id
|
2016-05-07 17:18:15 +02:00
|
|
|
- share_server_id: share_server_id
|
2021-02-12 18:17:24 -08:00
|
|
|
- host: host_resource_response
|
2016-05-07 17:18:15 +02:00
|
|
|
- id: id_13
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-instances-list-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Show share instance details
|
|
|
|
===========================
|
|
|
|
|
2021-02-03 11:16:51 -08:00
|
|
|
.. rest_method:: GET /v2/share_instances/{share_instance_id}
|
2016-05-07 17:18:15 +02:00
|
|
|
|
2019-03-26 20:14:42 -07:00
|
|
|
.. versionadded:: 2.3
|
|
|
|
|
2016-05-07 17:18:15 +02:00
|
|
|
Shows details for a share instance.
|
|
|
|
|
2018-03-22 18:38:36 +08:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2016-05-07 17:18:15 +02:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 19:55:30 +01:00
|
|
|
- project_id: project_id_path
|
2016-05-07 17:18:15 +02:00
|
|
|
- share_instance_id: share_instance_id
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2021-02-12 18:17:24 -08:00
|
|
|
- status: share_status_response
|
2016-05-07 17:18:15 +02:00
|
|
|
- access_rules_status: access_rules_status
|
2021-02-12 18:17:24 -08:00
|
|
|
- share_id: share_id_share_instances_response
|
2020-01-13 16:37:08 +00:00
|
|
|
- progress: progress_share_instance
|
2021-02-12 18:17:24 -08:00
|
|
|
- availability_zone: availability_zone
|
2019-03-28 14:56:08 -07:00
|
|
|
- created_at: created_at
|
2016-05-07 17:18:15 +02:00
|
|
|
- replica_state: replica_state
|
|
|
|
- export_location: export_location
|
|
|
|
- export_locations: export_locations
|
2019-03-26 20:14:42 -07:00
|
|
|
- cast_rules_to_readonly: share_instance_cast_rules_to_readonly
|
2021-02-12 18:17:24 -08:00
|
|
|
- share_network_id: share_network_id
|
2016-05-07 17:18:15 +02:00
|
|
|
- share_server_id: share_server_id
|
2021-02-12 18:17:24 -08:00
|
|
|
- host: host_resource_response
|
2016-05-07 17:18:15 +02:00
|
|
|
- id: id_13
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-show-instance-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Reset share instance state
|
|
|
|
==========================
|
|
|
|
|
2021-02-03 11:16:51 -08:00
|
|
|
.. rest_method:: POST /v2/share_instances/{share_instance_id}/action
|
2016-05-07 17:18:15 +02:00
|
|
|
|
2019-03-26 20:14:42 -07:00
|
|
|
.. versionadded:: 2.3
|
|
|
|
|
2016-05-07 17:18:15 +02:00
|
|
|
Administrator only. Explicitly updates the state of a share instance.
|
|
|
|
|
|
|
|
Use the ``policy.json`` file to grant permissions for this action
|
|
|
|
to other roles.
|
|
|
|
|
2018-03-22 18:38:36 +08:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
2016-05-07 17:18:15 +02:00
|
|
|
|
2018-03-22 18:38:36 +08:00
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2016-05-07 17:18:15 +02:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 19:55:30 +01:00
|
|
|
- project_id: project_id_path
|
2016-05-07 17:18:15 +02:00
|
|
|
- share_instance_id: share_instance_id
|
2021-02-12 18:17:24 -08:00
|
|
|
- status: share_status_request
|
2016-05-07 17:18:15 +02:00
|
|
|
|
|
|
|
Request example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-instance-actions-reset-state-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Force-delete share instance
|
|
|
|
===========================
|
|
|
|
|
2021-02-03 11:16:51 -08:00
|
|
|
.. rest_method:: POST /v2/share_instances/{share_instance_id}/action
|
2016-05-07 17:18:15 +02:00
|
|
|
|
2019-03-26 20:14:42 -07:00
|
|
|
.. versionadded:: 2.3
|
|
|
|
|
2016-05-07 17:18:15 +02:00
|
|
|
Administrator only. Force-deletes a share instance.
|
|
|
|
|
|
|
|
Use the ``policy.json`` file to grant permissions for this action
|
|
|
|
to other roles.
|
|
|
|
|
2018-03-22 18:38:36 +08:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
2016-05-07 17:18:15 +02:00
|
|
|
|
2018-03-22 18:38:36 +08:00
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2016-05-07 17:18:15 +02:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 19:55:30 +01:00
|
|
|
- project_id: project_id_path
|
2016-05-07 17:18:15 +02:00
|
|
|
- share_instance_id: share_instance_id
|
|
|
|
- force_delete: force_delete_2
|
|
|
|
|
|
|
|
Request example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-instance-actions-force-delete-request.json
|
|
|
|
:language: javascript
|