a7ea76b70057fecac97f2928896fb8204ab1111d
[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-dublin
21   service: sdc
22   author: ONAP HPA Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: service-uniqueId
27     description: service UniqueId
28     type: string
29     long_option: service-uniqueId
30     short_option: x
31     is_optional: false
32   - name: resource-uuid
33     description: resource uuid
34     type: string
35     long_option: resource-uuid
36     short_option: y
37     is_optional: false
38   - name: resource-uniqueId
39     description: resource UniqueId
40     type: string
41     long_option: resource-uniqueId
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 http:
57   service:
58     name: sdc
59     version: v1.0
60     auth: basic
61     mode: direct
62   request:
63     uri: /sdc2/rest/v1/catalog/services/${service-uniqueId}/resourceInstance/${resource-uniqueId}/properties
64     method: POST
65     body: '[{"constraints":null,"defaultValue":null,"description":null,"name":"${property-name}","parentUniqueId":null,"password":false,"required":false,"schema":{"property":{}},"schemaType":null,"type":"string","uniqueId":"${resource-uuid}.${property-name}","value":"${property-value}","definition":false,"getInputValues":null,"parentPropertyType":null,"subPropertyInputPath":null,"toscaPresentation":{"ownerId":null},"getPolicyValues":null,"inputPath":null}]'
66   success_codes:
67     - 200