f46bebdea3d6606be5369bfec3bc8b6e4fe69c46
[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: cloud-create
17 description: Create a cloud region in Onap
18
19 info:
20   product: onap-dublin
21   service: aai
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: cloud-name
27     description: Onap cloud name
28     type: string
29     short_option: x
30     long_option: cloud-name
31     is_optional: false
32   - name: region-name
33     description: Onap  region name
34     type: string
35     short_option: y
36     long_option:  region-name
37     is_optional: false
38
39 http:
40   service:
41     auth: basic
42     mode: direct
43   request:
44     uri: /aai/v13/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}
45     method: PUT
46     body: '{"sriov-automation": false, "cloud-region-id": "${region-name}", "cloud-owner": "${cloud-name}", "new-attribute-for-demo": "blah", "number-attribute-for-demo": 1 }'
47   success_codes:
48     - 201