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
27 description: Service Unique Id
29 long_option: service-id
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
51 - name: artifact-label
52 description: Artifact Label
54 long_option: artifact-label
56 default_value: artifactLabel
58 - name: artifact-group-type
59 description: Upload Artifact Group Type
61 long_option: artifact-group-type
63 default_value: INFORMATIONAL
66 description: Designer user id
79 uri: /sdc2/rest/v1/catalog/services/${service-id}/artifacts
82 Content-MD5: $s{md5:__body__}
84 body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-label}","artifactGroupType":"${artifact-group-type}", artifactChecksum="$s{md5:artifact}"}'