e76f235e4f7bd97c5da01a3da5a044e76af5063c
[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     public static final String ESR_GET_VIM_URL = "/api/extsys/v1/vims/%s";
41
42     public static final String ESR_GET_VIMS_URL = "/api/extsys/v1/vims";
43
44     /**
45      * send resource info to monitor url
46      */
47     public static final String SEND_MSG_MONITOR = "/api/umc/v1/resinfo";
48
49     /**
50      * networks url.
51      */
52     public static final String LOCATION_URL = "/v1/locations";
53
54     /**
55      * port url.
56      */
57     public static final String PORT_URL = "/v1/ports";
58
59     /**
60      * host url.
61      */
62     public static final String HOST_URL = "/v1/hosts";
63
64     /**
65      * vl url.
66      */
67     public static final String VL_URL = "/v1/vl";
68
69     /**
70      * vnf url.
71      */
72     public static final String VNF_URL = "/v1/vnf";
73
74     /**
75      * ns url
76      */
77     public static final String NS_URL = "/v1/ns";
78
79     /**
80      * vnfinfo url.
81      */
82     public static final String VNFINFO_URL = "/v1/vnfinfo";
83
84     /**
85      * vnfstatus url.
86      */
87     public static final String VNFSTATUS_URL = "/v1/vnfstatus";
88
89     /**
90      * grant resource url.
91      */
92     public static final String GRANTRES_URL = "/v1/resource/grant";
93
94     /**
95      * vm url.
96      */
97     public static final String VM_URL = "/v1/vm";
98
99     /**
100      * sites target.
101      */
102     public static final String SITES_TARGET = "sites";
103
104     /**
105      * sites url.
106      */
107     public static final String SITES_URL = "/v1/datacenters";
108
109     /**
110      * networks target.
111      */
112     public static final String NETWORKS_TARGET = "networks";
113
114     /**
115      * networks url.
116      */
117     public static final String NETWORKS_URL = "/v1/networks";
118
119     /**
120      * updateres.
121      */
122     public static final String MODRES_URL = "/updateres";
123
124     /**
125      * resoperate target.
126      */
127     public static final String RESOPERATE_TARGET = "resoperate";
128
129     /**
130      * APPLICATION_TYPE.
131      */
132     public static final String APPLICATION_TYPE = "application/json";
133
134     /**
135      * ADDRES.
136      */
137     public static final String ADDRES_URL = "/resmgr/vims";
138
139     /**
140      * updatebytenant.
141      */
142     public static final String UPDATE_BY_TENANT = "updatebytenant";
143
144     /**
145      * updatebyvapp.
146      */
147     public static final String UPDATE_BY_VAPP = "updatebyvapp";
148
149     /**
150      * getNetworkURL.
151      */
152     public static final String GET_NETWORK_URL = "/api/multivim/v1/%s/%s/networks";
153
154     /**
155      * getTenantURL.
156      */
157     public static final String GET_TENANT_URL = "/api/multivim/v1/%s/tenants";
158
159     /**
160      * getHostURL.
161      */
162     public static final String GET_HOST_URL = "/api/multivim/v1/%s/%s/hosts";
163
164     /**
165      * getHostDetailURL.
166      */
167     public static final String GET_HOSTDETAIL_URL = "/api/multivim/v1/%s/%s/hosts/%s";
168
169     /**
170      * getNetworkURL.
171      */
172     public static final String GET_PORT_URL = "/api/multivim/v1/%s/%s/ports";
173
174     /**
175      * getLimitsURL.
176      */
177     public static final String GET_LIMITS_URL = "/api/multivim/v1/%s/%s/limits";
178
179     /**
180      * template notify M url.
181      */
182     public static final String TEMPLATE_NOTIFY_M_URL = "";
183
184     /**
185      * tenantsite allot url.
186      */
187     public static final String TENANTSITE_ALLOT_URL = "/v1/resmanage/tenantsite/allot";
188
189     /**
190      * tenantsite allot target.
191      */
192     public static final String TENANTSITE_ALLOT_TARGET = "tenantsite/allot";
193
194     /**
195      * tenant url.
196      */
197     public static final String TENANT_URL = "/v1/resmanage/tenant";
198
199     /**
200      * tenant target.
201      */
202     public static final String TENANT_TARGET = "tenant";
203
204     /**
205      * rollback url.
206      */
207     public static final String ROLLBACK_URL = "/v1/resmanage/rollback";
208
209     /**
210      * rollback target.
211      */
212     public static final String ROLLBACK_TARGET = "rollback";
213
214     /**
215      * vms target.
216      */
217     public static final String VIM_TARGET = "vim";
218
219     /**
220      * vms url.
221      */
222     public static final String VIM_URL = "/v1/resmanage/vim";
223
224     /**
225      * https
226      */
227     public static final String GET_HTTPS = "https://";
228
229     /**
230      * get token
231      */
232     public static final String GET_IAM_TOKEN = "/v3/auth/tokens";
233
234     /**
235      * rest.
236      */
237     public static final String REST = "/rest";
238
239     /**
240      * donsdata url.
241      */
242     public static final String INSTALL_URL = "install";
243
244     /**
245      * donsdata url.
246      */
247     public static final String UNINSTALL_URL = "uninstall";
248
249     /**
250      * respool url.
251      */
252     public static final String RESOPERATE_URL = "/v1/resoperate";
253
254     /**
255      * limits url.
256      */
257     public static final String LIMITS_URL = "/v1/limits";
258
259     private UrlConstant() {
260         // private constructor
261     }
262
263 }