Skip to content

Commit

Permalink
Add FCP templates API calls
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Bischoff <[email protected]>
  • Loading branch information
Bischoff committed Nov 19, 2024
1 parent 21742ff commit 381a63f
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 1 deletion.
49 changes: 49 additions & 0 deletions doc/source/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,55 @@ fcp_template_id:
in: body
required: true
type: string
fcp_template_id_path:
description: |
Unique identifier of the FCP template.
in: path
required: true
type: string
fcp_template:
description: |
Various attibutes of the FCP template.
in: body
required: true
type: dict
fcp_template_name:
description: |
Name of FCP template.
in: body
required: true
type: string
fcp_template_description:
description: |
Description of FCP template, e.g. "Two paths template".
in: body
required: false
type: string
fcp_template_fcp_devices:
description: |
FCP devices list. '-' indicates a range, and ';' is a separator.
Example\: "0011-0013;0015;0017-0018".
in: body
required: false
type: string
fcp_template_host_default:
description: |
This template is the default template for the host or not.
in: body
required: false
type: boolean
fcp_template_storage_providers:
description: |
List of storage providers.
in: body
required: false
type: list
fcp_template_min_fcp_paths_count:
description: |
Minimum number of multipath paths.
in: body
required: false
type: integer
wwpn_list:
description: |
World Wide Port Name identifiers.
Expand Down
72 changes: 71 additions & 1 deletion doc/source/restapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2039,7 +2039,77 @@ Get volume connector for z/VM.
.. literalinclude:: ../../zvmsdk/tests/fvt/api_templates/test_get_volume_connector.tpl
:language: javascript

Get FCP usage
Create FCP Template
-------------------

**POST /volumes/fcptemplates**

Create a FCP multipath template.

* Request:

.. restapi_parameters:: parameters.yaml

- name: fcp_template_name
- description: fcp_template_description
- fcp_devices: fcp_template_fcp_devices
- host_default: fcp_template_host_default
- storage_providers: fcp_template_storage_providers
- min_fcp_paths_count: fcp_template_min_fcp_paths_count

* Response code:

HTTP status code 200 on success.

* Response contents:

.. restapi_parameters:: parameters.yaml

- fcp_template: fcp_template
- id: fcp_template_id
- name: fcp_template_name
- description: fcp_template_description
- host_default: fcp_template_host_default
- storage_providers: fcp_template_storage_providers
- min_fcp_paths_count: fcp_template_min_fcp_paths_count

Delete FCP Template
-------------------

**DELETE /volumes/fcptemplates/{template_id}**

Delete a FCP multipath template.

* Request:

.. restapi_parameters:: parameters.yaml

- template_id: fcp_template_id_path

* Response code:

HTTP status code 200 on success.

* Response contents:

No response.

Get FCP Templates
-----------------

**GET /volumes/fcptemplates**

Edit FCP Template
-----------------

**PUT /volumes/fcptemplates/{template_id}**

Get FCP Templates Details
-------------------------

**GET /volumes/fcptemplates/detail**

Get FCP Usage
-------------

**GET /volumes/fcp/{fcp_id}**
Expand Down

0 comments on commit 381a63f

Please sign in to comment.