--- /dev/null
+[ {\r
+ "request" : {\r
+ "method" : "get",\r
+ "uri" : "/onboarding-api/v1.0/vendor-software-products",\r
+ "headers" : {\r
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",\r
+ "X-FromAppId" : "ONAP CLI",\r
+ "Accept" : "application/json",\r
+ "USER_ID" : "cs0008",\r
+ "X-TransactionId" : "req-373a1f99-8c3a-43b8-8b27-7d2d75dc60bb",\r
+ "Content-Type" : "application/json"\r
+ },\r
+ "json" : null\r
+ },\r
+ "response" : {\r
+ "status" : 200,\r
+ "json" : {\r
+ "listCount" : 4,\r
+ "results" : [ {\r
+ "name" : "vFW software",\r
+ "description" : "vFW sample vsp",\r
+ "vendorName" : "Huawei IN",\r
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",\r
+ "onboardingMethod" : "Manual",\r
+ "id" : "5223ac6156ce4a5fb3b33ab205f34c6e",\r
+ "owner" : "cs0008",\r
+ "status" : "ACTIVE"\r
+ }, {\r
+ "name" : "test123",\r
+ "description" : "test",\r
+ "vendorName" : "Huawei IN",\r
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",\r
+ "onboardingMethod" : "Manual",\r
+ "id" : "83f9c5d846044f81b3b94e15aaaafb0b",\r
+ "owner" : "cs0008",\r
+ "status" : "ACTIVE"\r
+ }, {\r
+ "name" : "test",\r
+ "description" : "test",\r
+ "vendorName" : "hw",\r
+ "vendorId" : "efd7a4cece974be7ad8d7798b17f9621",\r
+ "onboardingMethod" : "NetworkPackage",\r
+ "id" : "3cf5d987d1d444be8b172b3744bcbe0c",\r
+ "owner" : "cs0008",\r
+ "status" : "ACTIVE"\r
+ }, {\r
+ "name" : "test1",\r
+ "description" : "test",\r
+ "vendorName" : "Huawei IN",\r
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",\r
+ "onboardingMethod" : "Manual",\r
+ "id" : "3ee1964d46834c0eaa4f9909bf40b961",\r
+ "owner" : "cs0008",\r
+ "status" : "ACTIVE"\r
+ } ]\r
+ }\r
+ }\r
+} ]
\ No newline at end of file
--- /dev/null
+open_cli_sample_version: 1.0
+name: vsp-list
+version: onap-casablanca
+samples:
+ sample1:
+ name: vsp-list
+ input: -d
+ moco: vsp-list-schema-casablanca-moco.json
+ output: |
+ +----------------------------------+--------------+----------+--------+
+ |ID |name |version |status |
+ +----------------------------------+--------------+----------+--------+
+ |5223ac6156ce4a5fb3b33ab205f34c6e |vFW software | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
+ |83f9c5d846044f81b3b94e15aaaafb0b |test123 | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
+ |3cf5d987d1d444be8b172b3744bcbe0c |test | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
+ |3ee1964d46834c0eaa4f9909bf40b961 |test1 | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# 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: vsp-list
+description: List of the Vendor Software Products
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: ID
+ description: VSP ID
+ scope: short
+ type: string
+ - name: name
+ description: VSP Name
+ scope: short
+ type: string
+ - name: vendor-name
+ description: Vendor name
+ scope: long
+ type: string
+ - name: version
+ description: Version
+ scope: short
+ type: string
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: license-id
+ description: license aggreement
+ scope: long
+ type: string
+ - name: license-version
+ description: license version
+ scope: long
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{results.[*].id}
+ name: $b{results.[*].name}
+ vendor-name: $b{results.[*].vendorName}
+ version: $b{results.[*].version.id}
+ status: $b{results.[*].status}
+ license-id: $b{results.[*].licensingData.licenseAgreement}
+ license-version: $b{results.[*].licensingVersion.id}