summaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml
blob: bdc775637bbf635c205ba1bb9c4d8004500cee30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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
    long_option: vsp-category
    is_optional: true
    default_value: resourceNewCategory.generic
  - name: vsp-subcategory
    description: Sub Category of VSP
    type: string
    long_option: vsp-subcategory
    is_optional: true
    default_value: resourceNewCategory.generic.abstract
  - name: vlm-version
    description: License version
    type: string
    long_option: vlm-version
    is_optional: true
    default_value: 1.0
  - name: vlm-vendor
    description: License Model Name
    type: string
    long_option: vlm-vendor
    is_optional: false
  - name: vlm-id
    description: License Model ID
    type: string
    long_option: vlm-id
    is_optional: false
  - name: vlm-agreement-id
    description: License Agreement ID
    type: string
    long_option: vlm-agreement-id
    is_optional: false
  - name: vlm-feature-group-id
    description: Feature Group ID
    type: string
    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"}'