2017-10-31 11:57:42 +00:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
==============================
|
|
|
|
Share groups (since API v2.31)
|
|
|
|
==============================
|
|
|
|
|
|
|
|
The share groups enable you to create a group of volumes and manage them
|
|
|
|
together. A project can put shares be used in the same application together
|
|
|
|
in a share group, such as consistency group snapshot, clone, backup, migrate,
|
|
|
|
replicate, retype, etc.
|
|
|
|
|
|
|
|
Shares should be able to become a part of a share group only on share creation
|
|
|
|
step. If share was created without provided ``share_group_id`` then this share
|
|
|
|
won't be able to become a part of any share group.
|
|
|
|
|
|
|
|
You can create a share group and associate it with multiple shares, list
|
|
|
|
share groups, and show information for delete a share group.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
2020-09-21 15:40:41 +00:00
|
|
|
Share Group APIs are no longer considered experimental since API version
|
|
|
|
2.55. The ``availability_zone_id`` and ``consistent_snapshot_support``
|
2019-07-22 19:50:43 +00:00
|
|
|
fields were added to ``share_group`` object since version 2.34.
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
List share groups
|
|
|
|
=================
|
|
|
|
|
2021-02-03 19:16:51 +00:00
|
|
|
.. rest_method:: GET /v2/share_groups
|
2017-10-31 11:57:42 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.31
|
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
Lists all share groups.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2018-11-12 01:43:07 +00:00
|
|
|
- all_tenants: all_tenants_query
|
2017-10-31 11:57:42 +00:00
|
|
|
- name: name_query
|
|
|
|
- description: description_query
|
|
|
|
- status: share_group_status_query
|
|
|
|
- share_server_id: share_server_id_query
|
|
|
|
- snapshot_id: snapshot_id_query
|
|
|
|
- host: backend_host_query
|
|
|
|
- share_network_id: share_network_id_query
|
|
|
|
- share_group_type_id: share_group_type_id_query
|
2019-03-29 23:28:35 +00:00
|
|
|
- share_group_snapshot_id: source_share_group_snapshot_id_query
|
|
|
|
- share_types: share_types_query
|
2017-10-31 11:57:42 +00:00
|
|
|
- limit: limit_query
|
|
|
|
- offset: offset
|
|
|
|
- sort_key: sort_key
|
|
|
|
- sort_dir: sort_dir
|
|
|
|
- name~: name_inexact_query
|
|
|
|
- description~: description_inexact_query
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- id: share_group_id
|
|
|
|
- links: share_group_links
|
2019-03-29 00:48:10 +00:00
|
|
|
- name: name
|
2017-10-31 11:57:42 +00:00
|
|
|
- status: share_group_status
|
2019-03-29 00:48:10 +00:00
|
|
|
- description: description
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-groups-list-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Show share group details
|
|
|
|
========================
|
|
|
|
|
2021-02-03 19:16:51 +00:00
|
|
|
.. rest_method:: GET /v2/share_groups/{share_group_id}
|
2017-10-31 11:57:42 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.31
|
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
Shows details for a share group.
|
|
|
|
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2017-10-31 11:57:42 +00:00
|
|
|
- share_group_id: share_group_id_path
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- id: share_group_id
|
2019-03-29 00:48:10 +00:00
|
|
|
- name: name
|
2019-03-28 21:56:08 +00:00
|
|
|
- created_at: created_at
|
2017-10-31 11:57:42 +00:00
|
|
|
- status: share_group_status
|
2019-03-29 00:48:10 +00:00
|
|
|
- description: description
|
2017-10-31 11:57:42 +00:00
|
|
|
- project_id: project_id
|
|
|
|
- host: backend_host
|
|
|
|
- share_group_type_id: share_group_type_id_required
|
|
|
|
- source_share_group_snapshot_id: source_share_group_snapshot_id_response
|
|
|
|
- share_network_id: share_network_id
|
|
|
|
- share_types: share_types_1
|
|
|
|
- links: share_group_links
|
2021-02-13 02:17:24 +00:00
|
|
|
- availability_zone: availability_zone_id_share_group
|
2017-10-31 11:57:42 +00:00
|
|
|
- consistent_snapshot_support: consistent_snapshot_support
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-group-show-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Create share group
|
|
|
|
==================
|
|
|
|
|
2021-02-03 19:16:51 +00:00
|
|
|
.. rest_method:: POST /v2/share_groups
|
2017-10-31 11:57:42 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.31
|
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
Creates a share group.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
|
|
|
- 409
|
|
|
|
- 422
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2019-03-29 00:48:10 +00:00
|
|
|
- name: name_request
|
|
|
|
- description: description_request
|
2017-10-31 11:57:42 +00:00
|
|
|
- share_types: share_types
|
|
|
|
- share_group_type: share_group_type_id
|
2021-02-13 02:17:24 +00:00
|
|
|
- share_network: share_network_id_request
|
2017-10-31 11:57:42 +00:00
|
|
|
- source_share_group_snapshot: source_share_group_snapshot_id
|
2021-02-13 02:17:24 +00:00
|
|
|
- availability_zone: availability_zone_id_share_group
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-group-create-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- id: share_group_id
|
2019-03-29 00:48:10 +00:00
|
|
|
- name: name
|
2019-03-28 21:56:08 +00:00
|
|
|
- created_at: created_at
|
2017-10-31 11:57:42 +00:00
|
|
|
- status: share_group_status
|
2019-03-29 00:48:10 +00:00
|
|
|
- description: description
|
2017-10-31 11:57:42 +00:00
|
|
|
- project_id: project_id
|
|
|
|
- host: share_group_host
|
|
|
|
- share_group_type_id: share_group_type_id_required
|
|
|
|
- source_share_group_snapshot_id: source_share_group_snapshot_id_response
|
|
|
|
- share_network_id: share_network_id
|
|
|
|
- share_types: share_types_1
|
|
|
|
- links: share_group_links
|
2021-02-13 02:17:24 +00:00
|
|
|
- availability_zone: availability_zone_id_share_group
|
2017-10-31 11:57:42 +00:00
|
|
|
- consistent_snapshot_support: consistent_snapshot_support
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-group-create-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Reset share group state
|
|
|
|
=======================
|
|
|
|
|
2021-02-03 19:16:51 +00:00
|
|
|
.. rest_method:: POST /v2/share-groups/{share_group_id}/action
|
2017-10-31 11:57:42 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.31
|
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
Administrator only. Explicitly updates the state of a share group.
|
|
|
|
|
|
|
|
Use the ``policy.json`` file to grant permissions for this action
|
|
|
|
to other roles.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
|
|
|
- share_group_id: share_group_id_path
|
2017-10-31 11:57:42 +00:00
|
|
|
- reset_status: reset_status
|
|
|
|
- status: share_group_status
|
2018-12-07 18:55:30 +00:00
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-group-reset-state-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Update share group
|
|
|
|
==================
|
|
|
|
|
2021-02-03 19:16:51 +00:00
|
|
|
.. rest_method:: PUT /v2/share-groups/{share_group_id}
|
2017-10-31 11:57:42 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.31
|
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
Updates a share group.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 200
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
|
|
|
- 422
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
|
|
|
- share_group_id: share_group_id_path
|
2019-03-29 00:48:10 +00:00
|
|
|
- name: name_request
|
|
|
|
- description: description_request
|
2018-12-07 18:55:30 +00:00
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-group-update-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Response parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- id: share_group_id
|
2019-03-29 00:48:10 +00:00
|
|
|
- name: name
|
2019-03-28 21:56:08 +00:00
|
|
|
- created_at: created_at
|
2017-10-31 11:57:42 +00:00
|
|
|
- status: share_group_status
|
2019-03-29 00:48:10 +00:00
|
|
|
- description: description
|
2017-10-31 11:57:42 +00:00
|
|
|
- project_id: project_id
|
|
|
|
- host: share_group_host
|
|
|
|
- share_group_type_id: share_group_type_id_required
|
|
|
|
- source_share_group_snapshot_id: source_share_group_snapshot_id
|
|
|
|
- share_network_id: share_network_id
|
|
|
|
- share_types: share_types_1
|
|
|
|
- links: share_group_links
|
2021-02-13 02:17:24 +00:00
|
|
|
- availability_zone: availability_zone_id_share_group
|
2017-10-31 11:57:42 +00:00
|
|
|
- consistent_snapshot_support: consistent_snapshot_support
|
|
|
|
|
|
|
|
Response example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: samples/share-group-update-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Delete share group
|
|
|
|
==================
|
|
|
|
|
2021-02-03 19:16:51 +00:00
|
|
|
.. rest_method:: DELETE /v2/share-groups/{share_group_id}
|
2017-10-31 11:57:42 +00:00
|
|
|
|
2019-03-27 03:14:42 +00:00
|
|
|
.. versionadded:: 2.31
|
|
|
|
|
2017-10-31 11:57:42 +00:00
|
|
|
Deletes a share group.
|
|
|
|
|
2018-03-22 10:38:36 +00:00
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
|
|
|
- 409
|
2017-10-31 11:57:42 +00:00
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-12-07 18:55:30 +00:00
|
|
|
- project_id: project_id_path
|
2017-10-31 11:57:42 +00:00
|
|
|
- share_group_id: share_group_id_path
|
|
|
|
- force: share_force_delete
|