diff options
author | 2017-08-07 08:28:13 +0530 | |
---|---|---|
committer | 2017-08-26 00:02:33 +0530 | |
commit | a7a64477c28b433ba05afbe65155450d6ae3cba8 (patch) | |
tree | 103e4301b0831fe81193b65971ed66ebbd56828d /plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml | |
parent | 42ad121a52d01dd203c529f2ba7753f82d45ec21 (diff) |
Add VSP lifecycle commands
Change-Id: Ibdc78b3ab1921c160f8ee193fcd47be0c75f94a9
Issue-ID: CLI-16
Signed-off-by: Bharath T<bharath.thiruveedula@verizon.com>
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml')
-rw-r--r-- | plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml | 79 |
1 files changed, 79 insertions, 0 deletions
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 new file mode 100644 index 00000000..6f460884 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml @@ -0,0 +1,79 @@ +onap_cmd_schema_version: 1.0 +name: vsp-create +description: Create Vendor Software Product + +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: vsp-license-version + description: License version + type: string + long_option: vsp-license-version + is_optional: true + default_value: 1.0 + - name: vsp-vendor-name + description: License Model Name + type: string + long_option: vsp-vendor-name + is_optional: false + - name: vsp-vendor-id + description: License Model ID + type: string + long_option: vsp-vendor-id + is_optional: false + - name: license-agreement-id + description: License Agreement ID + type: string + long_option: license-agreement-id + is_optional: false + - name: feature-group-id + description: Feature Group ID + type: string + long_option: 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": "${vsp-license-version}", "vendorName": "${vsp-vendor-name}", "vendorId": "${vsp-vendor-id}", "icon": "icon", "licensingData": { "licenseAgreement": "${license-agreement-id}", "featureGroups": [ "${feature-group-id}" ]}}' + success_codes: + - 200 + result_map: + ID: $b{$.vspId} + sample_response: + body: '{"vspId":"2DEB6CB4B082415BB7A697C9CD1273BA"}' |