1 # Copyright 2019 Huawei Technologies Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 open_cli_schema_version: 1.0
16 name: service-model-add-artifact
17 description: Add a artifact to a Service model
22 author: ONAP HPA Team onap-discuss@lists.onap.org
26 - name: service-uniqueId
27 description: Service Unique Id
29 long_option: service-uniqueId
33 description: certification remarks
37 default_value: Uploaded from ONAP CLI
40 description: NS CSAR file
46 description: NS CSAR name
48 long_option: artifact-name
52 description: Designer user id
65 uri: /sdc2/rest/v1/catalog/services/${service-uniqueId}/artifacts
68 Content-MD5: $s{md5:__body__}
70 body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-name}","artifactGroupType":"INFORMATIONAL", artifactChecksum="$s{md5:artifact}"}'