Skip to content

Commit

Permalink
WIP - 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 17, 2024
1 parent 1f9ed4f commit 5056e09
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
6 changes: 6 additions & 0 deletions doc/source/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,12 @@ last_access_time:
in: body
required: true
type: float
fcp_template_name:
description: |
Name of FCP template.
in: body
required: true
type: string
fcp_id:
description: |
ID of FCP device.
Expand Down
51 changes: 49 additions & 2 deletions doc/source/restapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ Get the list of vswitch name on the host
.. literalinclude:: ../../zvmsdk/tests/fvt/api_templates/test_vswitch_get.tpl
:language: javascript

GET vswitch details
Get vswitch details
-------------------

**GET /vswitches/{name}**
Expand Down Expand Up @@ -2029,8 +2029,54 @@ Get volume connector for z/VM.
.. literalinclude:: ../../zvmsdk/tests/fvt/api_templates/test_get_volume_connector.tpl
:language: javascript


Create FCP Template
-------------------

**POST /volumes/fcptemplates**

Create a FCP template.

* Request:

.. restapi_parameters:: parameters.yaml

- name: fcp_template_name

..
Description string `json:"description,omitempty"`
FCPDevices string `json:"fcp_devices,omitempty"`
HostDefault bool `json:"host_default,omitempty"`
DefaultSPList []string `json:"default_sp_list,omitempty"`
MinFCPPathsCount int `json:"min_fcp_paths_count,omitempty"`

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

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


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

**GET /volumes/fcptemplates?{query_options}**


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

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


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

**GET /volumes/fcptemplates/detail?{query_options}**


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

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

Expand Down Expand Up @@ -2082,6 +2128,7 @@ Set the FCP usage in database for z/VM.

Files
=====

Imports and exports raw file data.

These operations may be restricted to Feilong administrators.
Expand Down

0 comments on commit 5056e09

Please sign in to comment.