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: vf-model-add-artifact
17 description: Add a artifact to a Virtual function
22 author: ONAP HPA Team onap-discuss@lists.onap.org
27 description: VF UniqueId
33 description: certification remarks
37 default_value: Uploaded from ONAP CLI
40 description: VNF CSAR file
46 description: VNF CSAR name
48 long_option: artifact-name
52 description: Designer user id
65 uri: /sdc2/rest/v1/catalog/resources/${vf-id}/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":"DEPLOYMENT", artifactChecksum="$s{md5:artifact}"}'