Fix vsp-show commands with proper url
[cli.git] / plugins / sdc / src / main / resources / onap-cli-schema / vsp / vsp-show-schema-1.1.yaml
1 open_cli_schema_version: 1.0
2 name: vsp-show
3 description: Details of the Vendor Software Product
4 version: onap-1.1
5 service:
6   name: sdc
7   version: v1.0
8   auth: basic
9   mode: direct
10
11 parameters:
12   - name: vsp-id
13     description: Onap VSP ID
14     type: string
15     short_option: x
16     long_option: vsp-id
17     is_optional: false
18   - name: vsp-version
19     description: Onap VSP version
20     type: string
21     short_option: y
22     long_option: vsp-version
23     is_optional: false
24 results:
25   direction: portrait
26   attributes:
27     - name: name
28       description: VSP Name
29       scope: short
30       type: string
31     - name: ID
32       description: VSP ID
33       scope: short
34       type: string
35     - name: description
36       description: Description for the VSP
37       scope: short
38       type: string
39     - name: vendor-name
40       description: Vendor name
41       scope: long
42       type: string
43     - name: vendor-id
44       description: Vendor id
45       scope: long
46       type: string
47     - name: version
48       description: Version
49       scope: short
50       type: string
51     - name: status
52       description: status
53       scope: short
54       type: string
55     - name: license-id
56       description: license aggreement
57       scope: long
58       type: string
59 http:
60   request:
61     uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}
62     method: GET
63   success_codes:
64     - 200
65   result_map:
66     ID: $b{$.id}
67     name: $b{$.name}
68     description: $b{$.description}
69     vendor-name: $b{$.vendorName}
70     vendor-id: $b{$.vendorId}
71     version: $b{$.version.id}
72     status: $b{$.status}
73     license-id: $b{$.licensingData.licenseAgreement}
74   sample_response:
75     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"}'