1 # Copyright © Intel Corporation 2019
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 open_cli_schema_version: 1.0
17 description: Create a cloud region in Onap
22 author: Intel ONAP HPA integration team (itohan.ukponmwan@intel.com)
27 description: Onap cloud owner
30 long_option: cloud-owner
33 description: Onap region name
36 long_option: region-name
39 description: Cloud type e.g openstack
42 long_option: cloud-type
44 - name: owner-defined-type
45 description: owner defined type
48 long_option: owner-type
50 - name: cloud-region-version
51 description: cloud region version e.g titanium_cloud
54 long_option: cloud-region-version
57 description: Onap complex-name
60 long_option: complex-name
63 description: Onap cloud zone
66 long_option: cloud-zone
69 description: Onap region name
72 long_option: region-name
74 - name: sriov-automation
75 description: sriov automation, default is false
78 long_option: sriov-automation
82 description: Onap identity-url, updated by multicloud if multicloud is used
85 long_option: identity-url
87 - name: esr-system-info-id
88 description: id for esr system (arbitrary UUID e.g 5c85ce1f-aa78-4ebf-8d6f-4b62773e9bc8)
94 description: service-url i.e keystone url for openstack
97 long_option: service-url
100 description: cloud user name
103 long_option: user-name
106 description: cloud password
109 long_option: password
112 description: system type for cloud e.g VIM
115 long_option: system-type
118 description: to use ssl insecure or not, default is true
121 long_option: ssl-insecure
124 description: cloud domain, default is Default
127 long_option: cloud-domain
129 - name: default-tenant
130 description: default cloud tenant to use
133 long_option: default-tenant
135 - name: system-status
136 description: status of the cloud, default is active
139 long_option: system-status
141 - name: cloud-extra-info
142 description: extra info to register cloud , generally string with region id e.g {\"openstack-region-id\":\"region-id\"}, enter as {\\"openstack-region-id\\":\\"ONAP-POD-01-Rail-07\\"} with CLI
145 long_option: extra-info
153 uri: /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${region-name}
156 "cloud-owner": "${cloud-owner}",
157 "cloud-region-id": "${region-name}",
158 "cloud-type": "${cloud-type}",
159 "owner-defined-type": "${owner-defined-type}",
160 "cloud-region-version": "${cloud-region-version}",
161 "complex-name":"${complex-name}",
162 "cloud-zone": "${cloud-zone}",
163 "sriov-automation": "${sriov-automation}",
164 "identity-url": "${identity-url}",
165 "cloud-extra-info":"${cloud-extra-info}",
166 "esr-system-info-list": {
169 "esr-system-info-id":"${esr-system-info-id}",
170 "service-url": "${service-url}",
171 "user-name":"${user-name}",
172 "password":"${password}",
173 "system-type": "${system-type}",
174 "ssl-insecure": "${ssl-insecure}",
175 "cloud-domain":"${cloud-domain}",
176 "default-tenant":"${default-tenant}",
177 "system-status":"${system-status}"