From 5056e093ac36a7e17db5ede31646c81e41af58ac Mon Sep 17 00:00:00 2001 From: Eric Bischoff Date: Sun, 17 Nov 2024 15:27:51 +0100 Subject: [PATCH] WIP - Add FCP templates API calls Signed-off-by: Eric Bischoff --- doc/source/parameters.yaml | 6 +++++ doc/source/restapi.rst | 51 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/doc/source/parameters.yaml b/doc/source/parameters.yaml index 20f5a63a3..3b4788f75 100644 --- a/doc/source/parameters.yaml +++ b/doc/source/parameters.yaml @@ -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. diff --git a/doc/source/restapi.rst b/doc/source/restapi.rst index 917b66786..a4465fd35 100644 --- a/doc/source/restapi.rst +++ b/doc/source/restapi.rst @@ -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}** @@ -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}** @@ -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.