33cd040a370b28b44e1a4459844c118ee05879ed
[cli.git] /
1 # Copyright 2019 Huawei Technologies Co., Ltd.
2 #
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
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 open_cli_schema_version: 1.0
16 name: service-model-set-property
17 description: Set property to a service model
18
19 info:
20   product: onap-elalto
21   service: sdc.catalog
22   author: ONAP HPA Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: service-id
27     description: service UniqueId
28     type: string
29     long_option: service-id
30     short_option: x
31     is_optional: false
32   - name: vf-resource-id
33     description: resource id provided by service ns_id.vf_id.vf_name
34     type: string
35     long_option: vf-resource-id
36     short_option: y
37     is_optional: false
38   - name: vf-id
39     description: resource id
40     type: string
41     long_option: vf-id
42     short_option: z
43     is_optional: false
44   - name: property-name
45     description: property name
46     type: string
47     long_option: property-name
48     short_option: b
49     is_optional: false
50   - name: property-value
51     description: property value
52     type: string
53     long_option: property-value
54     short_option: r
55     is_optional: false
56   - name: input-uuid
57     description: VF Model Input uuid
58     type: string
59     long_option: input-uuid
60     short_option: R
61     is_optional: false
62 http:
63   service:
64     name: sdc
65     version: v1.0
66     auth: basic
67     mode: direct
68   request:
69     uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance/${vf-resource-id}/inputs
70     method: POST
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}"}]'
72   success_codes:
73     - 200