Try please also to include "template-name" parameter in the post https://github.com/onap/multicloud-k8s/blob/master/src/k8splugin/internal/rb/config_template.go
Regards, [Logo Orange] Łukasz Rajewski, R&D Expert Orange Labs Poland, Advanced Network Solutions Agency Mob.: +48 519 310 854 Orange Polska, Obrzeżna 7, 02-691 Warsaw www.orange.pl<http://www.orange.pl/> From: Rajewski Łukasz - Hurt Sent: Tuesday, June 16, 2020 12:34 PM To: 'Addepalli, Srinivasa R'; onap-discuss@lists.onap.org; vn00480...@techmahindra.com; Sood, Ritu; k.ba...@samsung.com Cc: KHICHANE Abderaouf TGI/OLN (abderaouf.khich...@orange.com) Subject: RE: [onap-discuss] k8splugin - Configuration API Hi, First of all, I would try to call plugin API directly. Second, I would remove trailing slash. Below some hints how to use it. https://github.com/onap/multicloud-k8s/blob/master/src/k8splugin/api/api.go https://github.com/onap/multicloud-k8s/blob/master/src/k8splugin/api/configtemplatehandler.go Regards, [Logo Orange] Łukasz Rajewski, R&D Expert Orange Labs Poland, Advanced Network Solutions Agency Mob.: +48 519 310 854 Orange Polska, Obrzeżna 7, 02-691 Warsaw www.orange.pl<http://www.orange.pl/> From: Addepalli, Srinivasa R [mailto:srinivasa.r.addepa...@intel.com] Sent: Monday, June 15, 2020 11:09 PM To: onap-discuss@lists.onap.org; vn00480...@techmahindra.com; Sood, Ritu; Rajewski Łukasz - Hurt; k.ba...@samsung.com Subject: RE: [onap-discuss] k8splugin - Configuration API Just an observation Since I see 'server' responding is 'openresty', it appears that MSB itself is returning error. Something to check on MSB integration. Thanks Srini From: onap-discuss@lists.onap.org <onap-discuss@lists.onap.org> On Behalf Of Vamshi K Namilikonda via lists.onap.org Sent: Monday, June 15, 2020 11:56 AM To: onap-discuss@lists.onap.org; Sood, Ritu <ritu.s...@intel.com>; Rajewski Łukasz - Hurt <lukasz.rajew...@orange.com>; k.ba...@samsung.com Subject: [onap-discuss] k8splugin - Configuration API Hi Ritu & K8splugin team, We've tried using Configuration API from Frankfurt using the instructions given the below wiki page, it's giving 404 error. Could you please suggest, are we doing something wrong here. Same behavior is observed in ElAlto branch of code as well. Thank you https://wiki.onap.org/display/DW/MultiCloud+K8s-Plugin-service+API#MultiCloudK8sPluginserviceAPI-ConfigurationAPI curl -i -k -d @create_config_template.json -X POST https://<ip>30283/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/config-template/<https://%3cip%3e30283/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/config-template/> HTTP/1.1 404 Not Found Server: openresty Date: Mon, 15 Jun 2020 18:39:22 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 19 Connection: keep-alive X-Content-Type-Options: nosniff 404 page not found cat create_config_template.json { "name": "vault-consul-dev-2", "description": "testing vault_check Day 2 config configuration" } curl -i -k GET https://10.211.1.20:30283/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef HTTP/1.1 200 OK [{"rb-name":"test-rbdef","rb-version":"v1","chart-name":"vault-consul-dev","description":"testing resource bundle definition api","labels":{}}] Vamshi Namilikonda | Network Services | Tech Mahindra * Desk: +91 20 66018100 x 3942 Mobile: +91 9848639561 [cid:image003.jpg@01D643DE.C09C7C90]Connected World and Connected Experiences ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra. ============================================================================================================================ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21354): https://lists.onap.org/g/onap-discuss/message/21354 Mute This Topic: https://lists.onap.org/mt/74901579/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-