0a32f0ff4735f18dbd36d1269335ab7ed5b52ae9
[vfc/nfvo/resmanagement.git] /
1 /*
2  * Copyright 2016-2017 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.resmanagement.common.constant;
18
19 /**
20  * <br/>
21  * <p>
22  * Constant for REST URL.
23  * </p>
24  *
25  * @author
26  * @version VFC 1.0 2016-3-17
27  */
28 public class UrlConstant {
29
30     /**
31      * networks target.
32      */
33     public static final String LOCATION_TARGET = "location";
34
35     /**
36      * MSB register url.
37      */
38     public static final String REST_MSB_REGISTER = "/api/microservices/v1/services";
39
40     // /api/extsys/v1/vims/%s
41     public static final String ESR_GET_VIM_URL =
42             "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/%s/%s/esr-system-info-list/esr-system-info/%s";
43
44     // /api/extsys/v1/vims
45     public static final String ESR_GET_VIMS_URL =
46             "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/%s/%s/esr-system-info-list";
47
48     /**
49      * send resource info to monitor url
50      */
51     public static final String SEND_MSG_MONITOR = "/api/umc/v1/resinfo";
52
53     /**
54      * networks url.
55      */
56     public static final String LOCATION_URL = "/v1/locations";
57
58     /**
59      * port url.
60      */
61     public static final String PORT_URL = "/v1/ports";
62
63     /**
64      * host url.
65      */
66     public static final String HOST_URL = "/v1/hosts";
67
68     /**
69      * vl url.
70      */
71     public static final String VL_URL = "/v1/vl";
72
73     /**
74      * vnf url.
75      */
76     public static final String VNF_URL = "/v1/vnf";
77
78     /**
79      * ns url
80      */
81     public static final String NS_URL = "/v1/ns";
82
83     /**
84      * vnfinfo url.
85      */
86     public static final String VNFINFO_URL = "/v1/vnfinfo";
87
88     /**
89      * vnfstatus url.
90      */
91     public static final String VNFSTATUS_URL = "/v1/vnfstatus";
92
93     /**
94      * grant resource url.
95      */
96     public static final String GRANTRES_URL = "/v1/resource/grant";
97
98     /**
99      * vm url.
100      */
101     public static final String VM_URL = "/v1/vm";
102
103     /**
104      * sites target.
105      */
106     public static final String SITES_TARGET = "sites";
107
108     /**
109      * sites url.
110      */
111     public static final String SITES_URL = "/v1/datacenters";
112
113     /**
114      * networks target.
115      */
116     public static final String NETWORKS_TARGET = "networks";
117
118     /**
119      * networks url.
120      */
121     public static final String NETWORKS_URL = "/v1/networks";
122
123     /**
124      * updateres.
125      */
126     public static final String MODRES_URL = "/updateres";
127
128     /**
129      * resoperate target.
130      */
131     public static final String RESOPERATE_TARGET = "resoperate";
132
133     /**
134      * APPLICATION_TYPE.
135      */
136     public static final String APPLICATION_TYPE = "application/json";
137
138     /**
139      * ADDRES.
140      */
141     public static final String ADDRES_URL = "/resmgr/vims";
142
143     /**
144      * updatebytenant.
145      */
146     public static final String UPDATE_BY_TENANT = "updatebytenant";
147
148     /**
149      * updatebyvapp.
150      */
151     public static final String UPDATE_BY_VAPP = "updatebyvapp";
152
153     /**
154      * getNetworkURL.
155      */
156     public static final String GET_NETWORK_URL = "/api/multivim/v1/%s/%s/networks";
157
158     /**
159      * getTenantURL.
160      */
161     public static final String GET_TENANT_URL = "/api/multicloud/v0/%s/tenants";
162
163     /**
164      * getHostURL.
165      */
166     public static final String GET_HOST_URL = "/api/multivim/v1/%s/%s/hosts";
167
168     /**
169      * getHostDetailURL.
170      */
171     public static final String GET_HOSTDETAIL_URL = "/api/multivim/v1/%s/%s/hosts/%s";
172
173     /**
174      * getNetworkURL.
175      */
176     public static final String GET_PORT_URL = "/api/multivim/v1/%s/%s/ports";
177
178     /**
179      * getLimitsURL.
180      */
181     public static final String GET_LIMITS_URL = "/api/multicloud/v0/%s/%s/limits";
182
183     /**
184      * template notify M url.
185      */
186     public static final String TEMPLATE_NOTIFY_M_URL = "";
187
188     /**
189      * tenantsite allot url.
190      */
191     public static final String TENANTSITE_ALLOT_URL = "/v1/resmanage/tenantsite/allot";
192
193     /**
194      * tenantsite allot target.
195      */
196     public static final String TENANTSITE_ALLOT_TARGET = "tenantsite/allot";
197
198     /**
199      * tenant url.
200      */
201     public static final String TENANT_URL = "/v1/resmanage/tenant";
202
203     /**
204      * tenant target.
205      */
206     public static final String TENANT_TARGET = "tenant";
207
208     /**
209      * rollback url.
210      */
211     public static final String ROLLBACK_URL = "/v1/resmanage/rollback";
212
213     /**
214      * rollback target.
215      */
216     public static final String ROLLBACK_TARGET = "rollback";
217
218     /**
219      * vms target.
220      */
221     public static final String VIM_TARGET = "vim";
222
223     /**
224      * vms url.
225      */
226     public static final String VIM_URL = "/v1/resmanage/vim";
227
228     /**
229      * https
230      */
231     public static final String GET_HTTPS = "https://";
232
233     /**
234      * get token
235      */
236     public static final String GET_IAM_TOKEN = "/v3/auth/tokens";
237
238     /**
239      * rest.
240      */
241     public static final String REST = "/rest";
242
243     /**
244      * donsdata url.
245      */
246     public static final String INSTALL_URL = "install";
247
248     /**
249      * donsdata url.
250      */
251     public static final String UNINSTALL_URL = "uninstall";
252
253     /**
254      * respool url.
255      */
256     public static final String RESOPERATE_URL = "/v1/resoperate";
257
258     /**
259      * limits url.
260      */
261     public static final String LIMITS_URL = "/v1/limits";
262
263     /**
264      * esr-vnfm url
265      */
266     public static final String ESR_VNFM_URL = "/aai/v11/external-system/esr-vnfm-list/esr-vnfm/";
267
268     /**
269      * generic-vnf url
270      */
271     public static final String GENERIC_VNF_URL = "/aai/v11/network/generic-vnfs/generic-vnf/";
272
273     /**
274      * generic-vnf url
275      */
276     public static final String GENERIC_VNFS_URL = "/aai/v11/network/generic-vnfs";
277
278     /**
279      * customer url
280      */
281     public static final String CUSTOMER_URL = "/aai/v11/business/customers/customer/";
282
283     /**
284      * service-subscription url
285      */
286     public static final String SERVICE_SUBSCRIPTION_URL = "/service-subscriptions/service-subscription/";
287
288     /**
289      * service-instance url
290      */
291     public static final String SERVICE_INSTANCE_URL = "/service-instances/service-instance/";
292
293     /**
294      * cloud-region url
295      */
296     public static final String CLOUD_REGION_URL = "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/";
297
298     /**
299      * tenant url
300      */
301     public static final String CLOUD_TENANT_URL = "/tenants/tenant/";
302
303     /**
304      * vserver url
305      */
306     public static final String VSERVER_URL = "/vservers/vserver/";
307
308     private UrlConstant() {
309         // private constructor
310     }
311
312 }