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-set-property
17 description: Set property to a service model
22 author: ONAP HPA Team onap-discuss@lists.onap.org
27 description: service UniqueId
29 long_option: service-id
32 - name: vf-resource-id
33 description: resource id provided by service ns_id.vf_id.vf_name
35 long_option: vf-resource-id
39 description: resource id
45 description: property name
47 long_option: property-name
50 - name: property-value
51 description: property value
53 long_option: property-value
57 description: VF Model Input uuid
59 long_option: input-uuid
69 uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance/${vf-resource-id}/inputs
71 body: '[{"constraints":[],"definition":false,"name":"${property-name}","parentUniqueId":"${input-uuid}","password":false,"required":false,"schema":{"property":{}},"toscaPresentation":{"ownerId":"${input-uuid}"},"type":"string","uniqueId":"${input-uuid}.${property-name}","value":"${property-value}"}]'