4ce335296121cc75861b0e7674c035d52cb625ee
[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-checkout
17 description: Checkout VF model in SDC
18
19 info:
20   product: onap-elalto
21   service: sdc.catalog
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: vf-id
27     description: VF model ID
28     type: string
29     long_option: vf-id
30     short_option: b
31     is_optional: false
32
33 results:
34   direction: portrait
35   attributes:
36     - name: id
37       description: VF checked out version unique ID
38       scope: short
39       type: string
40     - name: version
41       description: VF version
42       scope: short
43       type: string
44
45 http:
46   service:
47     name: sdc
48     version: v1.0
49     auth: basic
50     mode: direct
51   request:
52     uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKOUT
53     method: POST
54     body: '{}'
55   success_codes:
56     - 200
57   result_map:
58     id: $b{$.uniqueId}
59     version: $b{$.version}