diff options
Diffstat (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-schema')
10 files changed, 649 insertions, 0 deletions
diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml new file mode 100644 index 00000000..f12d0af7 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-ns-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-catalog-delete-ns +description: vfc delete onboard ns from catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages/${ns-csar-uuid} + method: DELETE + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + job-id: $b{$.jobId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml new file mode 100644 index 00000000..406ece6c --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-delete-vnf-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-catalog-delete-vnf +description: vfc delete onboard vnf to catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: vnf-csar-uuid + description: vnf's uuid of csar file + type: string + short_option: c + long_option: vnf-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid} + method: DELETE + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + job-id: $b{$.jobId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml new file mode 100644 index 00000000..71737261 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-schema.yaml @@ -0,0 +1,81 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-catalog-get-ns +description: vfc get onboard ns status + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: nsd-invariant-id + description: nsd-invariant-id + scope: short + type: string + - name: ns-package-id + description: ns-package-id + scope: short + type: string + - name: nsd-provider + description: nsd-provider + scope: short + type: string + - name: nsd-id + description: nsd-id + scope: short + type: string + - name: download-url + description: download-url + scope: long + type: string + - name: csar-name + description: csar-name + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages/${ns-csar-uuid} + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + nsd-id: $b{$.packageInfo.nsdId} + ns-package-id: $b{$.packageInfo.nsPackageId} + nsd-provider: $b{$.packageInfo.nsdProvider} + nsd-invariant-id: $b{$.packageInfo.nsdInvariantId} + download-url: $b{$.packageInfo.downloadUrl} + csar-name: $b{$.packageInfo.csarName} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml new file mode 100644 index 00000000..2727b52f --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-vnf-schema.yaml @@ -0,0 +1,81 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-catalog-get-vnf +description: vfc get onboard vnf status + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: vnf-csar-uuid + description: vnf's uuid of csar file + type: string + short_option: c + long_option: vnf-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: vnfd-id + description: vnfd-id + scope: short + type: string + - name: vnf-package-id + description: vnf-package-id + scope: short + type: string + - name: vnfd-provider + description: vnfd-provider + scope: short + type: string + - name: vnfd-version + description: vnfd-version + scope: short + type: string + - name: vnf-version + description: vnf-version + scope: short + type: string + - name: csar-name + description: csar-name + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid} + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + vnfd-id: $b{$.packageInfo.vnfdId} + vnf-package-id: $b{$.packageInfo.vnfPackageId} + vnfd-provider: $b{$.packageInfo.vnfdProvider} + vnfd-version: $b{$.packageInfo.vnfdVersion} + vnf-version: $b{$.packageInfo.vnfVersion} + csar-name: $b{$.packageInfo.csarName} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml new file mode 100644 index 00000000..11b027db --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-ns-schema.yaml @@ -0,0 +1,61 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-catalog-onboard-ns +description: vfc onboard ns to catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: status + description: status + scope: short + type: string + - name: status-desc + description: status-desc + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/nspackages + method: POST + context: + remove_empty_node: true + body: '{"csarId": "${ns-csar-uuid}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 202 + result_map: + status: $b{$.status} + status-desc: $b{$.statusDescription} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml new file mode 100644 index 00000000..d7cdfdc6 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-onboard-vnf-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-catalog-onboard-vnf +description: vfc onboard vnf to catalog of vfc + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: vnf-csar-uuid + description: vnf's uuid of csar file + type: string + short_option: c + long_option: vnf-csar-uuid + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/catalog/v1/vnfpackages + method: POST + context: + remove_empty_node: true + body: '{"csarId": "${vnf-csar-uuid}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 202 + result_map: + job-id: $b{$.jobId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml new file mode 100644 index 00000000..0577d30f --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml @@ -0,0 +1,62 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-nslcm-create +description: vfc nslcm create ns + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + - name: ns-csar-name + description: ns's name of csar + type: string + short_option: n + long_option: ns-csar-name + is_optional: false + +results: + direction: landscape + attributes: + - name: ns-instance-id + description: ns-instance-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/nslcm/v1/ns + method: POST + context: + remove_empty_node: true + body: '{"csarId": "${ns-csar-uuid}", "nsName": "${ns-csar-name}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 201 + result_map: + ns-instance-id: $b{$.nsInstanceId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml new file mode 100644 index 00000000..4850e070 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-delete-schema.yaml @@ -0,0 +1,56 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-nslcm-delete +description: vfc nslcm delete ns + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-instance-id + description: ns's instance id + type: string + short_option: c + long_option: ns-instance-id + is_optional: false + +results: + direction: landscape + attributes: + - name: status + description: status + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/nslcm/v1/ns/${ns-instance-id} + method: DELETE + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 204 + result_map: + status: ${success_codes} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml new file mode 100644 index 00000000..2983d185 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml @@ -0,0 +1,71 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-nslcm-get +description: vfc nsclm get the status of creating ns + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-instance-id + description: ns's instance id + type: string + short_option: c + long_option: ns-instance-id + is_optional: false + +results: + direction: landscape + attributes: + - name: ns-instance-id + description: ns-instance-id + scope: short + type: string + - name: ns-name + description: ns-name + scope: short + type: string + - name: description + description: description + scope: short + type: string + - name: nsd-id + description: nsd-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/nslcm/v1/ns/${ns-instance-id} + method: GET + context: + remove_empty_node: true + body: '{}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + ns-instance-id: $b{$.nsInstanceId} + ns-name: $b{$.nsName} + description: $b{$.description} + nsd-id: $b{$.nsdId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml new file mode 100644 index 00000000..5db338f7 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-instantiate-schema.yaml @@ -0,0 +1,69 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vfc-nslcm-instantiate +description: vfc nslcm instantiate ns + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-instance-id + description: ns's instance id + type: string + short_option: i + long_option: ns-instance-id + is_optional: false + - name: location-constraints + description: localtion constraints + type: json + short_option: c + long_option: location-constraints + is_optional: false + - name: sdn-controller-id + description: sdn controller id + type: string + short_option: n + long_option: sdn-controller-id + is_optional: false + +results: + direction: landscape + attributes: + - name: job-id + description: job id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/nslcm/v1/ns/${ns-instance-id}/instantiate + method: POST + context: + remove_empty_node: true + body: '{"additionalParamForNs": {"sdnControllerId": "${sdn-controller-id}"}, + "locationConstraints": "${location-constraints}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 200 + result_map: + job-id: $b{$.jobId} |