b7ac626fd5b38ed75170775c584fd8ecb0888f0c
[cli.git] /
1 # Copyright © Intel Corporation 2019
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: vf-model-certify
17 description: Certify a Virtual function
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: vf-id
27     description: VF UniqueId
28     type: string
29     long_option: vf-id
30     short_option: b
31     is_optional: false
32   - name: remarks
33     description: certification remarks
34     type: string
35     long_option: remarks
36     short_option: r
37     is_optional: true
38
39 results:
40   direction: portrait
41   attributes:
42     - name: id
43       description: VF version unique ID
44       scope: short
45       type: string
46     - name: uuid
47       description: VF UUID
48       scope: short
49       type: uuid
50     - name: version
51       description: VF version
52       scope: short
53       type: string
54 http:
55   service:
56     name: sdc
57     version: v1.0
58     auth: basic
59     mode: direct
60   request:
61     uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certify
62     method: POST
63     body: '{"userRemarks":"${remarks}"}'
64   success_codes:
65     - 200
66   result_map:
67     id: $b{$.uniqueId}
68     uuid: $b{$.uuid}
69     version: $b{$.version}