From 39f345954434553d10e0cea114e15e0521ec9471 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 26 Sep 2017 10:04:10 +0530 Subject: Migrate onap-cli-schema into open-cli-schema Issue-Id: CLI-66 Change-Id: I719719194bc5f21f4316380e606ce1a58f0f046c Signed-off-by: Kanagaraj Manickam k00365106 --- .../cloud-region/cloud-create-schema-1.1.yaml | 33 ------- .../cloud-region/cloud-delete-schema-1.1.yaml | 36 ------- .../cloud-region/cloud-list-schema-1.1.yaml | 57 ----------- .../cloud-region/cloud-list-schema.yaml | 52 ---------- .../customer/customer-create-schema-1.1.yaml | 33 ------- .../customer/customer-create-schema.yaml | 33 ------- .../customer/customer-delete-schema-1.1.yaml | 30 ------ .../customer/customer-delete-schema.yaml | 30 ------ .../customer/customer-list-schema-1.1.yaml | 31 ------ .../customer/customer-list-schema.yaml | 31 ------ .../customer/customer-show-schema-1.1.yaml | 50 ---------- .../customer/customer-show-schema.yaml | 50 ---------- .../esr/ems/ems-create-schema-1.1.yaml | 79 --------------- .../esr/ems/ems-delete-schema-1.1.yaml | 38 -------- .../esr/ems/ems-list-schema-1.1.yaml | 38 -------- .../esr/ems/ems-show-schema-1.1.yaml | 66 ------------- .../esr/sdnc/sdnc-create-schema-1.1.yaml | 97 ------------------- .../esr/sdnc/sdnc-delete-schema-1.1.yaml | 33 ------- .../esr/sdnc/sdnc-list-schema-1.1.yaml | 40 -------- .../esr/vim/vim-create-schema-1.1.yaml | 107 --------------------- .../esr/vim/vim-delete-schema-1.1.yaml | 51 ---------- .../esr/vim/vim-list-schema-1.1.yaml | 92 ------------------ .../esr/vnfm/vnfm-create-schema-1.1.yaml | 85 ---------------- .../esr/vnfm/vnfm-delete-schema-1.1.yaml | 38 -------- .../esr/vnfm/vnfm-list-schema-1.1.yaml | 48 --------- .../esr/vnfm/vnfm-show-schema-1.1.yaml | 67 ------------- .../service-type-create-schema-1.1.yaml | 33 ------- .../service-type/service-type-create-schema.yaml | 33 ------- .../service-type-delete-schema-1.1.yaml | 34 ------- .../service-type/service-type-delete-schema.yaml | 34 ------- .../service-type/service-type-list-schema-1.1.yaml | 37 ------- .../service-type/service-type-list-schema.yaml | 37 ------- .../subscription-create-schema-1.1.yaml | 52 ---------- .../subscription/subscription-create-schema.yaml | 63 ------------ .../subscription-delete-schema-1.1.yaml | 39 -------- .../subscription/subscription-list-schema-1.1.yaml | 60 ------------ .../subscription/subscription-list-schema.yaml | 40 -------- .../tenant/tenant-create-schema-1.1.yaml | 46 --------- .../tenant/tenant-delete-schema-1.1.yaml | 43 --------- .../tenant/tenant-list-schema-1.1.yaml | 55 ----------- .../cloud-region/cloud-create-schema-1.1.yaml | 33 +++++++ .../cloud-region/cloud-delete-schema-1.1.yaml | 36 +++++++ .../cloud-region/cloud-list-schema-1.1.yaml | 57 +++++++++++ .../cloud-region/cloud-list-schema.yaml | 52 ++++++++++ .../customer/customer-create-schema-1.1.yaml | 33 +++++++ .../customer/customer-create-schema.yaml | 33 +++++++ .../customer/customer-delete-schema-1.1.yaml | 30 ++++++ .../customer/customer-delete-schema.yaml | 30 ++++++ .../customer/customer-list-schema-1.1.yaml | 31 ++++++ .../customer/customer-list-schema.yaml | 31 ++++++ .../customer/customer-show-schema-1.1.yaml | 50 ++++++++++ .../customer/customer-show-schema.yaml | 50 ++++++++++ .../esr/ems/ems-create-schema-1.1.yaml | 79 +++++++++++++++ .../esr/ems/ems-delete-schema-1.1.yaml | 38 ++++++++ .../esr/ems/ems-list-schema-1.1.yaml | 38 ++++++++ .../esr/ems/ems-show-schema-1.1.yaml | 66 +++++++++++++ .../esr/sdnc/sdnc-create-schema-1.1.yaml | 97 +++++++++++++++++++ .../esr/sdnc/sdnc-delete-schema-1.1.yaml | 33 +++++++ .../esr/sdnc/sdnc-list-schema-1.1.yaml | 40 ++++++++ .../esr/vim/vim-create-schema-1.1.yaml | 107 +++++++++++++++++++++ .../esr/vim/vim-delete-schema-1.1.yaml | 51 ++++++++++ .../esr/vim/vim-list-schema-1.1.yaml | 92 ++++++++++++++++++ .../esr/vnfm/vnfm-create-schema-1.1.yaml | 85 ++++++++++++++++ .../esr/vnfm/vnfm-delete-schema-1.1.yaml | 38 ++++++++ .../esr/vnfm/vnfm-list-schema-1.1.yaml | 48 +++++++++ .../esr/vnfm/vnfm-show-schema-1.1.yaml | 67 +++++++++++++ .../service-type-create-schema-1.1.yaml | 33 +++++++ .../service-type/service-type-create-schema.yaml | 33 +++++++ .../service-type-delete-schema-1.1.yaml | 34 +++++++ .../service-type/service-type-delete-schema.yaml | 34 +++++++ .../service-type/service-type-list-schema-1.1.yaml | 37 +++++++ .../service-type/service-type-list-schema.yaml | 37 +++++++ .../subscription-create-schema-1.1.yaml | 52 ++++++++++ .../subscription/subscription-create-schema.yaml | 63 ++++++++++++ .../subscription-delete-schema-1.1.yaml | 39 ++++++++ .../subscription/subscription-list-schema-1.1.yaml | 60 ++++++++++++ .../subscription/subscription-list-schema.yaml | 40 ++++++++ .../tenant/tenant-create-schema-1.1.yaml | 46 +++++++++ .../tenant/tenant-delete-schema-1.1.yaml | 43 +++++++++ .../tenant/tenant-list-schema-1.1.yaml | 55 +++++++++++ .../onap-cli-schema/basic-login-onap-1-1.yaml | 31 ------ .../onap-cli-schema/basic-login-onap-sdc-1-1.yaml | 36 ------- .../onap-cli-schema/basic-logout-onap-1-1.yaml | 13 --- .../open-cli-schema/basic-login-onap-1-1.yaml | 31 ++++++ .../open-cli-schema/basic-login-onap-sdc-1-1.yaml | 36 +++++++ .../open-cli-schema/basic-logout-onap-1-1.yaml | 13 +++ .../onap-cli-schema/catalog-onap-1_1.yaml | 54 ----------- .../open-cli-schema/catalog-onap-1_1.yaml | 54 +++++++++++ .../microservice-create-schema.yaml | 104 -------------------- .../microservice-delete-schema.yaml | 46 --------- .../onap-cli-schema/microservice-list-schema.yaml | 60 ------------ .../onap-cli-schema/microservice-show-schema.yaml | 73 -------------- .../microservice-create-schema.yaml | 104 ++++++++++++++++++++ .../microservice-delete-schema.yaml | 46 +++++++++ .../open-cli-schema/microservice-list-schema.yaml | 60 ++++++++++++ .../open-cli-schema/microservice-show-schema.yaml | 73 ++++++++++++++ .../onap-cli-schema/hello-world-http.yaml | 43 --------- .../resources/onap-cli-schema/hello-world.yaml | 31 ------ .../open-cli-schema/hello-world-http.yaml | 43 +++++++++ .../resources/open-cli-schema/hello-world.yaml | 31 ++++++ .../onap-cli-schema/vsp/vsp-checkin-schema.yaml | 27 ------ .../onap-cli-schema/vsp/vsp-checkout-schema.yaml | 28 ------ .../onap-cli-schema/vsp/vsp-create-schema.yaml | 86 ----------------- .../onap-cli-schema/vsp/vsp-list-schema.yaml | 32 ------ .../onap-cli-schema/vsp/vsp-show-schema.yaml | 45 --------- .../onap-cli-schema/vsp/vsp-submit-schema.yaml | 27 ------ .../onap-cli-schema/vsp/vsp-upload-schema.yaml | 33 ------- .../open-cli-schema/vsp/vsp-checkin-schema.yaml | 27 ++++++ .../open-cli-schema/vsp/vsp-checkout-schema.yaml | 28 ++++++ .../open-cli-schema/vsp/vsp-create-schema.yaml | 86 +++++++++++++++++ .../open-cli-schema/vsp/vsp-list-schema.yaml | 32 ++++++ .../open-cli-schema/vsp/vsp-show-schema.yaml | 45 +++++++++ .../open-cli-schema/vsp/vsp-submit-schema.yaml | 27 ++++++ .../open-cli-schema/vsp/vsp-upload-schema.yaml | 33 +++++++ .../services/service-create-schema-1.1.yaml | 93 ------------------ .../services/service-delete-schema-1.1.yaml | 68 ------------- .../services/vf-module-delete-schema-1.1.yaml | 68 ------------- .../services/service-create-schema-1.1.yaml | 93 ++++++++++++++++++ .../services/service-delete-schema-1.1.yaml | 68 +++++++++++++ .../services/vf-module-create-schema-1.1.yaml | 74 ++++++++++++++ .../services/vf-module-delete-schema-1.1.yaml | 68 +++++++++++++ .../services/vnf-create-schema-1.1.yaml | 74 ++++++++++++++ .../services/vnf-delete-schema-1.1.yaml | 44 +++++++++ 123 files changed, 3141 insertions(+), 2949 deletions(-) delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml delete mode 100644 plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml create mode 100644 plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml delete mode 100644 plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml delete mode 100644 plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml delete mode 100644 plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml create mode 100644 plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml create mode 100644 plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml create mode 100644 plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml delete mode 100644 plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml create mode 100644 plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml delete mode 100644 plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml delete mode 100644 plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml delete mode 100644 plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml delete mode 100644 plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml create mode 100644 plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml create mode 100644 plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml create mode 100644 plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml create mode 100644 plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml delete mode 100644 plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml delete mode 100644 plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml create mode 100644 plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml create mode 100644 plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml delete mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml create mode 100644 plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml delete mode 100644 plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml delete mode 100644 plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml delete mode 100644 plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml create mode 100644 plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml create mode 100644 plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml create mode 100644 plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml create mode 100644 plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml create mode 100644 plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml create mode 100644 plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml (limited to 'plugins') diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml deleted file mode 100644 index 8657ae14..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 -name: cloud-create -description: Create a cloud region in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud-name - description: Onap cloud name - type: string - short_option: x - long_option: cloud-name - is_optional: false - - name: region-name - description: Onap region name - type: string - short_option: y - long_option: region-name - is_optional: false - -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name} - method: PUT - body: '{"sriov-automation": false, "cloud-region-id": "${region-name}", "cloud-owner": "${cloud-name}", "new-attribute-for-demo": "blah", "number-attribute-for-demo": 1 }' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml deleted file mode 100644 index 5575f7f7..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml +++ /dev/null @@ -1,36 +0,0 @@ -open_cli_schema_version: 1.0 -name: cloud-delete -description: Delete a cloud region from Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud-name - description: Onap cloud name - type: string - short_option: x - long_option: cloud-name - is_optional: false - - name: region-name - description: Onap cloud region name - type: string - short_option: y - long_option: region-name - is_optional: false - - name: resource-version - description: Onap cloud region version - type: uuid - short_option: z - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml deleted file mode 100644 index c9fd5368..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml +++ /dev/null @@ -1,57 +0,0 @@ -open_cli_schema_version: 1.0 -name: cloud-list -description: List the configured clouds and Onap service subscriptions -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: cloud - description: Onap cloud - scope: short - type: string - - name: region - description: Onap cloud region - scope: short - type: string - - name: tenant - description: Onap cloud tenat - scope: long - type: string - - name: tenant-id - description: Onap cloud tenat id - scope: long - type: string - - name: customer - description: Onap cloud customer - scope: long - type: string - - name: service - description: Onap cloud service - scope: long - type: string - - name: resource-version - description: Onap cloud resource version - scope: short - type: string -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions - method: GET - success_codes: - - 200 - result_map: - cloud: $b{cloud-region.[*].cloud-owner} - region: $b{cloud-region.[*].cloud-region-id} - resource-version: $b{cloud-region.[*].resource-version} - tenant: $b{cloud-region.[*].tenants.tenant.[*].tenant-name} - tenant-id: $b{cloud-region.[*].tenants.tenant.[*].tenant-id} - customer: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'customer.global-customer-id')].relationship-value} - service: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'service-subscription.service-type')].relationship-value} - sample_response: - body: '{"cloud-region":[{"cloud-owner":"Rackspace","cloud-region-id":"RegionOne","cloud-type":"SharedNode","owner-defined-type":"OwnerType","cloud-region-version":"v1","cloud-zone":"CloudZone","resource-version":"1500729864","tenants":{"tenant":[{"tenant-id":"e69e6d64b44347509c3fc512391f34a6","tenant-name":"onap","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration123/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration123"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u1/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u1"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u2/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]}]}}]}}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml deleted file mode 100644 index 10a7e954..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml +++ /dev/null @@ -1,52 +0,0 @@ -open_cli_schema_version: 1.0 -name: cloud-list -description: List the configured clouds and Onap service subscriptions -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: cloud - description: Onap cloud - scope: short - type: string - - name: region - description: Onap cloud region - scope: short - type: string - - name: tenant - description: Onap cloud tenat - scope: short - type: string - - name: tenant-id - description: Onap cloud tenat id - scope: short - type: string - - name: customer - description: Onap cloud customer - scope: long - type: string - - name: service - description: Onap cloud service - scope: long - type: string -http: - request: - uri: /aai/v8/cloud-infrastructure/cloud-regions - method: GET - success_codes: - - 200 - result_map: - cloud: $b{cloud-region.[*].cloud-owner} - region: $b{cloud-region.[*].cloud-region-id} - tenant: $b{cloud-region.[*].tenants.tenant.[*].tenant-name} - tenant-id: $b{cloud-region.[*].tenants.tenant.[*].tenant-id} - customer: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'customer.global-customer-id')].relationship-value} - service: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'service-subscription.service-type')].relationship-value} - sample_response: - body: '{"cloud-region":[{"cloud-owner":"Rackspace","cloud-region-id":"RegionOne","cloud-type":"SharedNode","owner-defined-type":"OwnerType","cloud-region-version":"v1","cloud-zone":"CloudZone","resource-version":"1500729864","tenants":{"tenant":[{"tenant-id":"e69e6d64b44347509c3fc512391f34a6","tenant-name":"onap","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration123/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration123"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u1/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u1"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u2/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]}]}}]}}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml deleted file mode 100644 index 41c1515c..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-create -description: Create a customer in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: subscriber-name - description: Onap subscriber name - type: string - short_option: y - long_option: subscriber-name - is_optional: false - -http: - request: - uri: /aai/v11/business/customers/customer/${customer-name} - method: PUT - body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml deleted file mode 100644 index e79cd5e6..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-create -description: Create a customer in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: subscriber-name - description: Onap subscriber name - type: string - short_option: y - long_option: subscriber-name - is_optional: false - -http: - request: - uri: /aai/v8/business/customers/customer/${customer-name} - method: PUT - body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml deleted file mode 100644 index 673cb94a..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml +++ /dev/null @@ -1,30 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-delete -description: Delete a customer from Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: resource-version - description: Onap customer resource version - type: uuid - short_option: y - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v11/business/customers/customer/${customer-name}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml deleted file mode 100644 index 48455cdc..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml +++ /dev/null @@ -1,30 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-delete -description: Delete a customer from Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: resource-version - description: Onap customer resource version - type: uuid - short_option: y - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v8/business/customers/customer/${customer-name}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml deleted file mode 100644 index 1e408f78..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml +++ /dev/null @@ -1,31 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-list -description: Lists the registetred customers in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct -results: - direction: landscape - attributes: - - name: name - description: Onap customer name - scope: short - type: string - - name: resource-version - description: Onap customer resource version - scope: short - type: string -http: - request: - uri: /aai/v11/business/customers - method: GET - success_codes: - - 200 - result_map: - name: $b{customer.[*].global-customer-id} - resource-version: $b{customer.[*].resource-version} - sample_response: - body: '{"customer":[{"global-customer-id":"Demonstration","subscriber-name":"Demonstration","subscriber-type":"INFRA","resource-version":"1500729865","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1500729865","service-instances":{"service-instance":[{"service-instance-id":"d6167ea1-ff83-4236-9b32-37494dfb7537","service-instance-name":"demoVLB-1","persona-model-id":"af01a849-721b-407d-a880-be836e26ee81","persona-model-version":"1.0","resource-version":"1501154574","relationship-list":{"relationship":[{"related-to":"generic-vnf","related-link":"https://192.168.17.12:8443/aai/v8/network/generic-vnfs/generic-vnf/16c6d95d-44e3-4527-aa63-a495bf8e776e/","relationship-data":[{"relationship-key":"generic-vnf.vnf-id","relationship-value":"16c6d95d-44e3-4527-aa63-a495bf8e776e"}],"related-to-property":[{"property-key":"generic-vnf.vnf-name","property-value":"demoVLB-1-VNF-1"}]}]}}]},"relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-name":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-type":"INFRA","resource-version":"1501766760","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501766760","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}]}' \ No newline at end of file diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml deleted file mode 100644 index 0866cfb4..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml +++ /dev/null @@ -1,31 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-list -description: Lists the registetred customers in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct -results: - direction: landscape - attributes: - - name: name - description: Onap customer name - scope: short - type: string - - name: resource-version - description: Onap customer resource version - scope: short - type: string -http: - request: - uri: /aai/v8/business/customers - method: GET - success_codes: - - 200 - result_map: - name: $b{customer.[*].global-customer-id} - resource-version: $b{customer.[*].resource-version} - sample_response: - body: '{"customer":[{"global-customer-id":"Demonstration","subscriber-name":"Demonstration","subscriber-type":"INFRA","resource-version":"1500729865","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1500729865","service-instances":{"service-instance":[{"service-instance-id":"d6167ea1-ff83-4236-9b32-37494dfb7537","service-instance-name":"demoVLB-1","persona-model-id":"af01a849-721b-407d-a880-be836e26ee81","persona-model-version":"1.0","resource-version":"1501154574","relationship-list":{"relationship":[{"related-to":"generic-vnf","related-link":"https://192.168.17.12:8443/aai/v8/network/generic-vnfs/generic-vnf/16c6d95d-44e3-4527-aa63-a495bf8e776e/","relationship-data":[{"relationship-key":"generic-vnf.vnf-id","relationship-value":"16c6d95d-44e3-4527-aa63-a495bf8e776e"}],"related-to-property":[{"property-key":"generic-vnf.vnf-name","property-value":"demoVLB-1-VNF-1"}]}]}}]},"relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-name":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-type":"INFRA","resource-version":"1501766760","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501766760","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}]}' \ No newline at end of file diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml deleted file mode 100644 index f12e235a..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml +++ /dev/null @@ -1,50 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-show -description: Lists the registetred customers in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - -results: - direction: landscape - attributes: - - name: name - description: Onap customer name - scope: short - type: string - - name: subscriber-name - description: Onap subscriber name - scope: short - type: string - - name: resource-version - description: Onap subscriber resource version - scope: long - type: string - - name: subscriber-type - description: Onap subscriber type - scope: long - type: string -http: - request: - uri: /aai/v11/business/customers/customer/${customer-name} - method: GET - success_codes: - - 200 - result_map: - name: $b{$.global-customer-id} - subscriber-name: $b{$.subscriber-name} - subscriber-type: $b{$.subscriber-type} - resource-version: $b{$.resource-version} - sample_response: - body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml deleted file mode 100644 index bb37aa27..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml +++ /dev/null @@ -1,50 +0,0 @@ -open_cli_schema_version: 1.0 -name: customer-show -description: Lists the registetred customers in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - -results: - direction: landscape - attributes: - - name: name - description: Onap customer name - scope: short - type: string - - name: subscriber-name - description: Onap subscriber name - scope: short - type: string - - name: resource-version - description: Onap subscriber resource version - scope: long - type: string - - name: subscriber-type - description: Onap subscriber type - scope: long - type: string -http: - request: - uri: /aai/v8/business/customers/customer/${customer-name} - method: GET - success_codes: - - 200 - result_map: - name: $b{$.global-customer-id} - subscriber-name: $b{$.subscriber-name} - subscriber-type: $b{$.subscriber-type} - resource-version: $b{$.resource-version} - sample_response: - body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml deleted file mode 100644 index 2c6c0636..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml +++ /dev/null @@ -1,79 +0,0 @@ -open_cli_schema_version: 1.0 - -name: ems-register - -description: Register a EMS in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: ems-id - description: Onap EMS unique id - type: uuid - short_option: z - long_option: ems-id - is_optional: false - - name: name - description: Onap EMS name - type: string - short_option: b - long_option: name - is_optional: false - - name: type - description: Onap EMS type - type: string - short_option: c - long_option: type - is_optional: false - - name: vendor - description: Onap EMS vendor - type: string - short_option: e - long_option: vendor - is_optional: false - - name: ems-version - description: Onap EMS version - type: string - short_option: q - long_option: ems-version - is_optional: false - - name: url - description: Onap EMS URL - type: string - short_option: g - long_option: url - is_optional: false - - name: username - description: Onap EMS username - type: string - short_option: i - long_option: username - is_optional: false - - name: password - description: Onap EMS password - type: string - short_option: j - long_option: password - is_optional: false - - name: remote-path - description: Onap EMS remote-path - type: string - short_option: x - long_option: remote-path - is_optional: false - -http: - request: - uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id} - method: PUT - body: '{"ems-id":"${ems-id}","passive":true,"remote-path":"${remote-path}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${ems-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${ems-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":"","ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml deleted file mode 100644 index c703c651..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml +++ /dev/null @@ -1,38 +0,0 @@ -open_cli_schema_version: 1.0 - -name: ems-unregister - -description: Un-register a EMS in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: ems-id - description: Onap EMS unique id - type: uuid - short_option: x - long_option: ems-id - is_optional: false - - name: resource-version - description: Onap vim resource version - type: string - short_option: y - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id}?resource-version=${resource-version} - method: DELETE - - success_codes: - - 204 - - 404 - - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml deleted file mode 100644 index 7b8877bb..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml +++ /dev/null @@ -1,38 +0,0 @@ -open_cli_schema_version: 1.0 - -name: ems-list - -description: List the configured ems - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: ems-id - description: Onap ems id - scope: short - type: string - - name: resource-version - description: Onap ems resource version - scope: short - type: string - -http: - request: - uri: /aai/v11/external-system/esr-ems-list - method: GET - success_codes: - - 200 - result_map: - ems-id: $b{$.esr-ems.[*].ems-id} - resource-version: $b{$.esr-ems.[*].resource-version} - - sample_response: - body: '{"esr-ems":[{"ems-id":"example-ems-id-val-36878","passive":true,"remote-path":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml deleted file mode 100644 index c03a75bd..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml +++ /dev/null @@ -1,66 +0,0 @@ -open_cli_schema_version: 1.0 - -name: ems-show - -description: Show the details of configured ems - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: ems-id - description: Onap EMS unique id - type: uuid - short_option: x - long_option: ems-id - is_optional: false - -results: - direction: landscape - attributes: - - name: name - description: Onap ems name - scope: short - type: string - - name: type - description: Onap ems type - scope: short - type: string - - name: vendor - description: Onap ems vendor - scope: short - type: string - - name: version - description: Onap ems version - scope: short - type: string - - name: url - description: Onap ems url - scope: short - type: string - - name: username - description: Onap ems username - scope: long - type: string - -http: - request: - uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id}/esr-system-info-list/esr-system-info/${ems-id} - method: GET - success_codes: - - 200 - result_map: - name: $b{$.system-name} - type: $b{$.type} - vendor: $b{$.vendor} - version: $b{$.version} - url: $b{$.service-url} - username: $b{$.user-name} - - sample_response: - body: '{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml deleted file mode 100644 index fe0d22a8..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml +++ /dev/null @@ -1,97 +0,0 @@ -open_cli_schema_version: 1.0 - -name: sdnc-register - -description: Register a SDNC in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: location - description: Onap VIM unique id - type: uuid - short_option: x - long_option: location - is_optional: false - - name: sdnc-id - description: Onap SDNC unique id - type: uuid - short_option: y - long_option: sdnc-id - is_optional: false - - name: name - description: Onap SDNC name - type: string - short_option: b - long_option: name - is_optional: false - - name: type - description: Onap SDNC type - type: string - short_option: c - long_option: type - is_optional: false - - name: vendor - description: Onap SDNC vendor - type: string - short_option: e - long_option: vendor - is_optional: false - - name: sdnc-version - description: Onap SDNC version - type: string - short_option: q - long_option: sdnc-version - is_optional: false - - name: ip-address - description: Onap SDNC ip address - type: string - short_option: g - long_option: ip-address - is_optional: false - - name: port - description: Onap SDNC port - type: string - short_option: k - long_option: port - is_optional: false - - name: protocal - description: Onap SDNC protocal - type: string - short_option: r - long_option: protocal - is_optional: false - - name: username - description: Onap SDNC username - type: string - short_option: i - long_option: username - is_optional: false - - name: password - description: Onap SDNC password - type: string - short_option: j - long_option: password - is_optional: false - - name: product-name - description: Onap SDNC product-name - type: string - short_option: z - long_option: product-name - is_optional: false - -http: - request: - uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id} - method: PUT - body: '{"thirdparty-sdnc-id":"${sdnc-id}","location":"${location}","product-name":"${product-name}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${sdnc-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${sdnc-version}","service-url":"","user-name":"${username}","password":"${password}","system-type":"sdnc","protocal":"${protocal}","ssl-cacert":"","ssl-insecure":"","ip-address":"${ip-address}","port":"${port}","cloud-domain":"","default-tenant":""}]}}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml deleted file mode 100644 index eec0ca67..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 - -name: sdnc-unregister - -description: Un-register a VNFM in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: sdnc-id - description: Onap VNFM unique id - type: string - short_option: x - long_option: sdnc-id - is_optional: false - -http: - request: - uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id} - method: DELETE - - success_codes: - - 201 - - 404 - - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml deleted file mode 100644 index f84c480f..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml +++ /dev/null @@ -1,40 +0,0 @@ -open_cli_schema_version: 1.0 - -name: sdnc-list - -description: List the configured sdnc - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: sdnc-id - description: Onap sdnc id - scope: short - type: string - - name: resource-version - description: Onap sdnc resource version - scope: short - type: string - -http: - request: - uri: /aai/v11/external-system/esr-sdnc-list - method: GET - success_codes: - - 200 - result_map: - sdnc-id: $b{$.esr-sdnc.[*].sdnc-id} - resource-version: $b{$.esr-sdnc.[*].resource-version} - - sample_response: - body: '{"esr-sdnc":[{"sdnc-id":"example-sdnc-id-val-36878","location":"location","product-name":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"sdnc","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' - - diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml deleted file mode 100644 index d50acfb9..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml +++ /dev/null @@ -1,107 +0,0 @@ -open_cli_schema_version: 1.0 -name: vim-register -description: Register a VIM under a given cloud region in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud-name - description: Onap cloud name - type: string - short_option: x - long_option: cloud-name - is_optional: false - - name: region-name - description: Onap region name - type: string - short_option: y - long_option: region-name - is_optional: false - - name: vim-id - description: Onap VIM unique id - type: uuid - short_option: z - long_option: vim-id - is_optional: false - - name: name - description: Onap VIM name - type: string - short_option: b - long_option: name - is_optional: false - - name: type - description: Onap VIM type - type: string - short_option: c - long_option: type - is_optional: false - - name: vendor - description: Onap VIM vendor - type: string - short_option: e - long_option: vendor - is_optional: false - - name: vim-version - description: Onap VIM version - type: string - short_option: q - long_option: vim-version - is_optional: false - - name: url - description: Onap VIM URL - type: string - short_option: g - long_option: url - is_optional: false - - name: username - description: Onap VIM username - type: string - short_option: i - long_option: username - is_optional: false - - name: password - description: Onap VIM password - type: string - short_option: j - long_option: password - is_optional: false - - name: ssl-cacert - description: Onap VIM SSL certificate - type: text - short_option: k - long_option: ssl-cacert - is_optional: true - - name: ssl-insecure - description: Onap VIM insecure - type: bool - short_option: l - long_option: ssl-insecure - is_optional: true - default: false - - name: cloud-domain - description: Onap VIM cloud domain - type: string - short_option: n - long_option: cloud-domain - is_optional: false - default: default - - name: default-tenant - description: Onap VIM default tenant - type: string - short_option: o - long_option: default-tenant - is_optional: false - -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id} - method: PUT - body: '{"esr-system-info-id":"${vim-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${vim-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"vim","protocal":"","ssl-cacert":"${ssl-cacert}","ssl-insecure":"${ssl-insecure}","ip-address":"","port":"","cloud-domain":"${cloud-domain}","default-tenant":"${default-tenant}"}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml deleted file mode 100644 index ee74ead5..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml +++ /dev/null @@ -1,51 +0,0 @@ -open_cli_schema_version: 1.0 - -name: vim-unregister - -description: Un-register a VIM under from cloud region in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud-name - description: Onap cloud name - type: string - short_option: x - long_option: cloud-name - is_optional: false - - name: region-name - description: Onap region name - type: string - short_option: y - long_option: region-name - is_optional: false - - name: vim-id - description: Onap VIM unique id - type: uuid - short_option: z - long_option: vim-id - is_optional: false - - name: resource-version - description: Onap vim resource version - type: string - short_option: b - long_option: resource-version - is_optional: true - -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id}?resource-version=${resource-version} - method: DELETE - - success_codes: - - 204 - - 404 - - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml deleted file mode 100644 index 2af3474d..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml +++ /dev/null @@ -1,92 +0,0 @@ -open_cli_schema_version: 1.0 - -name: vim-list - -description: List the configured vims - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud-name - description: Onap cloud name - type: string - short_option: x - long_option: cloud-name - is_optional: false - - name: region-name - description: Onap region name - type: string - short_option: y - long_option: region-name - is_optional: false - -results: - direction: landscape - attributes: - - name: vim-id - description: Onap vim id - scope: short - type: string - - name: name - description: Onap vim name - scope: short - type: string - - name: type - description: Onap vim type - scope: long - type: string - - name: vendor - description: Onap vim vendor - scope: short - type: string - - name: version - description: Onap vim version - scope: long - type: string - - name: url - description: Onap vim url - scope: long - type: string - - name: username - description: Onap vim username - scope: long - type: string - - name: cloud-domain - description: Onap vim cloud domain - scope: long - type: string - - name: default-tenant - description: Onap vim tenant - scope: short - type: string - - name: resource-version - description: Onap vim resource version - scope: short - type: string - -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list - method: GET - success_codes: - - 200 - result_map: - vim-id: $b{$.esr-system-info.[*].esr-system-info-id} - name: $b{$.esr-system-info.[*].system-name} - type: $b{$.esr-system-info.[*].type} - vendor: $b{$.esr-system-info.[*].vendor} - version: $b{$.esr-system-info.[*].version} - url: $b{$.esr-system-info.[*].service-url} - username: $b{$.esr-system-info.[*].user-name} - cloud-domain: $b{$.esr-system-info.[*].cloud-domain} - default-tenant: $b{$.esr-system-info.[*].default-tenant} - resource-version: $b{$.esr-system-info.[*].resource-version} - - sample_response: - body: '{esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-62966","system-name":"example-system-name-val-76894","type":"example-type-val-32301","vendor":"example-vendor-val-38139","version":"example-version-val-42345","service-url":"example-service-url-val-33729","user-name":"example-user-name-val-32122","password":"example-password-val-56539","system-type":"example-system-type-val-80707","protocal":"example-protocal-val-30105","ssl-cacert":"example-ssl-cacert-val-52110","ssl-insecure":true,"ip-address":"example-ip-address-val-10140","port":"example-port-val-26369","cloud-domain":"example-cloud-domain-val-22303","default-tenant":"example-default-tenant-val-26326"}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml deleted file mode 100644 index e8529722..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml +++ /dev/null @@ -1,85 +0,0 @@ -open_cli_schema_version: 1.0 - -name: vnfm-register - -description: Register a VNFM in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: vim-id - description: Onap VIM unique id - type: uuid - short_option: x - long_option: vim-id - is_optional: false - - name: vnfm-id - description: Onap VNFM unique id - type: uuid - short_option: y - long_option: vnfm-id - is_optional: false - - name: name - description: Onap VNFM name - type: string - short_option: b - long_option: name - is_optional: false - - name: type - description: Onap VNFM type - type: string - short_option: c - long_option: type - is_optional: false - - name: vendor - description: Onap VNFM vendor - type: string - short_option: e - long_option: vendor - is_optional: false - - name: vnfm-version - description: Onap VNFM version - type: string - short_option: q - long_option: vnfm-version - is_optional: false - - name: url - description: Onap VNFM URL - type: string - short_option: g - long_option: url - is_optional: false - - name: username - description: Onap VNFM username - type: string - short_option: i - long_option: username - is_optional: false - - name: password - description: Onap VNFM password - type: string - short_option: j - long_option: password - is_optional: false - - name: certificate-url - description: Onap VNFM certificate-url - type: string - short_option: z - long_option: certificate-url - is_optional: true - -http: - request: - uri: /aai/v11/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id} - method: PUT - body: '{"vnfm-id":"${vnfm-id}","vim-id":"${vim-id}","certificate-url":"${certificate-url}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${vnfm-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${vnfm-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"vnfm","protocal":"","ssl-cacert":"","ssl-insecure":"","ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml deleted file mode 100644 index 3c99c048..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml +++ /dev/null @@ -1,38 +0,0 @@ -open_cli_schema_version: 1.0 - -name: vnfm-unregister - -description: Un-register a VNFM in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: vnfm-id - description: Onap VNFM unique id - type: uuid - short_option: x - long_option: vnfm-id - is_optional: false - - name: resource-version - description: Onap vim resource version - type: string - short_option: y - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v11/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id}?resource-version=${resource-version} - method: DELETE - - success_codes: - - 204 - - 404 - - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml deleted file mode 100644 index 4318dce7..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml +++ /dev/null @@ -1,48 +0,0 @@ -open_cli_schema_version: 1.0 - -name: vnfm-list - -description: List the configured vnfm - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: vnfm-id - description: Onap vnfm id - scope: short - type: string - - name: vim-id - description: Onap vnfm id - scope: short - type: string - - name: certificate-url - description: Onap vnfm certificate-url - scope: short - type: string - - name: resource-version - description: Onap vnfm resource version - scope: short - type: string - -http: - request: - uri: /aai/v11/external-system/esr-vnfm-list - method: GET - success_codes: - - 200 - result_map: - vnfm-id: $b{$.esr-vnfm.[*].vnfm-id} - vim-id: $b{$.esr-vnfm.[*].vim-id} - certificate-url: $b{$.esr-vnfm.[*].certificate-url} - resource-version: $b{$.esr-vnfm.[*].resource-version} - - sample_response: - body: '{"esr-vnfm":[{"vnfm-id":"example-vnfm-id-val-36878","vim-id":"vim-id","certificate-url":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"vnfm","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml deleted file mode 100644 index e447ec56..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml +++ /dev/null @@ -1,67 +0,0 @@ -open_cli_schema_version: 1.0 - -name: vnfm-show - -description: Show the VNFM in Onap - -version: onap-1.1 - -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: vnfm-id - description: Onap VNFM unique id - type: uuid - short_option: x - long_option: vnfm-id - is_optional: false - -results: - direction: portrait - attributes: - - name: name - description: Onap vnfm name - scope: short - type: string - - name: type - description: Onap vnfm type - scope: short - type: string - - name: vendor - description: Onap vnfm vendor - scope: short - type: string - - name: version - description: Onap vnfm version - scope: short - type: string - - name: url - description: Onap vnfm url - scope: short - type: string - - name: username - description: Onap vnfm username - scope: long - type: string - -http: - request: - uri: /aai/v11/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id}/esr-system-info-list/esr-system-info/${vnfm-id} - method: GET - - success_codes: - - 200 - result_map: - name: $b{$.system-name} - type: $b{$.type} - vendor: $b{$.vendor} - version: $b{$.version} - url: $b{$.service-url} - username: $b{$.user-name} - - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml deleted file mode 100644 index ffd3a964..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-type-create -description: Add a service type in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: service-type - description: Onap service type - type: string - short_option: x - long_option: service-type - is_optional: false - - name: service-type-id - description: Onap service type uuid - type: uuid - short_option: y - long_option: service-type-id - is_optional: true - -http: - request: - uri: /aai/v11/service-design-and-creation/services/service/${service-type-id} - method: PUT - body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml deleted file mode 100644 index f8a73841..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-type-create -description: Add a service type in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: service-type - description: Onap service type - type: string - short_option: x - long_option: service-type - is_optional: false - - name: service-type-id - description: Onap service type uuid - type: uuid - short_option: y - long_option: service-type-id - is_optional: true - -http: - request: - uri: /aai/v8/service-design-and-creation/services/service/${service-type-id} - method: PUT - body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}' - success_codes: - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml deleted file mode 100644 index c1745b13..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml +++ /dev/null @@ -1,34 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-type-delete -description: Delete a service type from Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: service-type-id - description: Onap service type uuid - type: uuid - short_option: x - long_option: service-type-id - is_optional: true - - name: resource-version - description: Onap service resource version - type: uuid - short_option: y - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v11/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} - queries: - resource-version: ${resource-version} - method: DELETE - success_codes: - - 204 - - 404 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml deleted file mode 100644 index a2b438b6..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml +++ /dev/null @@ -1,34 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-type-delete -description: Delete a service type from Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: service-type-id - description: Onap service type uuid - type: uuid - short_option: x - long_option: service-type-id - is_optional: true - - name: resource-version - description: Onap service resource version - type: uuid - short_option: y - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v8/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} - queries: - resource-version: ${resource-version} - method: DELETE - success_codes: - - 204 - - 404 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml deleted file mode 100644 index dd769c2c..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml +++ /dev/null @@ -1,37 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-type-list -description: List the service types configured in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: service-type-id - description: Onap cloud service - scope: short - type: string - - name: service-type - description: Onap cloud service - scope: short - type: string - - name: resource-version - description: Onap cloud service resource version - scope: short - type: string -http: - request: - uri: /aai/v11/service-design-and-creation/services - method: GET - success_codes: - - 200 - result_map: - service-type: $b{service.[*].service-description} - service-type-id: $b{service.[*].service-id} - resource-version: $b{service.[*].resource-version} - sample_response: - body: '{"service":[{"service-id":"db3403eb-5c94-4295-bb00-a9dba8964ab3","service-description":"vFW","resource-version":"1500729865"},{"service-id":"33737156-ff09-4b3d-884a-fe9a372afa4e","service-description":"vLB","resource-version":"1500729866"}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml deleted file mode 100644 index bdff43c3..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml +++ /dev/null @@ -1,37 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-type-list -description: List the service types configured in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: service-type-id - description: Onap cloud service - scope: short - type: string - - name: service-type - description: Onap cloud service - scope: short - type: string - - name: resource-version - description: Onap cloud service resource version - scope: short - type: string -http: - request: - uri: /aai/v8/service-design-and-creation/services - method: GET - success_codes: - - 200 - result_map: - service-type: $b{service.[*].service-description} - service-type-id: $b{service.[*].service-id} - resource-version: $b{service.[*].resource-version} - sample_response: - body: '{"service":[{"service-id":"db3403eb-5c94-4295-bb00-a9dba8964ab3","service-description":"vFW","resource-version":"1500729865"},{"service-id":"33737156-ff09-4b3d-884a-fe9a372afa4e","service-description":"vLB","resource-version":"1500729866"}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml deleted file mode 100644 index 1ed61eca..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml +++ /dev/null @@ -1,52 +0,0 @@ -open_cli_schema_version: 1.0 -name: subscription-create -description: Create a subscription of a customer for given service in specific cloud region in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: cloud-name - description: Onap cloud name - type: string - short_option: z - long_option: cloud-name - is_optional: false - - name: cloud-region - description: Onap cloud region - type: string - short_option: r - long_option: cloud-region - is_optional: false - - name: cloud-tenant-id - description: Onap cloud tenant id - type: string - short_option: c - long_option: cloud-tenant-id - is_optional: false - - name: service-type - description: Onap service type - type: string - short_option: e - long_option: service-type - is_optional: false - -http: - request: - uri: /aai/v11/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} - method: PUT - body: '{"relationship-list":{"relationship":[{"related-to":"tenant","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"${cloud-name}"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"${cloud-region}"},{"relationship-key":"tenant.tenant-id","relationship-value":"${cloud-tenant-id}"}]}]},"service-type":"${service-type}"}' - success_codes: - - 200 - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml deleted file mode 100644 index a45f8cfd..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml +++ /dev/null @@ -1,63 +0,0 @@ -open_cli_schema_version: 1.0 -name: subscription-create -description: Create a subscription for a customer in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: subscriber-name - description: Onap subscriber name - type: string - short_option: y - long_option: subscriber-name - is_optional: false - - name: cloud-type - description: Onap cloud type (openstack, rackspace) - type: string - short_option: z - long_option: cloud-type - is_optional: false - - name: cloud-region - description: Onap cloud region - type: string - short_option: r - long_option: cloud-region - is_optional: false - - name: cloud-tenant-id - description: Onap cloud tenant id - type: string - short_option: c - long_option: cloud-tenant-id - is_optional: false - - name: service-type - description: Onap service type - type: string - short_option: e - long_option: service-type - is_optional: false - - name: resource-version - description: Onap subscription resource version. It is mandatory for existing customer to create a new subscription - type: string - short_option: g - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v8/business/customers/customer/${customer-name} - method: PUT - body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA", "resource-version":"${resource-version}", "service-subscriptions":{"service-subscription":[{"relationship-list":{"relationship":[{"related-to":"tenant","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"${cloud-type}"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"${cloud-region}"},{"relationship-key":"tenant.tenant-id","relationship-value":"${cloud-tenant-id}"}]}]},"service-type":"${service-type}"}]}}}' - success_codes: - - 200 - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml deleted file mode 100644 index 18e83fdd..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml +++ /dev/null @@ -1,39 +0,0 @@ -open_cli_schema_version: 1.0 -name: subscription-delete -description: Delete the subscription for a given customer in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - - name: service-type - description: Onap subscribtion id - type: string - short_option: y - long_option: service-type - is_optional: false - - name: resource-version - description: Onap subscription resource version - type: string - short_option: g - long_option: resource-version - is_optional: true -http: - request: - uri: /aai/v11//business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 - - - diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml deleted file mode 100644 index a14d2da2..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml +++ /dev/null @@ -1,60 +0,0 @@ -open_cli_schema_version: 1.0 -name: subscription-list -description: Lists the subscription for a given customer in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - -results: - direction: landscape - attributes: - - name: service-type - description: Onap service type - scope: short - type: string - - name: resource-version - description: Onap subscription resource version - scope: short - type: string - - name: tenant - description: Onap tenant name - scope: long - type: string - - name: region - description: Onap region name - scope: long - type: string - - name: cloud - description: Onap cloud name - scope: long - type: string -http: - request: - uri: /aai/v11/business/customers/customer/${customer-name}/service-subscriptions - method: GET - success_codes: - - 200 - result_map: - service-type: $b{$.service-subscription.[*].service-type} - resource-version: $b{$.service-subscription.[*].resource-version} - tenant: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'tenant.tenant-id')].relationship-value} - region: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-region-id')].relationship-value} - cloud: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-owner')].relationship-value} - - sample_response: - body: '{"service-subscription":[{"service-type":"vTest","resource-version":"1504091375183","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/26ab7af6-96cc-4c4e-814a-e533af4ef9f6","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"att-aic"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"AAIAIC25"},{"relationship-key":"tenant.tenant-id","relationship-value":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"test"}]}]}}]}' - - - - diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml deleted file mode 100644 index 634c5cb2..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml +++ /dev/null @@ -1,40 +0,0 @@ -open_cli_schema_version: 1.0 -name: subscription-list -description: Lists the subscription for a given customer in Onap -version: onap-1.0 -service: - name: aai - version: v8 - auth: basic - mode: direct - -parameters: - - name: customer-name - description: Onap customer name - type: string - short_option: x - long_option: customer-name - is_optional: false - -results: - direction: landscape - attributes: - - name: service-type - description: Onap service type - scope: short - type: string - -http: - request: - uri: /aai/v8/business/customers/customer/${customer-name} - method: GET - success_codes: - - 200 - result_map: - service-type: $b{$.service-subscriptions.service-subscription.[*].service-type} - sample_response: - body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' - - - - diff --git a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml deleted file mode 100644 index 9bc22853..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml +++ /dev/null @@ -1,46 +0,0 @@ -open_cli_schema_version: 1.0 -name: tenant-create -description: Create a tenant under given cloud region in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud - description: Onap cloud - type: string - short_option: x - long_option: cloud - is_optional: false - - name: region - description: Onap cloud region - type: string - short_option: y - long_option: region - is_optional: false - - name: tenant-id - description: Onap cloud tenant id - type: string - short_option: z - long_option: tenant-id - is_optional: false - - name: tenant-name - description: Onap cloud tenant name - type: string - short_option: r - long_option: tenant-name - is_optional: false - -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id} - method: PUT - body: '{"tenant-id": "${tenant-id}", "tenant-name": "${tenant-name}"}' - success_codes: - - 200 - - 201 - sample_response: - body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml deleted file mode 100644 index ece1bd5c..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml +++ /dev/null @@ -1,43 +0,0 @@ -open_cli_schema_version: 1.0 -name: tenant-delete -description: Delete tenant under given cloud region in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud - description: Onap cloud - type: string - short_option: x - long_option: cloud - is_optional: false - - name: region - description: Onap cloud region - type: string - short_option: y - long_option: region - is_optional: false - - name: tenant-id - description: Onap cloud tenant id - type: string - short_option: z - long_option: tenant-id - is_optional: false - - name: resource-version - description: Onap cloud tenant version - type: uuid - short_option: r - long_option: resource-version - is_optional: true - -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id}?resource-version=${resource-version} - method: DELETE - success_codes: - - 204 - - 404 diff --git a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml deleted file mode 100644 index 46f470da..00000000 --- a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml +++ /dev/null @@ -1,55 +0,0 @@ -open_cli_schema_version: 1.0 -name: tenant-list -description: Lists the tenants under given cloud region in Onap -version: onap-1.1 -service: - name: aai - version: v11 - auth: basic - mode: direct - -parameters: - - name: cloud - description: Onap cloud - type: string - short_option: x - long_option: cloud - is_optional: false - - name: region - description: Onap cloud region - type: string - short_option: y - long_option: region - is_optional: false - -results: - direction: landscape - attributes: - - name: tenant-id - description: Onap tenant-id - scope: short - type: string - - name: tenant-name - description: Onap tenant name - scope: short - type: string - - name: resource-version - description: Onap tenant resource version - scope: short - type: string -http: - request: - uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants - method: GET - success_codes: - - 200 - result_map: - tenant-id: $b{$.tenant.[*].tenant-id} - tenant-name: $b{$.tenant.[*].tenant-name} - resource-version: $b{$.tenant.[*].resource-version} - sample_response: - body: '{"tenant":[{"tenant-id":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6","tenant-name":"test","resource-version":"1504091074807","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/vTest","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"customer-2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vTest"}]}]}}]}' - - - - diff --git a/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml new file mode 100644 index 00000000..8657ae14 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 +name: cloud-create +description: Create a cloud region in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name} + method: PUT + body: '{"sriov-automation": false, "cloud-region-id": "${region-name}", "cloud-owner": "${cloud-name}", "new-attribute-for-demo": "blah", "number-attribute-for-demo": 1 }' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml new file mode 100644 index 00000000..5575f7f7 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml @@ -0,0 +1,36 @@ +open_cli_schema_version: 1.0 +name: cloud-delete +description: Delete a cloud region from Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap cloud region name + type: string + short_option: y + long_option: region-name + is_optional: false + - name: resource-version + description: Onap cloud region version + type: uuid + short_option: z + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 diff --git a/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml new file mode 100644 index 00000000..c9fd5368 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml @@ -0,0 +1,57 @@ +open_cli_schema_version: 1.0 +name: cloud-list +description: List the configured clouds and Onap service subscriptions +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: cloud + description: Onap cloud + scope: short + type: string + - name: region + description: Onap cloud region + scope: short + type: string + - name: tenant + description: Onap cloud tenat + scope: long + type: string + - name: tenant-id + description: Onap cloud tenat id + scope: long + type: string + - name: customer + description: Onap cloud customer + scope: long + type: string + - name: service + description: Onap cloud service + scope: long + type: string + - name: resource-version + description: Onap cloud resource version + scope: short + type: string +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions + method: GET + success_codes: + - 200 + result_map: + cloud: $b{cloud-region.[*].cloud-owner} + region: $b{cloud-region.[*].cloud-region-id} + resource-version: $b{cloud-region.[*].resource-version} + tenant: $b{cloud-region.[*].tenants.tenant.[*].tenant-name} + tenant-id: $b{cloud-region.[*].tenants.tenant.[*].tenant-id} + customer: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'customer.global-customer-id')].relationship-value} + service: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'service-subscription.service-type')].relationship-value} + sample_response: + body: '{"cloud-region":[{"cloud-owner":"Rackspace","cloud-region-id":"RegionOne","cloud-type":"SharedNode","owner-defined-type":"OwnerType","cloud-region-version":"v1","cloud-zone":"CloudZone","resource-version":"1500729864","tenants":{"tenant":[{"tenant-id":"e69e6d64b44347509c3fc512391f34a6","tenant-name":"onap","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration123/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration123"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u1/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u1"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u2/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]}]}}]}}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml new file mode 100644 index 00000000..10a7e954 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml @@ -0,0 +1,52 @@ +open_cli_schema_version: 1.0 +name: cloud-list +description: List the configured clouds and Onap service subscriptions +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: cloud + description: Onap cloud + scope: short + type: string + - name: region + description: Onap cloud region + scope: short + type: string + - name: tenant + description: Onap cloud tenat + scope: short + type: string + - name: tenant-id + description: Onap cloud tenat id + scope: short + type: string + - name: customer + description: Onap cloud customer + scope: long + type: string + - name: service + description: Onap cloud service + scope: long + type: string +http: + request: + uri: /aai/v8/cloud-infrastructure/cloud-regions + method: GET + success_codes: + - 200 + result_map: + cloud: $b{cloud-region.[*].cloud-owner} + region: $b{cloud-region.[*].cloud-region-id} + tenant: $b{cloud-region.[*].tenants.tenant.[*].tenant-name} + tenant-id: $b{cloud-region.[*].tenants.tenant.[*].tenant-id} + customer: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'customer.global-customer-id')].relationship-value} + service: $b{cloud-region.[*].tenants.tenant.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'service-subscription.service-type')].relationship-value} + sample_response: + body: '{"cloud-region":[{"cloud-owner":"Rackspace","cloud-region-id":"RegionOne","cloud-type":"SharedNode","owner-defined-type":"OwnerType","cloud-region-version":"v1","cloud-zone":"CloudZone","resource-version":"1500729864","tenants":{"tenant":[{"tenant-id":"e69e6d64b44347509c3fc512391f34a6","tenant-name":"onap","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration123/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration123"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u1/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u1"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/u2/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"u2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Demonstration"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vFW/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFW"}]},{"related-to":"service-subscription","related-link":"https://192.168.17.12:8443/aai/v8/business/customers/customer/Linan/service-subscriptions/service-subscription/vLB/","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"Linan"},{"relationship-key":"service-subscription.service-type","relationship-value":"vLB"}]}]}}]}}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml new file mode 100644 index 00000000..41c1515c --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 +name: customer-create +description: Create a customer in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: subscriber-name + description: Onap subscriber name + type: string + short_option: y + long_option: subscriber-name + is_optional: false + +http: + request: + uri: /aai/v11/business/customers/customer/${customer-name} + method: PUT + body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml new file mode 100644 index 00000000..e79cd5e6 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 +name: customer-create +description: Create a customer in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: subscriber-name + description: Onap subscriber name + type: string + short_option: y + long_option: subscriber-name + is_optional: false + +http: + request: + uri: /aai/v8/business/customers/customer/${customer-name} + method: PUT + body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml new file mode 100644 index 00000000..673cb94a --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml @@ -0,0 +1,30 @@ +open_cli_schema_version: 1.0 +name: customer-delete +description: Delete a customer from Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: resource-version + description: Onap customer resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v11/business/customers/customer/${customer-name}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml new file mode 100644 index 00000000..48455cdc --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml @@ -0,0 +1,30 @@ +open_cli_schema_version: 1.0 +name: customer-delete +description: Delete a customer from Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: resource-version + description: Onap customer resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v8/business/customers/customer/${customer-name}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml new file mode 100644 index 00000000..1e408f78 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 +name: customer-list +description: Lists the registetred customers in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct +results: + direction: landscape + attributes: + - name: name + description: Onap customer name + scope: short + type: string + - name: resource-version + description: Onap customer resource version + scope: short + type: string +http: + request: + uri: /aai/v11/business/customers + method: GET + success_codes: + - 200 + result_map: + name: $b{customer.[*].global-customer-id} + resource-version: $b{customer.[*].resource-version} + sample_response: + body: '{"customer":[{"global-customer-id":"Demonstration","subscriber-name":"Demonstration","subscriber-type":"INFRA","resource-version":"1500729865","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1500729865","service-instances":{"service-instance":[{"service-instance-id":"d6167ea1-ff83-4236-9b32-37494dfb7537","service-instance-name":"demoVLB-1","persona-model-id":"af01a849-721b-407d-a880-be836e26ee81","persona-model-version":"1.0","resource-version":"1501154574","relationship-list":{"relationship":[{"related-to":"generic-vnf","related-link":"https://192.168.17.12:8443/aai/v8/network/generic-vnfs/generic-vnf/16c6d95d-44e3-4527-aa63-a495bf8e776e/","relationship-data":[{"relationship-key":"generic-vnf.vnf-id","relationship-value":"16c6d95d-44e3-4527-aa63-a495bf8e776e"}],"related-to-property":[{"property-key":"generic-vnf.vnf-name","property-value":"demoVLB-1-VNF-1"}]}]}}]},"relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-name":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-type":"INFRA","resource-version":"1501766760","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501766760","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}]}' \ No newline at end of file diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml new file mode 100644 index 00000000..0866cfb4 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 +name: customer-list +description: Lists the registetred customers in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct +results: + direction: landscape + attributes: + - name: name + description: Onap customer name + scope: short + type: string + - name: resource-version + description: Onap customer resource version + scope: short + type: string +http: + request: + uri: /aai/v8/business/customers + method: GET + success_codes: + - 200 + result_map: + name: $b{customer.[*].global-customer-id} + resource-version: $b{customer.[*].resource-version} + sample_response: + body: '{"customer":[{"global-customer-id":"Demonstration","subscriber-name":"Demonstration","subscriber-type":"INFRA","resource-version":"1500729865","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1500729865","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1500729865","service-instances":{"service-instance":[{"service-instance-id":"d6167ea1-ff83-4236-9b32-37494dfb7537","service-instance-name":"demoVLB-1","persona-model-id":"af01a849-721b-407d-a880-be836e26ee81","persona-model-version":"1.0","resource-version":"1501154574","relationship-list":{"relationship":[{"related-to":"generic-vnf","related-link":"https://192.168.17.12:8443/aai/v8/network/generic-vnfs/generic-vnf/16c6d95d-44e3-4527-aa63-a495bf8e776e/","relationship-data":[{"relationship-key":"generic-vnf.vnf-id","relationship-value":"16c6d95d-44e3-4527-aa63-a495bf8e776e"}],"related-to-property":[{"property-key":"generic-vnf.vnf-name","property-value":"demoVLB-1-VNF-1"}]}]}}]},"relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}},{"global-customer-id":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-name":"DemoCust_7151e36a-1a57-4993-b513-54134f2b8f19","subscriber-type":"INFRA","resource-version":"1501766760","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501766760","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}]}' \ No newline at end of file diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml new file mode 100644 index 00000000..f12e235a --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml @@ -0,0 +1,50 @@ +open_cli_schema_version: 1.0 +name: customer-show +description: Lists the registetred customers in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + +results: + direction: landscape + attributes: + - name: name + description: Onap customer name + scope: short + type: string + - name: subscriber-name + description: Onap subscriber name + scope: short + type: string + - name: resource-version + description: Onap subscriber resource version + scope: long + type: string + - name: subscriber-type + description: Onap subscriber type + scope: long + type: string +http: + request: + uri: /aai/v11/business/customers/customer/${customer-name} + method: GET + success_codes: + - 200 + result_map: + name: $b{$.global-customer-id} + subscriber-name: $b{$.subscriber-name} + subscriber-type: $b{$.subscriber-type} + resource-version: $b{$.resource-version} + sample_response: + body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml new file mode 100644 index 00000000..bb37aa27 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml @@ -0,0 +1,50 @@ +open_cli_schema_version: 1.0 +name: customer-show +description: Lists the registetred customers in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + +results: + direction: landscape + attributes: + - name: name + description: Onap customer name + scope: short + type: string + - name: subscriber-name + description: Onap subscriber name + scope: short + type: string + - name: resource-version + description: Onap subscriber resource version + scope: long + type: string + - name: subscriber-type + description: Onap subscriber type + scope: long + type: string +http: + request: + uri: /aai/v8/business/customers/customer/${customer-name} + method: GET + success_codes: + - 200 + result_map: + name: $b{$.global-customer-id} + subscriber-name: $b{$.subscriber-name} + subscriber-type: $b{$.subscriber-type} + resource-version: $b{$.resource-version} + sample_response: + body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml new file mode 100644 index 00000000..2c6c0636 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml @@ -0,0 +1,79 @@ +open_cli_schema_version: 1.0 + +name: ems-register + +description: Register a EMS in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: ems-id + description: Onap EMS unique id + type: uuid + short_option: z + long_option: ems-id + is_optional: false + - name: name + description: Onap EMS name + type: string + short_option: b + long_option: name + is_optional: false + - name: type + description: Onap EMS type + type: string + short_option: c + long_option: type + is_optional: false + - name: vendor + description: Onap EMS vendor + type: string + short_option: e + long_option: vendor + is_optional: false + - name: ems-version + description: Onap EMS version + type: string + short_option: q + long_option: ems-version + is_optional: false + - name: url + description: Onap EMS URL + type: string + short_option: g + long_option: url + is_optional: false + - name: username + description: Onap EMS username + type: string + short_option: i + long_option: username + is_optional: false + - name: password + description: Onap EMS password + type: string + short_option: j + long_option: password + is_optional: false + - name: remote-path + description: Onap EMS remote-path + type: string + short_option: x + long_option: remote-path + is_optional: false + +http: + request: + uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id} + method: PUT + body: '{"ems-id":"${ems-id}","passive":true,"remote-path":"${remote-path}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${ems-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${ems-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":"","ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml new file mode 100644 index 00000000..c703c651 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml @@ -0,0 +1,38 @@ +open_cli_schema_version: 1.0 + +name: ems-unregister + +description: Un-register a EMS in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: ems-id + description: Onap EMS unique id + type: uuid + short_option: x + long_option: ems-id + is_optional: false + - name: resource-version + description: Onap vim resource version + type: string + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id}?resource-version=${resource-version} + method: DELETE + + success_codes: + - 204 + - 404 + + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml new file mode 100644 index 00000000..7b8877bb --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml @@ -0,0 +1,38 @@ +open_cli_schema_version: 1.0 + +name: ems-list + +description: List the configured ems + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: ems-id + description: Onap ems id + scope: short + type: string + - name: resource-version + description: Onap ems resource version + scope: short + type: string + +http: + request: + uri: /aai/v11/external-system/esr-ems-list + method: GET + success_codes: + - 200 + result_map: + ems-id: $b{$.esr-ems.[*].ems-id} + resource-version: $b{$.esr-ems.[*].resource-version} + + sample_response: + body: '{"esr-ems":[{"ems-id":"example-ems-id-val-36878","passive":true,"remote-path":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml new file mode 100644 index 00000000..c03a75bd --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml @@ -0,0 +1,66 @@ +open_cli_schema_version: 1.0 + +name: ems-show + +description: Show the details of configured ems + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: ems-id + description: Onap EMS unique id + type: uuid + short_option: x + long_option: ems-id + is_optional: false + +results: + direction: landscape + attributes: + - name: name + description: Onap ems name + scope: short + type: string + - name: type + description: Onap ems type + scope: short + type: string + - name: vendor + description: Onap ems vendor + scope: short + type: string + - name: version + description: Onap ems version + scope: short + type: string + - name: url + description: Onap ems url + scope: short + type: string + - name: username + description: Onap ems username + scope: long + type: string + +http: + request: + uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id}/esr-system-info-list/esr-system-info/${ems-id} + method: GET + success_codes: + - 200 + result_map: + name: $b{$.system-name} + type: $b{$.type} + vendor: $b{$.vendor} + version: $b{$.version} + url: $b{$.service-url} + username: $b{$.user-name} + + sample_response: + body: '{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml new file mode 100644 index 00000000..fe0d22a8 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml @@ -0,0 +1,97 @@ +open_cli_schema_version: 1.0 + +name: sdnc-register + +description: Register a SDNC in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: location + description: Onap VIM unique id + type: uuid + short_option: x + long_option: location + is_optional: false + - name: sdnc-id + description: Onap SDNC unique id + type: uuid + short_option: y + long_option: sdnc-id + is_optional: false + - name: name + description: Onap SDNC name + type: string + short_option: b + long_option: name + is_optional: false + - name: type + description: Onap SDNC type + type: string + short_option: c + long_option: type + is_optional: false + - name: vendor + description: Onap SDNC vendor + type: string + short_option: e + long_option: vendor + is_optional: false + - name: sdnc-version + description: Onap SDNC version + type: string + short_option: q + long_option: sdnc-version + is_optional: false + - name: ip-address + description: Onap SDNC ip address + type: string + short_option: g + long_option: ip-address + is_optional: false + - name: port + description: Onap SDNC port + type: string + short_option: k + long_option: port + is_optional: false + - name: protocal + description: Onap SDNC protocal + type: string + short_option: r + long_option: protocal + is_optional: false + - name: username + description: Onap SDNC username + type: string + short_option: i + long_option: username + is_optional: false + - name: password + description: Onap SDNC password + type: string + short_option: j + long_option: password + is_optional: false + - name: product-name + description: Onap SDNC product-name + type: string + short_option: z + long_option: product-name + is_optional: false + +http: + request: + uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id} + method: PUT + body: '{"thirdparty-sdnc-id":"${sdnc-id}","location":"${location}","product-name":"${product-name}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${sdnc-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${sdnc-version}","service-url":"","user-name":"${username}","password":"${password}","system-type":"sdnc","protocal":"${protocal}","ssl-cacert":"","ssl-insecure":"","ip-address":"${ip-address}","port":"${port}","cloud-domain":"","default-tenant":""}]}}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml new file mode 100644 index 00000000..eec0ca67 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 + +name: sdnc-unregister + +description: Un-register a VNFM in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: sdnc-id + description: Onap VNFM unique id + type: string + short_option: x + long_option: sdnc-id + is_optional: false + +http: + request: + uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id} + method: DELETE + + success_codes: + - 201 + - 404 + + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml new file mode 100644 index 00000000..f84c480f --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml @@ -0,0 +1,40 @@ +open_cli_schema_version: 1.0 + +name: sdnc-list + +description: List the configured sdnc + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: sdnc-id + description: Onap sdnc id + scope: short + type: string + - name: resource-version + description: Onap sdnc resource version + scope: short + type: string + +http: + request: + uri: /aai/v11/external-system/esr-sdnc-list + method: GET + success_codes: + - 200 + result_map: + sdnc-id: $b{$.esr-sdnc.[*].sdnc-id} + resource-version: $b{$.esr-sdnc.[*].resource-version} + + sample_response: + body: '{"esr-sdnc":[{"sdnc-id":"example-sdnc-id-val-36878","location":"location","product-name":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"sdnc","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' + + diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml new file mode 100644 index 00000000..d50acfb9 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml @@ -0,0 +1,107 @@ +open_cli_schema_version: 1.0 +name: vim-register +description: Register a VIM under a given cloud region in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + - name: vim-id + description: Onap VIM unique id + type: uuid + short_option: z + long_option: vim-id + is_optional: false + - name: name + description: Onap VIM name + type: string + short_option: b + long_option: name + is_optional: false + - name: type + description: Onap VIM type + type: string + short_option: c + long_option: type + is_optional: false + - name: vendor + description: Onap VIM vendor + type: string + short_option: e + long_option: vendor + is_optional: false + - name: vim-version + description: Onap VIM version + type: string + short_option: q + long_option: vim-version + is_optional: false + - name: url + description: Onap VIM URL + type: string + short_option: g + long_option: url + is_optional: false + - name: username + description: Onap VIM username + type: string + short_option: i + long_option: username + is_optional: false + - name: password + description: Onap VIM password + type: string + short_option: j + long_option: password + is_optional: false + - name: ssl-cacert + description: Onap VIM SSL certificate + type: text + short_option: k + long_option: ssl-cacert + is_optional: true + - name: ssl-insecure + description: Onap VIM insecure + type: bool + short_option: l + long_option: ssl-insecure + is_optional: true + default: false + - name: cloud-domain + description: Onap VIM cloud domain + type: string + short_option: n + long_option: cloud-domain + is_optional: false + default: default + - name: default-tenant + description: Onap VIM default tenant + type: string + short_option: o + long_option: default-tenant + is_optional: false + +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id} + method: PUT + body: '{"esr-system-info-id":"${vim-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${vim-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"vim","protocal":"","ssl-cacert":"${ssl-cacert}","ssl-insecure":"${ssl-insecure}","ip-address":"","port":"","cloud-domain":"${cloud-domain}","default-tenant":"${default-tenant}"}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml new file mode 100644 index 00000000..ee74ead5 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml @@ -0,0 +1,51 @@ +open_cli_schema_version: 1.0 + +name: vim-unregister + +description: Un-register a VIM under from cloud region in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + - name: vim-id + description: Onap VIM unique id + type: uuid + short_option: z + long_option: vim-id + is_optional: false + - name: resource-version + description: Onap vim resource version + type: string + short_option: b + long_option: resource-version + is_optional: true + +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id}?resource-version=${resource-version} + method: DELETE + + success_codes: + - 204 + - 404 + + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml new file mode 100644 index 00000000..2af3474d --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml @@ -0,0 +1,92 @@ +open_cli_schema_version: 1.0 + +name: vim-list + +description: List the configured vims + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud-name + description: Onap cloud name + type: string + short_option: x + long_option: cloud-name + is_optional: false + - name: region-name + description: Onap region name + type: string + short_option: y + long_option: region-name + is_optional: false + +results: + direction: landscape + attributes: + - name: vim-id + description: Onap vim id + scope: short + type: string + - name: name + description: Onap vim name + scope: short + type: string + - name: type + description: Onap vim type + scope: long + type: string + - name: vendor + description: Onap vim vendor + scope: short + type: string + - name: version + description: Onap vim version + scope: long + type: string + - name: url + description: Onap vim url + scope: long + type: string + - name: username + description: Onap vim username + scope: long + type: string + - name: cloud-domain + description: Onap vim cloud domain + scope: long + type: string + - name: default-tenant + description: Onap vim tenant + scope: short + type: string + - name: resource-version + description: Onap vim resource version + scope: short + type: string + +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list + method: GET + success_codes: + - 200 + result_map: + vim-id: $b{$.esr-system-info.[*].esr-system-info-id} + name: $b{$.esr-system-info.[*].system-name} + type: $b{$.esr-system-info.[*].type} + vendor: $b{$.esr-system-info.[*].vendor} + version: $b{$.esr-system-info.[*].version} + url: $b{$.esr-system-info.[*].service-url} + username: $b{$.esr-system-info.[*].user-name} + cloud-domain: $b{$.esr-system-info.[*].cloud-domain} + default-tenant: $b{$.esr-system-info.[*].default-tenant} + resource-version: $b{$.esr-system-info.[*].resource-version} + + sample_response: + body: '{esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-62966","system-name":"example-system-name-val-76894","type":"example-type-val-32301","vendor":"example-vendor-val-38139","version":"example-version-val-42345","service-url":"example-service-url-val-33729","user-name":"example-user-name-val-32122","password":"example-password-val-56539","system-type":"example-system-type-val-80707","protocal":"example-protocal-val-30105","ssl-cacert":"example-ssl-cacert-val-52110","ssl-insecure":true,"ip-address":"example-ip-address-val-10140","port":"example-port-val-26369","cloud-domain":"example-cloud-domain-val-22303","default-tenant":"example-default-tenant-val-26326"}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml new file mode 100644 index 00000000..e8529722 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml @@ -0,0 +1,85 @@ +open_cli_schema_version: 1.0 + +name: vnfm-register + +description: Register a VNFM in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: vim-id + description: Onap VIM unique id + type: uuid + short_option: x + long_option: vim-id + is_optional: false + - name: vnfm-id + description: Onap VNFM unique id + type: uuid + short_option: y + long_option: vnfm-id + is_optional: false + - name: name + description: Onap VNFM name + type: string + short_option: b + long_option: name + is_optional: false + - name: type + description: Onap VNFM type + type: string + short_option: c + long_option: type + is_optional: false + - name: vendor + description: Onap VNFM vendor + type: string + short_option: e + long_option: vendor + is_optional: false + - name: vnfm-version + description: Onap VNFM version + type: string + short_option: q + long_option: vnfm-version + is_optional: false + - name: url + description: Onap VNFM URL + type: string + short_option: g + long_option: url + is_optional: false + - name: username + description: Onap VNFM username + type: string + short_option: i + long_option: username + is_optional: false + - name: password + description: Onap VNFM password + type: string + short_option: j + long_option: password + is_optional: false + - name: certificate-url + description: Onap VNFM certificate-url + type: string + short_option: z + long_option: certificate-url + is_optional: true + +http: + request: + uri: /aai/v11/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id} + method: PUT + body: '{"vnfm-id":"${vnfm-id}","vim-id":"${vim-id}","certificate-url":"${certificate-url}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${vnfm-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${vnfm-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"vnfm","protocal":"","ssl-cacert":"","ssl-insecure":"","ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml new file mode 100644 index 00000000..3c99c048 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml @@ -0,0 +1,38 @@ +open_cli_schema_version: 1.0 + +name: vnfm-unregister + +description: Un-register a VNFM in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: vnfm-id + description: Onap VNFM unique id + type: uuid + short_option: x + long_option: vnfm-id + is_optional: false + - name: resource-version + description: Onap vim resource version + type: string + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v11/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id}?resource-version=${resource-version} + method: DELETE + + success_codes: + - 204 + - 404 + + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml new file mode 100644 index 00000000..4318dce7 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml @@ -0,0 +1,48 @@ +open_cli_schema_version: 1.0 + +name: vnfm-list + +description: List the configured vnfm + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: vnfm-id + description: Onap vnfm id + scope: short + type: string + - name: vim-id + description: Onap vnfm id + scope: short + type: string + - name: certificate-url + description: Onap vnfm certificate-url + scope: short + type: string + - name: resource-version + description: Onap vnfm resource version + scope: short + type: string + +http: + request: + uri: /aai/v11/external-system/esr-vnfm-list + method: GET + success_codes: + - 200 + result_map: + vnfm-id: $b{$.esr-vnfm.[*].vnfm-id} + vim-id: $b{$.esr-vnfm.[*].vim-id} + certificate-url: $b{$.esr-vnfm.[*].certificate-url} + resource-version: $b{$.esr-vnfm.[*].resource-version} + + sample_response: + body: '{"esr-vnfm":[{"vnfm-id":"example-vnfm-id-val-36878","vim-id":"vim-id","certificate-url":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"vnfm","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml new file mode 100644 index 00000000..e447ec56 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml @@ -0,0 +1,67 @@ +open_cli_schema_version: 1.0 + +name: vnfm-show + +description: Show the VNFM in Onap + +version: onap-1.1 + +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: vnfm-id + description: Onap VNFM unique id + type: uuid + short_option: x + long_option: vnfm-id + is_optional: false + +results: + direction: portrait + attributes: + - name: name + description: Onap vnfm name + scope: short + type: string + - name: type + description: Onap vnfm type + scope: short + type: string + - name: vendor + description: Onap vnfm vendor + scope: short + type: string + - name: version + description: Onap vnfm version + scope: short + type: string + - name: url + description: Onap vnfm url + scope: short + type: string + - name: username + description: Onap vnfm username + scope: long + type: string + +http: + request: + uri: /aai/v11/external-system/esr-vnfm-list/esr-vnfm/${vnfm-id}/esr-system-info-list/esr-system-info/${vnfm-id} + method: GET + + success_codes: + - 200 + result_map: + name: $b{$.system-name} + type: $b{$.type} + vendor: $b{$.vendor} + version: $b{$.version} + url: $b{$.service-url} + username: $b{$.user-name} + + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml new file mode 100644 index 00000000..ffd3a964 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 +name: service-type-create +description: Add a service type in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: service-type + description: Onap service type + type: string + short_option: x + long_option: service-type + is_optional: false + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: y + long_option: service-type-id + is_optional: true + +http: + request: + uri: /aai/v11/service-design-and-creation/services/service/${service-type-id} + method: PUT + body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml new file mode 100644 index 00000000..f8a73841 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 +name: service-type-create +description: Add a service type in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: service-type + description: Onap service type + type: string + short_option: x + long_option: service-type + is_optional: false + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: y + long_option: service-type-id + is_optional: true + +http: + request: + uri: /aai/v8/service-design-and-creation/services/service/${service-type-id} + method: PUT + body: '{"service-description": "${service-type}", "service-id": "${service-type-id}"}' + success_codes: + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml new file mode 100644 index 00000000..c1745b13 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml @@ -0,0 +1,34 @@ +open_cli_schema_version: 1.0 +name: service-type-delete +description: Delete a service type from Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: x + long_option: service-type-id + is_optional: true + - name: resource-version + description: Onap service resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v11/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} + queries: + resource-version: ${resource-version} + method: DELETE + success_codes: + - 204 + - 404 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml new file mode 100644 index 00000000..a2b438b6 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml @@ -0,0 +1,34 @@ +open_cli_schema_version: 1.0 +name: service-type-delete +description: Delete a service type from Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: x + long_option: service-type-id + is_optional: true + - name: resource-version + description: Onap service resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v8/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} + queries: + resource-version: ${resource-version} + method: DELETE + success_codes: + - 204 + - 404 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml new file mode 100644 index 00000000..dd769c2c --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml @@ -0,0 +1,37 @@ +open_cli_schema_version: 1.0 +name: service-type-list +description: List the service types configured in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: service-type-id + description: Onap cloud service + scope: short + type: string + - name: service-type + description: Onap cloud service + scope: short + type: string + - name: resource-version + description: Onap cloud service resource version + scope: short + type: string +http: + request: + uri: /aai/v11/service-design-and-creation/services + method: GET + success_codes: + - 200 + result_map: + service-type: $b{service.[*].service-description} + service-type-id: $b{service.[*].service-id} + resource-version: $b{service.[*].resource-version} + sample_response: + body: '{"service":[{"service-id":"db3403eb-5c94-4295-bb00-a9dba8964ab3","service-description":"vFW","resource-version":"1500729865"},{"service-id":"33737156-ff09-4b3d-884a-fe9a372afa4e","service-description":"vLB","resource-version":"1500729866"}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml new file mode 100644 index 00000000..bdff43c3 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml @@ -0,0 +1,37 @@ +open_cli_schema_version: 1.0 +name: service-type-list +description: List the service types configured in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: service-type-id + description: Onap cloud service + scope: short + type: string + - name: service-type + description: Onap cloud service + scope: short + type: string + - name: resource-version + description: Onap cloud service resource version + scope: short + type: string +http: + request: + uri: /aai/v8/service-design-and-creation/services + method: GET + success_codes: + - 200 + result_map: + service-type: $b{service.[*].service-description} + service-type-id: $b{service.[*].service-id} + resource-version: $b{service.[*].resource-version} + sample_response: + body: '{"service":[{"service-id":"db3403eb-5c94-4295-bb00-a9dba8964ab3","service-description":"vFW","resource-version":"1500729865"},{"service-id":"33737156-ff09-4b3d-884a-fe9a372afa4e","service-description":"vLB","resource-version":"1500729866"}]}' diff --git a/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml new file mode 100644 index 00000000..1ed61eca --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml @@ -0,0 +1,52 @@ +open_cli_schema_version: 1.0 +name: subscription-create +description: Create a subscription of a customer for given service in specific cloud region in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: cloud-name + description: Onap cloud name + type: string + short_option: z + long_option: cloud-name + is_optional: false + - name: cloud-region + description: Onap cloud region + type: string + short_option: r + long_option: cloud-region + is_optional: false + - name: cloud-tenant-id + description: Onap cloud tenant id + type: string + short_option: c + long_option: cloud-tenant-id + is_optional: false + - name: service-type + description: Onap service type + type: string + short_option: e + long_option: service-type + is_optional: false + +http: + request: + uri: /aai/v11/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} + method: PUT + body: '{"relationship-list":{"relationship":[{"related-to":"tenant","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"${cloud-name}"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"${cloud-region}"},{"relationship-key":"tenant.tenant-id","relationship-value":"${cloud-tenant-id}"}]}]},"service-type":"${service-type}"}' + success_codes: + - 200 + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml new file mode 100644 index 00000000..a45f8cfd --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml @@ -0,0 +1,63 @@ +open_cli_schema_version: 1.0 +name: subscription-create +description: Create a subscription for a customer in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: subscriber-name + description: Onap subscriber name + type: string + short_option: y + long_option: subscriber-name + is_optional: false + - name: cloud-type + description: Onap cloud type (openstack, rackspace) + type: string + short_option: z + long_option: cloud-type + is_optional: false + - name: cloud-region + description: Onap cloud region + type: string + short_option: r + long_option: cloud-region + is_optional: false + - name: cloud-tenant-id + description: Onap cloud tenant id + type: string + short_option: c + long_option: cloud-tenant-id + is_optional: false + - name: service-type + description: Onap service type + type: string + short_option: e + long_option: service-type + is_optional: false + - name: resource-version + description: Onap subscription resource version. It is mandatory for existing customer to create a new subscription + type: string + short_option: g + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v8/business/customers/customer/${customer-name} + method: PUT + body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA", "resource-version":"${resource-version}", "service-subscriptions":{"service-subscription":[{"relationship-list":{"relationship":[{"related-to":"tenant","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"${cloud-type}"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"${cloud-region}"},{"relationship-key":"tenant.tenant-id","relationship-value":"${cloud-tenant-id}"}]}]},"service-type":"${service-type}"}]}}}' + success_codes: + - 200 + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml new file mode 100644 index 00000000..18e83fdd --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml @@ -0,0 +1,39 @@ +open_cli_schema_version: 1.0 +name: subscription-delete +description: Delete the subscription for a given customer in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + - name: service-type + description: Onap subscribtion id + type: string + short_option: y + long_option: service-type + is_optional: false + - name: resource-version + description: Onap subscription resource version + type: string + short_option: g + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v11//business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 + + + diff --git a/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml new file mode 100644 index 00000000..a14d2da2 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml @@ -0,0 +1,60 @@ +open_cli_schema_version: 1.0 +name: subscription-list +description: Lists the subscription for a given customer in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + +results: + direction: landscape + attributes: + - name: service-type + description: Onap service type + scope: short + type: string + - name: resource-version + description: Onap subscription resource version + scope: short + type: string + - name: tenant + description: Onap tenant name + scope: long + type: string + - name: region + description: Onap region name + scope: long + type: string + - name: cloud + description: Onap cloud name + scope: long + type: string +http: + request: + uri: /aai/v11/business/customers/customer/${customer-name}/service-subscriptions + method: GET + success_codes: + - 200 + result_map: + service-type: $b{$.service-subscription.[*].service-type} + resource-version: $b{$.service-subscription.[*].resource-version} + tenant: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'tenant.tenant-id')].relationship-value} + region: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-region-id')].relationship-value} + cloud: $b{service-subscription.[*].relationship-list.relationship.[*].relationship-data.[?(@.relationship-key == 'cloud-region.cloud-owner')].relationship-value} + + sample_response: + body: '{"service-subscription":[{"service-type":"vTest","resource-version":"1504091375183","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/26ab7af6-96cc-4c4e-814a-e533af4ef9f6","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"att-aic"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"AAIAIC25"},{"relationship-key":"tenant.tenant-id","relationship-value":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"test"}]}]}}]}' + + + + diff --git a/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml new file mode 100644 index 00000000..634c5cb2 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml @@ -0,0 +1,40 @@ +open_cli_schema_version: 1.0 +name: subscription-list +description: Lists the subscription for a given customer in Onap +version: onap-1.0 +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: customer-name + description: Onap customer name + type: string + short_option: x + long_option: customer-name + is_optional: false + +results: + direction: landscape + attributes: + - name: service-type + description: Onap service type + scope: short + type: string + +http: + request: + uri: /aai/v8/business/customers/customer/${customer-name} + method: GET + success_codes: + - 200 + result_map: + service-type: $b{$.service-subscriptions.service-subscription.[*].service-type} + sample_response: + body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}' + + + + diff --git a/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml new file mode 100644 index 00000000..9bc22853 --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml @@ -0,0 +1,46 @@ +open_cli_schema_version: 1.0 +name: tenant-create +description: Create a tenant under given cloud region in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud + description: Onap cloud + type: string + short_option: x + long_option: cloud + is_optional: false + - name: region + description: Onap cloud region + type: string + short_option: y + long_option: region + is_optional: false + - name: tenant-id + description: Onap cloud tenant id + type: string + short_option: z + long_option: tenant-id + is_optional: false + - name: tenant-name + description: Onap cloud tenant name + type: string + short_option: r + long_option: tenant-name + is_optional: false + +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id} + method: PUT + body: '{"tenant-id": "${tenant-id}", "tenant-name": "${tenant-name}"}' + success_codes: + - 200 + - 201 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml new file mode 100644 index 00000000..ece1bd5c --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml @@ -0,0 +1,43 @@ +open_cli_schema_version: 1.0 +name: tenant-delete +description: Delete tenant under given cloud region in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud + description: Onap cloud + type: string + short_option: x + long_option: cloud + is_optional: false + - name: region + description: Onap cloud region + type: string + short_option: y + long_option: region + is_optional: false + - name: tenant-id + description: Onap cloud tenant id + type: string + short_option: z + long_option: tenant-id + is_optional: false + - name: resource-version + description: Onap cloud tenant version + type: uuid + short_option: r + long_option: resource-version + is_optional: true + +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id}?resource-version=${resource-version} + method: DELETE + success_codes: + - 204 + - 404 diff --git a/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml new file mode 100644 index 00000000..46f470da --- /dev/null +++ b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml @@ -0,0 +1,55 @@ +open_cli_schema_version: 1.0 +name: tenant-list +description: Lists the tenants under given cloud region in Onap +version: onap-1.1 +service: + name: aai + version: v11 + auth: basic + mode: direct + +parameters: + - name: cloud + description: Onap cloud + type: string + short_option: x + long_option: cloud + is_optional: false + - name: region + description: Onap cloud region + type: string + short_option: y + long_option: region + is_optional: false + +results: + direction: landscape + attributes: + - name: tenant-id + description: Onap tenant-id + scope: short + type: string + - name: tenant-name + description: Onap tenant name + scope: short + type: string + - name: resource-version + description: Onap tenant resource version + scope: short + type: string +http: + request: + uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants + method: GET + success_codes: + - 200 + result_map: + tenant-id: $b{$.tenant.[*].tenant-id} + tenant-name: $b{$.tenant.[*].tenant-name} + resource-version: $b{$.tenant.[*].resource-version} + sample_response: + body: '{"tenant":[{"tenant-id":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6","tenant-name":"test","resource-version":"1504091074807","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/vTest","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"customer-2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vTest"}]}]}}]}' + + + + diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml b/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml deleted file mode 100644 index cb17ff12..00000000 --- a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml +++ /dev/null @@ -1,31 +0,0 @@ -open_cli_schema_version: 1.0 - -name: basic-login - -description: ONAP basic login auth command - -version: onap-1.1 - -type: auth - -service: - name: onap - version: v1 - -results: - direction: portrait - attributes: - - name: Authorization - description: Authorization - scope: short - type: string - - name: X-TransactionId - description: X-TransactionId - scope: short - type: string - default_value: req-$s{uuid} - - name: X-FromAppId - description: X-FromAppId - scope: short - type: string - default_value: ONAP CLI diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml b/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml deleted file mode 100644 index ca07dca2..00000000 --- a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml +++ /dev/null @@ -1,36 +0,0 @@ -open_cli_schema_version: 1.0 - -name: sdc-basic-login - -description: ONAP basic login auth command - -version: onap-1.1 - -type: auth - -service: - name: onap - version: v1 - -results: - direction: portrait - attributes: - - name: Authorization - description: Authorization - scope: short - type: string - - name: X-TransactionId - description: X-TransactionId - scope: short - type: string - default_value: req-$s{uuid} - - name: X-FromAppId - description: X-FromAppId - scope: short - type: string - default_value: ONAP CLI - - name: USER_ID - description: USER_ID for sdc - scope: short - type: string - default_value: ${host-username} \ No newline at end of file diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml b/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml deleted file mode 100644 index 46a4bea7..00000000 --- a/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml +++ /dev/null @@ -1,13 +0,0 @@ -open_cli_schema_version: 1.0 - -name: basic-logout - -description: ONAP basic logout auth command - -version: onap-1.1 - -type: auth - -service: - name: onap - version: v1 diff --git a/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml new file mode 100644 index 00000000..cb17ff12 --- /dev/null +++ b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 + +name: basic-login + +description: ONAP basic login auth command + +version: onap-1.1 + +type: auth + +service: + name: onap + version: v1 + +results: + direction: portrait + attributes: + - name: Authorization + description: Authorization + scope: short + type: string + - name: X-TransactionId + description: X-TransactionId + scope: short + type: string + default_value: req-$s{uuid} + - name: X-FromAppId + description: X-FromAppId + scope: short + type: string + default_value: ONAP CLI diff --git a/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml new file mode 100644 index 00000000..ca07dca2 --- /dev/null +++ b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml @@ -0,0 +1,36 @@ +open_cli_schema_version: 1.0 + +name: sdc-basic-login + +description: ONAP basic login auth command + +version: onap-1.1 + +type: auth + +service: + name: onap + version: v1 + +results: + direction: portrait + attributes: + - name: Authorization + description: Authorization + scope: short + type: string + - name: X-TransactionId + description: X-TransactionId + scope: short + type: string + default_value: req-$s{uuid} + - name: X-FromAppId + description: X-FromAppId + scope: short + type: string + default_value: ONAP CLI + - name: USER_ID + description: USER_ID for sdc + scope: short + type: string + default_value: ${host-username} \ No newline at end of file diff --git a/plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml b/plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml new file mode 100644 index 00000000..46a4bea7 --- /dev/null +++ b/plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml @@ -0,0 +1,13 @@ +open_cli_schema_version: 1.0 + +name: basic-logout + +description: ONAP basic logout auth command + +version: onap-1.1 + +type: auth + +service: + name: onap + version: v1 diff --git a/plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml b/plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml deleted file mode 100644 index a23e6b22..00000000 --- a/plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml +++ /dev/null @@ -1,54 +0,0 @@ -open_cli_schema_version: 1.0 - -name: catalog - -description: ONAP catalog command to find the base path for service. - -version: onap-1.1 - -type: catalog - -service: - auth: none - name: msb - version: v1 - mode: direct - -parameters: - - name: catalog-service-name - type: string - description: service name registered in catalog service - short_option: l - long_option: catalog-service-name - is_optional: false - - name: catalog-service-version - type: string - description: service version registered in catalog service - short_option: i - long_option: catalog-service-version - is_optional: false -results: - direction: portrait - attributes: - - name: catalog-service-host-url - description: Service connection url - scope: short - type: string - default_value: ${host-url} - - name: catalog-service-base-path - description: service base path, to append with host-url for connecting the service. - scope: short - type: string - default_value: / -http: - request: - uri: /services/${catalog-service-name}/version/${catalog-service-version} - method: GET - success_codes: - - 201 - - 200 - result_map: - catalog-service-base-path: $b{$.url} - catalog-service-host-url: ${host-url} - sample_response: - body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' diff --git a/plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml b/plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml new file mode 100644 index 00000000..a23e6b22 --- /dev/null +++ b/plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml @@ -0,0 +1,54 @@ +open_cli_schema_version: 1.0 + +name: catalog + +description: ONAP catalog command to find the base path for service. + +version: onap-1.1 + +type: catalog + +service: + auth: none + name: msb + version: v1 + mode: direct + +parameters: + - name: catalog-service-name + type: string + description: service name registered in catalog service + short_option: l + long_option: catalog-service-name + is_optional: false + - name: catalog-service-version + type: string + description: service version registered in catalog service + short_option: i + long_option: catalog-service-version + is_optional: false +results: + direction: portrait + attributes: + - name: catalog-service-host-url + description: Service connection url + scope: short + type: string + default_value: ${host-url} + - name: catalog-service-base-path + description: service base path, to append with host-url for connecting the service. + scope: short + type: string + default_value: / +http: + request: + uri: /services/${catalog-service-name}/version/${catalog-service-version} + method: GET + success_codes: + - 201 + - 200 + result_map: + catalog-service-base-path: $b{$.url} + catalog-service-host-url: ${host-url} + sample_response: + body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml b/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml deleted file mode 100644 index 79afd2c7..00000000 --- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml +++ /dev/null @@ -1,104 +0,0 @@ -open_cli_schema_version: 1.0 -name: microservice-create -description: Register microservice into Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none - -parameters: - - name: service-name - description: Onap service name - type: string - short_option: x - long_option: service-name - is_optional: false - - name: service-version - description: Onap service version - type: string - short_option: y - long_option: service-version - is_optional: false - - name: service-url - description: Onap service base url - type: url - short_option: r - long_option: service-url - is_optional: false - - name: enable-ssl - description: Onap service is enabled with https or not - type: string - short_option: b - long_option: enable-ssl - is_optional: true - default: false - - name: path - description: Onap service path - type: string - short_option: c - long_option: path - is_optional: true - - name: node-ip - description: Onap service running node IP - type: string - - name: node-port - description: Onap service running node port - type: string - - name: create-or-update - description: Onap service create or update - type: bool - default_value: true -results: - direction: portrait - attributes: - - name: name - description: Onap service name - scope: short - type: string - - name: version - description: Onap service version - scope: short - type: string - - name: url - description: Onap service base url - scope: short - type: url - - name: status - description: Onap service status - scope: short - type: digit - - name: nodes - description: Onap service running nodes - scope: long - type: string - - name: enable-ssl - description: Onap service is enabled with https or not - scope: long - type: string - - name: path - description: Onap service path - scope: long - type: string -http: - request: - uri: /services - method: POST - body: '{"serviceName":"${service-name}","version":"${service-version}","path":"${path}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}' - headers: - queries: - createOrUpdate: ${create-or-update} - success_codes: - - 201 - - 200 - result_map: - name: $b{$.serviceName} - version: $b{$.version} - url: $b{$.url} - status: $b{$.status} - enable-ssl: $b{$.enable_ssl} - path: $b{$.path} - nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} - - sample_response: - body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml b/plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml deleted file mode 100644 index 82eabf95..00000000 --- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml +++ /dev/null @@ -1,46 +0,0 @@ -open_cli_schema_version: 1.0 -name: microservice-delete -description: Deletes the micro service from Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none - -parameters: - - name: service-name - description: Onap service name - type: string - short_option: x - long_option: service-name - is_optional: false - - name: service-version - description: Onap service version - type: string - short_option: y - long_option: service-version - is_optional: false - - name: node-ip - description: Onap service running node IP - type: string - short_option: i - long_option: node-ip - is_optional: false - - name: node-port - description: Onap service running node port - type: string - short_option: r - long_option: node-port - is_optional: false -http: - request: - uri: /services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port} - method: DELETE - success_codes: - - 201 - - 200 - - 204 - - 500 - - - diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml b/plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml deleted file mode 100644 index 52014c9b..00000000 --- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml +++ /dev/null @@ -1,60 +0,0 @@ -open_cli_schema_version: 1.0 -name: microservice-list -description: Lists the registetred micro services in Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none -results: - direction: landscape - attributes: - - name: name - description: Onap service name - scope: short - type: string - - name: version - description: Onap service version - scope: short - type: string - - name: url - description: Onap service base url - scope: short - type: url - - name: status - description: Onap service status - scope: short - type: digit - - name: nodes - description: Onap service running nodes - scope: long - type: json - - name: enable-ssl - description: Onap service is enabled with https or not - scope: long - type: string - - name: path - description: Onap service path - scope: long - type: string -http: - request: - uri: /services - method: GET - success_codes: - - 201 - - 200 - result_map: - name: $b{$.[*].serviceName} - version: $b{$.[*].version} - url: $b{$.[*].url} - status: $b{$.[*].status} - enable-ssl: $b{$.[*].enable_ssl} - path: $b{$.[*].path} - nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port} - sample_response: - body: '[{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}]' - - - - diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml b/plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml deleted file mode 100644 index a9e1cced..00000000 --- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml +++ /dev/null @@ -1,73 +0,0 @@ -open_cli_schema_version: 1.0 -name: microservice-show -description: Details the registered microservice in Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none -parameters: - - name: service-name - description: Onap service name - type: string - short_option: x - long_option: service-name - is_optional: false - - name: service-version - description: Onap service version - type: string - short_option: y - long_option: service-version - is_optional: false -results: - direction: portrait - attributes: - - name: name - description: Onap service name - scope: short - type: string - - name: version - description: Onap service version - scope: short - type: string - - name: url - description: Onap service base url - scope: short - type: url - - name: status - description: Onap service status - scope: short - type: digit - - name: nodes - description: Onap service running nodes - scope: long - type: json - - name: enable-ssl - description: Onap service is enabled with https or not - scope: long - type: string - - name: path - description: Onap service path - scope: long - type: string -http: - request: - uri: /services/${service-name}/version/${service-version} - method: GET - success_codes: - - 201 - - 200 - result_map: - name: $b{$.serviceName} - version: $b{$.version} - url: $b{$.url} - status: $b{$.status} - enable-ssl: $b{$.enable_ssl} - path: $b{$.path} - nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} - sample_response: - body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' - - - - diff --git a/plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml new file mode 100644 index 00000000..79afd2c7 --- /dev/null +++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml @@ -0,0 +1,104 @@ +open_cli_schema_version: 1.0 +name: microservice-create +description: Register microservice into Onap +version: onap-1.1 +service: + name: msb + version: v1 + auth: none + +parameters: + - name: service-name + description: Onap service name + type: string + short_option: x + long_option: service-name + is_optional: false + - name: service-version + description: Onap service version + type: string + short_option: y + long_option: service-version + is_optional: false + - name: service-url + description: Onap service base url + type: url + short_option: r + long_option: service-url + is_optional: false + - name: enable-ssl + description: Onap service is enabled with https or not + type: string + short_option: b + long_option: enable-ssl + is_optional: true + default: false + - name: path + description: Onap service path + type: string + short_option: c + long_option: path + is_optional: true + - name: node-ip + description: Onap service running node IP + type: string + - name: node-port + description: Onap service running node port + type: string + - name: create-or-update + description: Onap service create or update + type: bool + default_value: true +results: + direction: portrait + attributes: + - name: name + description: Onap service name + scope: short + type: string + - name: version + description: Onap service version + scope: short + type: string + - name: url + description: Onap service base url + scope: short + type: url + - name: status + description: Onap service status + scope: short + type: digit + - name: nodes + description: Onap service running nodes + scope: long + type: string + - name: enable-ssl + description: Onap service is enabled with https or not + scope: long + type: string + - name: path + description: Onap service path + scope: long + type: string +http: + request: + uri: /services + method: POST + body: '{"serviceName":"${service-name}","version":"${service-version}","path":"${path}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}' + headers: + queries: + createOrUpdate: ${create-or-update} + success_codes: + - 201 + - 200 + result_map: + name: $b{$.serviceName} + version: $b{$.version} + url: $b{$.url} + status: $b{$.status} + enable-ssl: $b{$.enable_ssl} + path: $b{$.path} + nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} + + sample_response: + body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' diff --git a/plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml new file mode 100644 index 00000000..82eabf95 --- /dev/null +++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml @@ -0,0 +1,46 @@ +open_cli_schema_version: 1.0 +name: microservice-delete +description: Deletes the micro service from Onap +version: onap-1.1 +service: + name: msb + version: v1 + auth: none + +parameters: + - name: service-name + description: Onap service name + type: string + short_option: x + long_option: service-name + is_optional: false + - name: service-version + description: Onap service version + type: string + short_option: y + long_option: service-version + is_optional: false + - name: node-ip + description: Onap service running node IP + type: string + short_option: i + long_option: node-ip + is_optional: false + - name: node-port + description: Onap service running node port + type: string + short_option: r + long_option: node-port + is_optional: false +http: + request: + uri: /services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port} + method: DELETE + success_codes: + - 201 + - 200 + - 204 + - 500 + + + diff --git a/plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml new file mode 100644 index 00000000..52014c9b --- /dev/null +++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml @@ -0,0 +1,60 @@ +open_cli_schema_version: 1.0 +name: microservice-list +description: Lists the registetred micro services in Onap +version: onap-1.1 +service: + name: msb + version: v1 + auth: none +results: + direction: landscape + attributes: + - name: name + description: Onap service name + scope: short + type: string + - name: version + description: Onap service version + scope: short + type: string + - name: url + description: Onap service base url + scope: short + type: url + - name: status + description: Onap service status + scope: short + type: digit + - name: nodes + description: Onap service running nodes + scope: long + type: json + - name: enable-ssl + description: Onap service is enabled with https or not + scope: long + type: string + - name: path + description: Onap service path + scope: long + type: string +http: + request: + uri: /services + method: GET + success_codes: + - 201 + - 200 + result_map: + name: $b{$.[*].serviceName} + version: $b{$.[*].version} + url: $b{$.[*].url} + status: $b{$.[*].status} + enable-ssl: $b{$.[*].enable_ssl} + path: $b{$.[*].path} + nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port} + sample_response: + body: '[{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}]' + + + + diff --git a/plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml new file mode 100644 index 00000000..a9e1cced --- /dev/null +++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml @@ -0,0 +1,73 @@ +open_cli_schema_version: 1.0 +name: microservice-show +description: Details the registered microservice in Onap +version: onap-1.1 +service: + name: msb + version: v1 + auth: none +parameters: + - name: service-name + description: Onap service name + type: string + short_option: x + long_option: service-name + is_optional: false + - name: service-version + description: Onap service version + type: string + short_option: y + long_option: service-version + is_optional: false +results: + direction: portrait + attributes: + - name: name + description: Onap service name + scope: short + type: string + - name: version + description: Onap service version + scope: short + type: string + - name: url + description: Onap service base url + scope: short + type: url + - name: status + description: Onap service status + scope: short + type: digit + - name: nodes + description: Onap service running nodes + scope: long + type: json + - name: enable-ssl + description: Onap service is enabled with https or not + scope: long + type: string + - name: path + description: Onap service path + scope: long + type: string +http: + request: + uri: /services/${service-name}/version/${service-version} + method: GET + success_codes: + - 201 + - 200 + result_map: + name: $b{$.serviceName} + version: $b{$.version} + url: $b{$.url} + status: $b{$.status} + enable-ssl: $b{$.enable_ssl} + path: $b{$.path} + nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port} + sample_response: + body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}' + + + + diff --git a/plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml b/plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml deleted file mode 100644 index 64144d37..00000000 --- a/plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml +++ /dev/null @@ -1,43 +0,0 @@ -open_cli_schema_version: 1.0 - -name: hello-world-http - -description: First cmd hello world using http runing under lighttpd in cli at http://:8080/version.json - -version: sample-1.0 - -service: - name: sample-service - version: 1.0.0 - auth: none - mode: direct - -parameters: - - name: name - description: name of the person - long_option: name - short_option: b - default_value: ${DEMO_NAME} - type: string - is_optional: false - -results: - direction: landscape - attributes: - - name: output - description: hello world output - type: string - scope: short - -http: - request: - uri: /version.json - method: GET - success_codes: - - 200 - - 201 - result_map: - output: Hello ${name}, You are running on $b{$.name} $b{$.version} - - sample_response: - body: {"name": "oclip", "version": "1.0"} \ No newline at end of file diff --git a/plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml b/plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml deleted file mode 100644 index 9a2c6b67..00000000 --- a/plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml +++ /dev/null @@ -1,31 +0,0 @@ -open_cli_schema_version: 1.0 - -name: hello-world - -description: First cmd hello world - -version: sample-1.0 - -service: - name: sample-service - version: 1.0.0 - auth: none - mode: direct - -parameters: - - name: name - description: name of the person - long_option: name - short_option: b - default_value: ${DEMO_NAME} - type: string - is_optional: false - -results: - direction: landscape - attributes: - - name: output - description: hello world output - type: string - scope: short - diff --git a/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml b/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml new file mode 100644 index 00000000..64144d37 --- /dev/null +++ b/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml @@ -0,0 +1,43 @@ +open_cli_schema_version: 1.0 + +name: hello-world-http + +description: First cmd hello world using http runing under lighttpd in cli at http://:8080/version.json + +version: sample-1.0 + +service: + name: sample-service + version: 1.0.0 + auth: none + mode: direct + +parameters: + - name: name + description: name of the person + long_option: name + short_option: b + default_value: ${DEMO_NAME} + type: string + is_optional: false + +results: + direction: landscape + attributes: + - name: output + description: hello world output + type: string + scope: short + +http: + request: + uri: /version.json + method: GET + success_codes: + - 200 + - 201 + result_map: + output: Hello ${name}, You are running on $b{$.name} $b{$.version} + + sample_response: + body: {"name": "oclip", "version": "1.0"} \ No newline at end of file diff --git a/plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml b/plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml new file mode 100644 index 00000000..9a2c6b67 --- /dev/null +++ b/plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 + +name: hello-world + +description: First cmd hello world + +version: sample-1.0 + +service: + name: sample-service + version: 1.0.0 + auth: none + mode: direct + +parameters: + - name: name + description: name of the person + long_option: name + short_option: b + default_value: ${DEMO_NAME} + type: string + is_optional: false + +results: + direction: landscape + attributes: + - name: output + description: hello world output + type: string + scope: short + diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml deleted file mode 100644 index 4522b41d..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml +++ /dev/null @@ -1,27 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-checkin -description: Checkin Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -parameters: - - name: vsp-id - description: Onap VSP ID - type: string - short_option: x - long_option: vsp-id - is_optional: false -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions - method: PUT - body: '{"action": "Checkin"}' - success_codes: - - 201 - - 200 - sample_response: - body: '' diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml deleted file mode 100644 index d790ce55..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml +++ /dev/null @@ -1,28 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-checkout -description: Checkout Vendor Software Product -version: onap-1.1 - -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -parameters: - - name: vsp-id - description: Onap VSP ID - type: string - short_option: x - long_option: vsp-id - is_optional: false -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions - method: PUT - body: '{"action": "Checkout"}' - success_codes: - - 201 - - 200 - sample_response: - body: '' diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml deleted file mode 100644 index 4ce83d4b..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml +++ /dev/null @@ -1,86 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-create -description: Create Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -parameters: - - name: vsp-name - description: Onap VSP Name - type: string - short_option: x - long_option: vsp-name - is_optional: false - - name: vsp-description - description: Description for VSP - type: string - short_option: y - long_option: vsp-description - is_optional: true - - name: vsp-category - description: Category of the VSP - type: string - short_option: b - long_option: vsp-category - is_optional: true - default_value: resourceNewCategory.generic - - name: vsp-subcategory - description: Sub Category of VSP - type: string - short_option: c - long_option: vsp-subcategory - is_optional: true - default_value: resourceNewCategory.generic.abstract - - name: vlm-version - description: License version - type: string - short_option: e - long_option: vlm-version - is_optional: true - default_value: 1.0 - - name: vlm-vendor - description: License Model Name - type: string - short_option: g - long_option: vlm-vendor - is_optional: false - - name: vlm-id - description: License Model ID - type: string - short_option: i - long_option: vlm-id - is_optional: false - - name: vlm-agreement-id - description: License Agreement ID - type: string - short_option: j - long_option: vlm-agreement-id - is_optional: false - - name: vlm-feature-group-id - description: Feature Group ID - type: string - short_option: k - long_option: vlm-feature-group-id - is_optional: false -results: - direction: portrait - attributes: - - name: ID - description: VSP ID - scope: short - type: string -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products - method: POST - body: '{"name": "${vsp-name}", "description": "${vsp-description}", "category": "${vsp-category}", "subCategory": "${vsp-subcategory}", "licensingVersion": "${vlm-version}", "vendorName": "${vlm-vendor}", "vendorId": "${vlm-id}", "icon": "icon", "licensingData": { "licenseAgreement": "${vlm-agreement-id}", "featureGroups": [ "${vlm-feature-group-id}" ]}}' - success_codes: - - 200 - result_map: - ID: $b{$.vspId} - sample_response: - body: '{"vspId":"2DEB6CB4B082415BB7A697C9CD1273BA"}' diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml deleted file mode 100644 index f171b442..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml +++ /dev/null @@ -1,32 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-list -description: List of the Vendor Software Products -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -results: - direction: landscape - attributes: - - name: ID - description: VSP ID - scope: short - type: string - - name: name - description: VSP Name - scope: short - type: string -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products - method: GET - success_codes: - - 200 - result_map: - name: $b{results.[*].name} - ID: $b{results.[*].id} - sample_response: - body: '{"results":[{"name":"test-vsp1","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"354BF3E32E494EAFBB15037CFAB262FF","version":"0.1","viewableVersions":["0.1"],"status":"Locked","lockingUser":"cs0008"},{"name":"test-vsp","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"2DEB6CB4B082415BB7A697C9CD1273BA","version":"1.0","viewableVersions":["1.0"],"finalVersions":["1.0"],"status":"Final"}],"listCount":2}' diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml deleted file mode 100644 index 47cc462e..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml +++ /dev/null @@ -1,45 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-show -description: Details of the Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -parameters: - - name: vsp-id - description: Onap VSP ID - type: string - short_option: x - long_option: vsp-id - is_optional: false - -results: - direction: landscape - attributes: - - name: name - description: VSP Name - scope: short - type: string - - name: ID - description: VSP ID - scope: short - type: string - - name: description - description: Description for the VSP - scope: short - type: string -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id} - method: GET - success_codes: - - 200 - result_map: - name: $b{$.name} - ID: $b{$.id} - description: $b{$.description} - sample_response: - body: '{"name":"test-vsp1","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"354BF3E32E494EAFBB15037CFAB262FF","version":"0.1","viewableVersions":["0.1"],"status":"Locked","lockingUser":"cs0008"}' diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml deleted file mode 100644 index d5f1733f..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml +++ /dev/null @@ -1,27 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-submit -description: Submit Vendor Software Product -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -parameters: - - name: vsp-id - description: Onap VSP ID - type: string - short_option: x - long_option: vsp-id - is_optional: false -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions - method: PUT - body: '{"action": "Submit"}' - success_codes: - - 201 - - 200 - sample_response: - body: '' diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml deleted file mode 100644 index 28d8c0a5..00000000 --- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml +++ /dev/null @@ -1,33 +0,0 @@ -open_cli_schema_version: 1.0 -name: vsp-upload -description: Upload the CSAR file to VSP -version: onap-1.0 -service: - name: sdc - version: v1.0 - auth: basic - mode: direct - -parameters: - - name: vsp-id - description: Onap VSP ID - type: string - short_option: x - long_option: vsp-id - is_optional: false - - name: vsp-file - description: CSAR File path - type: binary - short_option: y - long_option: vsp-file - is_optional: false -http: - request: - uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/upload - method: POST - body: ${vsp-file} - multipart_entity_name: upload - success_codes: - - 200 - sample_response: - body: '' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml new file mode 100644 index 00000000..4522b41d --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml @@ -0,0 +1,27 @@ +open_cli_schema_version: 1.0 +name: vsp-checkin +description: Checkin Vendor Software Product +version: onap-1.0 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions + method: PUT + body: '{"action": "Checkin"}' + success_codes: + - 201 + - 200 + sample_response: + body: '' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml new file mode 100644 index 00000000..d790ce55 --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml @@ -0,0 +1,28 @@ +open_cli_schema_version: 1.0 +name: vsp-checkout +description: Checkout Vendor Software Product +version: onap-1.1 + +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions + method: PUT + body: '{"action": "Checkout"}' + success_codes: + - 201 + - 200 + sample_response: + body: '' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml new file mode 100644 index 00000000..4ce83d4b --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml @@ -0,0 +1,86 @@ +open_cli_schema_version: 1.0 +name: vsp-create +description: Create Vendor Software Product +version: onap-1.0 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vsp-name + description: Onap VSP Name + type: string + short_option: x + long_option: vsp-name + is_optional: false + - name: vsp-description + description: Description for VSP + type: string + short_option: y + long_option: vsp-description + is_optional: true + - name: vsp-category + description: Category of the VSP + type: string + short_option: b + long_option: vsp-category + is_optional: true + default_value: resourceNewCategory.generic + - name: vsp-subcategory + description: Sub Category of VSP + type: string + short_option: c + long_option: vsp-subcategory + is_optional: true + default_value: resourceNewCategory.generic.abstract + - name: vlm-version + description: License version + type: string + short_option: e + long_option: vlm-version + is_optional: true + default_value: 1.0 + - name: vlm-vendor + description: License Model Name + type: string + short_option: g + long_option: vlm-vendor + is_optional: false + - name: vlm-id + description: License Model ID + type: string + short_option: i + long_option: vlm-id + is_optional: false + - name: vlm-agreement-id + description: License Agreement ID + type: string + short_option: j + long_option: vlm-agreement-id + is_optional: false + - name: vlm-feature-group-id + description: Feature Group ID + type: string + short_option: k + long_option: vlm-feature-group-id + is_optional: false +results: + direction: portrait + attributes: + - name: ID + description: VSP ID + scope: short + type: string +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products + method: POST + body: '{"name": "${vsp-name}", "description": "${vsp-description}", "category": "${vsp-category}", "subCategory": "${vsp-subcategory}", "licensingVersion": "${vlm-version}", "vendorName": "${vlm-vendor}", "vendorId": "${vlm-id}", "icon": "icon", "licensingData": { "licenseAgreement": "${vlm-agreement-id}", "featureGroups": [ "${vlm-feature-group-id}" ]}}' + success_codes: + - 200 + result_map: + ID: $b{$.vspId} + sample_response: + body: '{"vspId":"2DEB6CB4B082415BB7A697C9CD1273BA"}' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml new file mode 100644 index 00000000..f171b442 --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml @@ -0,0 +1,32 @@ +open_cli_schema_version: 1.0 +name: vsp-list +description: List of the Vendor Software Products +version: onap-1.0 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: ID + description: VSP ID + scope: short + type: string + - name: name + description: VSP Name + scope: short + type: string +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products + method: GET + success_codes: + - 200 + result_map: + name: $b{results.[*].name} + ID: $b{results.[*].id} + sample_response: + body: '{"results":[{"name":"test-vsp1","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"354BF3E32E494EAFBB15037CFAB262FF","version":"0.1","viewableVersions":["0.1"],"status":"Locked","lockingUser":"cs0008"},{"name":"test-vsp","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"2DEB6CB4B082415BB7A697C9CD1273BA","version":"1.0","viewableVersions":["1.0"],"finalVersions":["1.0"],"status":"Final"}],"listCount":2}' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml new file mode 100644 index 00000000..47cc462e --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml @@ -0,0 +1,45 @@ +open_cli_schema_version: 1.0 +name: vsp-show +description: Details of the Vendor Software Product +version: onap-1.0 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false + +results: + direction: landscape + attributes: + - name: name + description: VSP Name + scope: short + type: string + - name: ID + description: VSP ID + scope: short + type: string + - name: description + description: Description for the VSP + scope: short + type: string +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id} + method: GET + success_codes: + - 200 + result_map: + name: $b{$.name} + ID: $b{$.id} + description: $b{$.description} + sample_response: + body: '{"name":"test-vsp1","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"354BF3E32E494EAFBB15037CFAB262FF","version":"0.1","viewableVersions":["0.1"],"status":"Locked","lockingUser":"cs0008"}' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml new file mode 100644 index 00000000..d5f1733f --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml @@ -0,0 +1,27 @@ +open_cli_schema_version: 1.0 +name: vsp-submit +description: Submit Vendor Software Product +version: onap-1.0 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/actions + method: PUT + body: '{"action": "Submit"}' + success_codes: + - 201 + - 200 + sample_response: + body: '' diff --git a/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml new file mode 100644 index 00000000..28d8c0a5 --- /dev/null +++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml @@ -0,0 +1,33 @@ +open_cli_schema_version: 1.0 +name: vsp-upload +description: Upload the CSAR file to VSP +version: onap-1.0 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vsp-id + description: Onap VSP ID + type: string + short_option: x + long_option: vsp-id + is_optional: false + - name: vsp-file + description: CSAR File path + type: binary + short_option: y + long_option: vsp-file + is_optional: false +http: + request: + uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/upload + method: POST + body: ${vsp-file} + multipart_entity_name: upload + success_codes: + - 200 + sample_response: + body: '' diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml b/plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml deleted file mode 100644 index 96b7e036..00000000 --- a/plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml +++ /dev/null @@ -1,93 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-create -description: Create a service instance using MSO -version: onap-1.1 -service: - name: so - version: v3 - auth: basic - mode: direct - -parameters: - - name: cloud-region - description: cloud region identifier - type: string - short_option: l - long_option: cloud-region - is_optional: false - - name: tenant-id - description: tenant id - type: string - short_option: b - long_option: tenant-id - is_optional: false - - name: model-invariant-id - description: model invariant id generated by ASDC. - type: string - short_option: e - long_option: model-invariant-id - is_optional: false - - name: model-uuid - description: model uuid generated by ASDC. - type: string - short_option: g - long_option: model-uuid - is_optional: false - - name: model-name - description: model name as provided in ASDC design time. - type: string - short_option: i - long_option: model-name - is_optional: false - - name: model-version - description: model-version - type: string - short_option: j - long_option: model-version - is_optional: false - - name: customer - description: unique id for customer - type: string - short_option: c - long_option: customer - is_optional: false - - name: instance-name - description: service instance name - type: string - short_option: k - long_option: instance-name - is_optional: false - - name: supress-rollback - description: rollback changes if instantiation fails. - type: bool - short_option: r - long_option: supress-rollback - is_optional: true - - name: service-type - description: subscription service type - type: string - short_option: w - long_option: service-type - is_optional: false - -results: - direction: portrait - attributes: - - name: service-id - description: instance id for the created service. - type: string - scope: short - - -http: - request: - uri: /ecomp/mso/infra/serviceInstances/v3 - method: POST - body: '{"requestDetails": {"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelNameVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"subscriberInfo": {"globalSubscriberId": "${customer}"},"requestInfo": {"instanceName": "${instance-name}","source": "VID","suppressRollback": "${supress-rollback}"},"requestParameters": {"subscriptionServiceType": "${service-type}"}}}' - - success_codes: - - 202 - result_map: - service-id: $b{$.requestReferences.instanceId} - sample_response: - body: '{"requestReferences":{"instanceId":"${instance-id}","requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"}}' diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml b/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml deleted file mode 100644 index 7ae110ed..00000000 --- a/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml +++ /dev/null @@ -1,68 +0,0 @@ -open_cli_schema_version: 1.0 -name: service-delete -description: Delete service instance (experimental) -version: onap-1.1 -service: - name: so - version: v3 - auth: basic - mode: direct - -parameters: - - name: service-id - description: unique id for service instance - type: string - short_option: x - long_option: service-instace-id - is_optional: false - - name: model-invariant-id - description: model invariant id for service in SDC catalog - type: string - short_option: b - long_option: model-invariant-id - is_optional: false - - name: model-uuid - description: model uuid for service in SDC catalog - type: string - short_option: i - long_option: model-uuid - is_optional: false - - name: model-name - description: model name available in SDC catalog - type: string - short_option: e - long_option: model-name - is_optional: false - - name: model-version - description: model version of service (eg. 1.0) - type: string - short_option: g - long_option: model-version - is_optional: false - - name: customer-name - description: unique id for customer - type: string - short_option: c - long_option: customer-name - is_optional: false - - name: cloud-region - description: cloud region id - type: string - short_option: j - long_option: cloud-region - is_optional: false - - name: tenant-id - description: tenant id - type: string - short_option: k - long_option: tenant-id - is_optional: false - -http: - request: - uri: /ecomp/mso/infra/serviceInstances/v3/${service-id} - method: DELETE - body: '{"requestDetails": {"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"subscriberInfo": {"globalSubscriberId": "${customer-name}"},"requestInfo": {"source": "VID"}}}' - - success_codes: - - 202 \ No newline at end of file diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml b/plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml deleted file mode 100644 index 37754087..00000000 --- a/plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml +++ /dev/null @@ -1,68 +0,0 @@ -open_cli_schema_version: 1.0 -name: vfmodule-delete -description: delete a VF module (experimental) -version: onap-1.1 -service: - name: so - version: v3 - auth: basic - mode: direct - -parameters: - - name: vfmodule-id - description: VF module Id - type: string - short_option: x - long_option: vfmodule-id - is_optional: false - - name: service-id - description: unique id for service - type: string - short_option: j - long_option: service-id - is_optional: false - - name: vf-id - description: unique id for related VF - type: string - short_option: y - long_option: vf-id - is_optional: false - - name: vf-model-invariant-id - description: vf model invariant id - type: string - short_option: k - long_option: vf-model-invariant-id - is_optional: false - - name: vfmodule-name - description: vfmodule model name - type: string - short_option: e - long_option: vfmodule-name - is_optional: false - - name: vfmodule-version - description: vf module version - type: string - short_option: g - long_option: vfmodule-version - is_optional: false - - name: cloud-region - description: cloud region identifier - type: string - short_option: l - long_option: cloud-region - is_optional: false - - name: tenant-id - description: openstack tenant id - type: string - long_option: tenant-id - short_option: z - is_optional: false - -http: - request: - uri: /ecomp/mso/infra/serviceInstances/v3/${service-id}/vnfs/${vf-id}/vfModules/${vfmodule-id} - method: DELETE - body: '{"requestDetails":{"modelInfo":{"modelType":"vfModule","modelInvariantId":"${vf-model-invariant-id}","modelName":"${vfmodule-name}","modelVersion":"${vfmodule-version}"},"cloudConfiguration":{"lcpCloudRegionId":"${cloud-region}","tenantId":"${tenant-id}"},"requestInfo":{"source":"VID"}}}' - - success_codes: - - 202 \ No newline at end of file diff --git a/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml new file mode 100644 index 00000000..96b7e036 --- /dev/null +++ b/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml @@ -0,0 +1,93 @@ +open_cli_schema_version: 1.0 +name: service-create +description: Create a service instance using MSO +version: onap-1.1 +service: + name: so + version: v3 + auth: basic + mode: direct + +parameters: + - name: cloud-region + description: cloud region identifier + type: string + short_option: l + long_option: cloud-region + is_optional: false + - name: tenant-id + description: tenant id + type: string + short_option: b + long_option: tenant-id + is_optional: false + - name: model-invariant-id + description: model invariant id generated by ASDC. + type: string + short_option: e + long_option: model-invariant-id + is_optional: false + - name: model-uuid + description: model uuid generated by ASDC. + type: string + short_option: g + long_option: model-uuid + is_optional: false + - name: model-name + description: model name as provided in ASDC design time. + type: string + short_option: i + long_option: model-name + is_optional: false + - name: model-version + description: model-version + type: string + short_option: j + long_option: model-version + is_optional: false + - name: customer + description: unique id for customer + type: string + short_option: c + long_option: customer + is_optional: false + - name: instance-name + description: service instance name + type: string + short_option: k + long_option: instance-name + is_optional: false + - name: supress-rollback + description: rollback changes if instantiation fails. + type: bool + short_option: r + long_option: supress-rollback + is_optional: true + - name: service-type + description: subscription service type + type: string + short_option: w + long_option: service-type + is_optional: false + +results: + direction: portrait + attributes: + - name: service-id + description: instance id for the created service. + type: string + scope: short + + +http: + request: + uri: /ecomp/mso/infra/serviceInstances/v3 + method: POST + body: '{"requestDetails": {"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelNameVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"subscriberInfo": {"globalSubscriberId": "${customer}"},"requestInfo": {"instanceName": "${instance-name}","source": "VID","suppressRollback": "${supress-rollback}"},"requestParameters": {"subscriptionServiceType": "${service-type}"}}}' + + success_codes: + - 202 + result_map: + service-id: $b{$.requestReferences.instanceId} + sample_response: + body: '{"requestReferences":{"instanceId":"${instance-id}","requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"}}' diff --git a/plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml new file mode 100644 index 00000000..7ae110ed --- /dev/null +++ b/plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml @@ -0,0 +1,68 @@ +open_cli_schema_version: 1.0 +name: service-delete +description: Delete service instance (experimental) +version: onap-1.1 +service: + name: so + version: v3 + auth: basic + mode: direct + +parameters: + - name: service-id + description: unique id for service instance + type: string + short_option: x + long_option: service-instace-id + is_optional: false + - name: model-invariant-id + description: model invariant id for service in SDC catalog + type: string + short_option: b + long_option: model-invariant-id + is_optional: false + - name: model-uuid + description: model uuid for service in SDC catalog + type: string + short_option: i + long_option: model-uuid + is_optional: false + - name: model-name + description: model name available in SDC catalog + type: string + short_option: e + long_option: model-name + is_optional: false + - name: model-version + description: model version of service (eg. 1.0) + type: string + short_option: g + long_option: model-version + is_optional: false + - name: customer-name + description: unique id for customer + type: string + short_option: c + long_option: customer-name + is_optional: false + - name: cloud-region + description: cloud region id + type: string + short_option: j + long_option: cloud-region + is_optional: false + - name: tenant-id + description: tenant id + type: string + short_option: k + long_option: tenant-id + is_optional: false + +http: + request: + uri: /ecomp/mso/infra/serviceInstances/v3/${service-id} + method: DELETE + body: '{"requestDetails": {"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"subscriberInfo": {"globalSubscriberId": "${customer-name}"},"requestInfo": {"source": "VID"}}}' + + success_codes: + - 202 \ No newline at end of file diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml new file mode 100644 index 00000000..170ba845 --- /dev/null +++ b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml @@ -0,0 +1,74 @@ +open_cli_schema_version: 1.0 +name: vf-module-create +description: Create a VF Module +version: onap-1.1 +service: + name: mso + version: v2 + auth: basic + mode: direct + +parameters: + - name: lcp-cloudregion-id + description: AIC LCP node location identifier + type: string + short_option: l + long_option: lcp-cloudregion-id + is_optional: false + - name: tenant-id + description: openstack tenant id (uuid) + type: string + short_option: w + long_option: tenant-id + is_optional: false + - name: vnf-instance-id + description: vnf instance id + type: string + short_option: y + long_option: vnf-instace-id + is_optional: false + - name: service-instance-id + description: unique id for service instance + type: string + short_option: x + long_option: service-instace-id + is_optional: false + - name: parenet-service-model + description: parent service model name + type: string + short_option: z + long_option: parenet-service-model + is_optional: false + - name: supress-rollback + description: rollback changes if instantiation fails. + type: bool + short_option: r + long_option: supress-rollback + is_optional: true + - name: instance-name + description: service instance name + type: string + short_option: i + long_option: instance-name + is_optional: false + +results: + direction: portrait + attribute: + - name: vf-instance-id + description: id for the created vf + type: string + scope: short + +http: + request: + uri: ecomp/mso/infra/serviceInstances/v2/${service-instance-id}/vnfs/${vnf-instance-id}/vfModules + method: PUT + body: '{"requestDetails":{"modelInfo":{"modelType":"vfModule","modelInvariantId":"ff5256d2-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6478e5-ea33-3346-ac12-ab121484a3fe","modelName":"vSAMP12..base..module-0","modelVersion":"1"},"cloudConfiguration":{"lcpCloudRegionId":"${lcp-cloudregion-id}","tenantId":"${tenant-id}"},"requestInfo":{"instanceName":"${instance-name}","source":"VID","suppressRollback":"${supress-rollback}"},"relatedInstanceList":[{"relatedInstance":{"instanceId":"${service-instance-id}","modelInfo":{"modelType":"service","modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"${parenet-service-model}","modelVersion":"1.0"}}},{"relatedInstance":{"instanceId":"${vnf-instance-id}","modelInfo":{"modelType":"vnf","modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"vSAMP12","modelVersion":"1.0","modelCustomizationName":"vSAMP12 1"}}}],"requestParameters":{"userParams":[]}}}' + + success_codes: + - 202 + result_mpa: + vf-instance-id: $b{$.vfInstanceId} + sample_response: + body: '{"vfInstanceId":"234567AB"}' diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml new file mode 100644 index 00000000..37754087 --- /dev/null +++ b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml @@ -0,0 +1,68 @@ +open_cli_schema_version: 1.0 +name: vfmodule-delete +description: delete a VF module (experimental) +version: onap-1.1 +service: + name: so + version: v3 + auth: basic + mode: direct + +parameters: + - name: vfmodule-id + description: VF module Id + type: string + short_option: x + long_option: vfmodule-id + is_optional: false + - name: service-id + description: unique id for service + type: string + short_option: j + long_option: service-id + is_optional: false + - name: vf-id + description: unique id for related VF + type: string + short_option: y + long_option: vf-id + is_optional: false + - name: vf-model-invariant-id + description: vf model invariant id + type: string + short_option: k + long_option: vf-model-invariant-id + is_optional: false + - name: vfmodule-name + description: vfmodule model name + type: string + short_option: e + long_option: vfmodule-name + is_optional: false + - name: vfmodule-version + description: vf module version + type: string + short_option: g + long_option: vfmodule-version + is_optional: false + - name: cloud-region + description: cloud region identifier + type: string + short_option: l + long_option: cloud-region + is_optional: false + - name: tenant-id + description: openstack tenant id + type: string + long_option: tenant-id + short_option: z + is_optional: false + +http: + request: + uri: /ecomp/mso/infra/serviceInstances/v3/${service-id}/vnfs/${vf-id}/vfModules/${vfmodule-id} + method: DELETE + body: '{"requestDetails":{"modelInfo":{"modelType":"vfModule","modelInvariantId":"${vf-model-invariant-id}","modelName":"${vfmodule-name}","modelVersion":"${vfmodule-version}"},"cloudConfiguration":{"lcpCloudRegionId":"${cloud-region}","tenantId":"${tenant-id}"},"requestInfo":{"source":"VID"}}}' + + success_codes: + - 202 \ No newline at end of file diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml new file mode 100644 index 00000000..899be1bb --- /dev/null +++ b/plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml @@ -0,0 +1,74 @@ +open_cli_schema_version: 1.0 +name: vnf-create +description: Create a VNF +version: onap-1.1 +service: + name: mso + version: v2 + auth: basic + mode: direct + +parameters: + - name: lcp-cloudregion-id + description: AIC LCP node location identifier + type: string + short_option: l + long_option: lcp-cloudregion-id + is_optional: false + - name: tenant-id + description: openstack tenant id (uuid) + type: string + short_option: z + long_option: tenant-id + is_optional: false + - name: product-family-id + description: UUID for product family (named service id in AAI) + type: string + short_option: w + long_option: product-family-id + is_optional: false + - name: instance-name + description: service instance name + type: string + short_option: i + long_option: instance-name + is_optional: false + - name: supress-rollback + description: rollback changes if instantiation fails. + type: bool + short_option: r + long_option: supress-rollback + is_optional: true + - name: service-instance-id + description: unique id for service instance + type: string + short_option: y + long_option: service-instance-id + is_optional: false + - name: parenet-service-model + description: parent service model name + type: string + short_option: x + long_option: parenet-service-model + is_optional: false + +results: + direction: portrait + attribute: + - name: vnf-instance-id + description: id for the created vnf + type: string + scope: short + +http: + request: + uri: ecomp/mso/infra/serviceInstances/v2/${service-instance-id}/vnfs + method: PUT + body: '{"requestDetails":{"modelInfo":{"modelType":"vnf","modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"vSAMP12","modelVersion":"1.0","modelCustomizationName":"vSAMP12 1"},"cloudConfiguration":{"lcpCloudRegionId": "${lcp-cloudregion-id}","tenantId":"${tenant-id}"},"requestInfo":{"instanceName":"${instance-name}","productFamilyId":"${product-family-id}","source":"VID","suppressRollback":"${supress-rollback}"},"relatedInstanceList":[{"relatedInstance":{"instanceId":"${service-instance-id}","modelInfo":{"modelType":"service","modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"${parenet-service-model}","modelVersion":"1.0"}}}],"requestParameters":{}}}' + + success_codes: + - 202 + result_mpa: + vnf-instance-id: $b{$.vnfInstanceId} + sample_response: + body: '{"vnfInstanceId":"234567AB"}' diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml new file mode 100644 index 00000000..08134f88 --- /dev/null +++ b/plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml @@ -0,0 +1,44 @@ +open_cli_schema_version: 1.0 +name: vnf-delete +description: delete a VNF +version: onap-1.1 +service: + name: mso + version: v2 + auth: basic + mode: direct + +parameters: + - name: vnf-instance-id + description: id for vnf + type: string + short_option: x + long_option: vnf-instace-id + is_optional: false + - name: service-instance-id + description: unique id for service instance + type: string + short_option: y + long_option: service-instace-id + is_optional: false + - name: lcp-cloudregion-id + description: AIC LCP node location identifier + type: string + short_option: l + long_option: lcp-cloudregion-id + is_optional: false + - name: tenant-id + description: openstack tenant id (uuid) + type: string + short_option: z + long_option: tenant-id + is_optional: false + +http: + request: + uri: ecomp/mso/infra/serviceInstances/v2/${service-instance-id}/vnfs + method: DELETE + body: '{"requestDetails":{"modelInfo":{"modelType":"vnf","modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff","modelName":"vSAMP12","modelVersion":"1"},"cloudConfiguration":{"lcpCloudRegionId":"mdt1","tenantId":"88a6ca3ee0394ade9403f075db23167e"},"requestInfo":{"source":"VID"},"requestParameters":{"userParams":[]}}}' + + success_codes: + - 202 \ No newline at end of file -- cgit 1.2.3-korg