X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fresources_to_operations.yml;h=d6943f4f035bf215e0466a132600ca7eb496a0f7;hp=3a94de29cda810eb2e6986b6dd113d71568cd441;hb=f0f026a5e2dc5fefd2f7db81325838884c1274e8;hpb=c4650365704d7827e53280ca16f9bdb70bf9fcbb diff --git a/osm_nbi/resources_to_operations.yml b/osm_nbi/resources_to_operations.yml index 3a94de2..d6943f4 100644 --- a/osm_nbi/resources_to_operations.yml +++ b/osm_nbi/resources_to_operations.yml @@ -16,6 +16,8 @@ # contact: esousa@whitestack.com or glavado@whitestack.com ## +### NOTE: This is INFORMATIVE ONLY!!!! +### The right values are at module osm_nbi/nbi.py variable 'valid_url_methods' under ROLE_OPERATIONS key --- resources_to_operations: @@ -101,6 +103,11 @@ resources_to_operations: "GET /vnfpkgm/v1/vnf_packages//artifacts": "vnfds:id:vnfd_artifact:get" "GET /vnfpkgm/v1/vnf_packages//artifacts/": "vnfds:id:vnfd_artifact:get" + "POST /vnfpkgm/v1/vnf_packages//action": "vnfds:id:action:post" + + "GET /vnfpkgm/v1/vnfpkg_op_occs": "vnfds:vnfpkgops:get" + "GET /vnfpkgm/v1/vnfpkg_op_occs/": "vnfds:vnfpkgops:id:get" + ################################################################################ ################################## NS Instances ################################ ################################################################################ @@ -126,9 +133,9 @@ resources_to_operations: "POST /nslcm/v1/ns_instances//scale": "ns_instances:id:scale:post" - "GET /nslcm/v1/ns_instances//ns_lcm_op_occs": "ns_instances:id:opps:get" + "GET /nslcm/v1/ns_lcm_op_occs": "ns_instances:opps:get" - "GET /nslcm/v1/ns_instances//ns_lcm_op_occs/": "ns_instances:id:opps:id:get" + "GET /nslcm/v1/ns_lcm_op_occs/": "ns_instances:opps:id:get" ################################################################################ ################################# VNF Instances ################################ @@ -164,14 +171,12 @@ resources_to_operations: "GET /admin/v1/users/": "users:id:get" - "POST /admin/v1/users/": "users:id:post" - - "PUT /admin/v1/users/": "users:id:put" - "DELETE /admin/v1/users/": "users:id:delete" "PATCH /admin/v1/users/": "users:id:patch" + "GET /admin/v1/domains": "domains:get" + ################################################################################ #################################### Projects ################################## ################################################################################ @@ -182,6 +187,8 @@ resources_to_operations: "GET /admin/v1/projects/": "projects:id:get" + "PATCH /admin/v1/projects/": "projects:id:patch" + "DELETE /admin/v1/projects/": "projects:id:delete" ################################################################################ @@ -194,8 +201,6 @@ resources_to_operations: "GET /admin/v1/vims/": "vims:id:get" - "PUT /admin/v1/vims/": "vims:id:put" - "DELETE /admin/v1/vims/": "vims:id:delete" "PATCH /admin/v1/vims/": "vims:id:patch" @@ -210,43 +215,49 @@ resources_to_operations: "GET /admin/v1/vim_accounts/": "vim_accounts:id:get" - "PUT /admin/v1/vim_accounts/": "vim_accounts:id:put" - "DELETE /admin/v1/vim_accounts/": "vim_accounts:id:delete" "PATCH /admin/v1/vim_accounts/": "vim_accounts:id:patch" ################################################################################ -################################# SDN Controllers ############################## +################################# K8s Clusters ############################## ################################################################################ - "GET /admin/v1/sdns": "sdn_controllers:get" + "GET /admin/v1/k8sclusters": "k8sclusters:get" - "POST /admin/v1/sdns": "sdn_controllers:post" + "POST /admin/v1/k8sclusters": "k8sclusters:post" - "GET /admin/v1/sdns/": "sdn_controllers:id:get" + "GET /admin/v1/k8sclusters/": "k8sclusters:id:get" - "PUT /admin/v1/sdns/": "sdn_controllers:id:put" + "DELETE /admin/v1/k8sclusters/": "k8sclusters:id:delete" - "DELETE /admin/v1/sdns/": "sdn_controllers:id:delete" - - "PATCH /admin/v1/sdns/": "sdn_controllers:id:patch" + "PATCH /admin/v1/k8sclusters/": "k8sclusters:id:patch" ################################################################################ -##################################### WIMs ##################################### +################################# K8s Repos ############################## ################################################################################ - "GET /admin/v1/wims": "wims:get" + "GET /admin/v1/k8srepos": "k8srepos:get" + + "POST /admin/v1/k8srepos": "k8srepos:post" + + "GET /admin/v1/k8srepos/": "k8srepos:id:get" + + "DELETE /admin/v1/k8srepos/": "k8srepos:id:delete" - "POST /admin/v1/wims": "wims:post" +################################################################################ +################################# SDN Controllers ############################## +################################################################################ - "GET /admin/v1/wims/": "wims:id:get" + "GET /admin/v1/sdns": "sdn_controllers:get" - "PUT /admin/v1/wims/": "wims:id:put" + "POST /admin/v1/sdns": "sdn_controllers:post" - "DELETE /admin/v1/wims/": "wims:id:delete" + "GET /admin/v1/sdns/": "sdn_controllers:id:get" + + "DELETE /admin/v1/sdns/": "sdn_controllers:id:delete" - "PATCH /admin/v1/wims/": "wims:id:patch" + "PATCH /admin/v1/sdns/": "sdn_controllers:id:patch" ################################################################################ ################################## WIM Accounts ################################ @@ -258,8 +269,6 @@ resources_to_operations: "GET /admin/v1/wim_accounts/": "wim_accounts:id:get" - "PUT /admin/v1/wim_accounts/": "wim_accounts:id:put" - "DELETE /admin/v1/wim_accounts/": "wim_accounts:id:delete" "PATCH /admin/v1/wim_accounts/": "wim_accounts:id:patch" @@ -276,6 +285,8 @@ resources_to_operations: "DELETE /admin/v1/roles/": "roles:id:delete" + "PATCH /admin/v1/roles/": "roles:id:patch" + ################################################################################ ##################################### PDUDs #################################### ################################################################################ @@ -335,7 +346,7 @@ resources_to_operations: "GET /nsilcm/v1/netslice_instances_content": "slice_instances:get" "GET /nsilcm/v1/netslice_instances": "slice_instances:get" - "POST /nsilcm/v1/netslice_instances_content": "slice_instances:content:get" + "POST /nsilcm/v1/netslice_instances_content": "slice_instances:content:post" "GET /nsilcm/v1/netslice_instances_content/": "slice_instances:id:get" "GET /nsilcm/v1/netslice_instances/": "slice_instances:id:get" @@ -351,6 +362,34 @@ resources_to_operations: "POST /nsilcm/v1/netslice_instances//action": "slice_instances:id:action:post" - "GET /nsilcm/v1/netslice_instances//nsi_lcm_op_occs": "slice_instances:id:opps:get" + "GET /nsilcm/v1/nsi_lcm_op_occs": "slice_instances:opps:get" + + "GET /nsilcm/v1/nsi_lcm_op_occs/": "slice_instances:opps:id:get" + +################################################################################ +############################ QUERY STRING admin operations ##################### +################################################################################ + + "GET ?ADMIN": "admin:get" + "POST ?ADMIN": "admin:post" + "PATCH ?ADMIN": "admin:patch" + "PUT ?ADMIN": "admin:put" + "DELETE ?ADMIN": "admin:delete" + + "GET ?FORCE": "force:get" + "POST ?FORCE": "force:post" + "PATCH ?FORCE": "force:patch" + "PUT ?FORCE": "force:put" + "DELETE ?FORCE": "force:delete" + + "GET ?PUBLIC": "public:get" + "POST ?PUBLIC": "public:post" + "PATCH ?PUBLIC": "public:patch" + "PUT ?PUBLIC": "public:put" + "DELETE ?PUBLIC": "public:delete" - "GET /nsilcm/v1/netslice_instances//nsi_lcm_op_occs/": "slice_instances:id:opps:id:get" + "GET ?SET_PROJECT": "set_project:get" + "POST ?SET_PROJECT": "set_project:post" + "PATCH ?SET_PROJECT": "set_project:patch" + "PUT ?SET_PROJECT": "set_project:put" + "DELETE ?SET_PROJECT": "set_project:delete"