b9a93a117e1ebe292aa850580c33faec225d2025
[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.openo.nfvo.resmanagement.common.constant;
18
19 /**
20  * <br/>
21  * <p>
22  * Constant for REST URL.
23  * </p>
24  *
25  * @author
26  * @version NFVO 0.5 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 = "/openoapi/microservices/v1/services";
39
40     public static final String ESR_GET_VIM_URL = "/openoapi/extsys/v1/vims/%s";
41
42     public static final String ESR_GET_VIMS_URL = "/openoapi/extsys/v1/vims";
43
44     /**
45      * send resource info to monitor url
46      */
47     public static final String SEND_MSG_MONITOR = "/openoapi/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      * vnfinfo url.
76      */
77     public static final String VNFINFO_URL = "/v1/vnfinfo";
78
79     /**
80      * vnfstatus url.
81      */
82     public static final String VNFSTATUS_URL = "/v1/vnfstatus";
83
84     /**
85      * grant resource url.
86      */
87     public static final String GRANTRES_URL = "/v1/resource/grant";
88
89     /**
90      * vm url.
91      */
92     public static final String VM_URL = "/v1/vm";
93
94     /**
95      * sites target.
96      */
97     public static final String SITES_TARGET = "sites";
98
99     /**
100      * sites url.
101      */
102     public static final String SITES_URL = "/v1/datacenters";
103
104     /**
105      * networks target.
106      */
107     public static final String NETWORKS_TARGET = "networks";
108
109     /**
110      * networks url.
111      */
112     public static final String NETWORKS_URL = "/v1/networks";
113
114     /**
115      * updateres.
116      */
117     public static final String MODRES_URL = "/updateres";
118
119     /**
120      * resoperate target.
121      */
122     public static final String RESOPERATE_TARGET = "resoperate";
123
124     /**
125      * APPLICATION_TYPE.
126      */
127     public static final String APPLICATION_TYPE = "application/json";
128
129     /**
130      * ADDRES.
131      */
132     public static final String ADDRES_URL = "/resmgr/vims";
133
134     /**
135      * updatebytenant.
136      */
137     public static final String UPDATE_BY_TENANT = "updatebytenant";
138
139     /**
140      * updatebyvapp.
141      */
142     public static final String UPDATE_BY_VAPP = "updatebyvapp";
143
144     /**
145      * getNetworkURL.
146      */
147     public static final String GET_NETWORK_URL = "/openoapi/multivim/v1/%s/%s/networks";
148
149     /**
150      * getTenantURL.
151      */
152     public static final String GET_TENANT_URL = "/openoapi/multivim/v1/%s/tenants";
153
154     /**
155      * getHostURL.
156      */
157     public static final String GET_HOST_URL = "/openoapi/multivim/v1/%s/%s/hosts";
158
159     /**
160      * getHostDetailURL.
161      */
162     public static final String GET_HOSTDETAIL_URL = "/openoapi/multivim/v1/%s/%s/hosts/%s";
163
164     /**
165      * getNetworkURL.
166      */
167     public static final String GET_PORT_URL = "/openoapi/multivim/v1/%s/%s/ports";
168
169     /**
170      * getLimitsURL.
171      */
172     public static final String GET_LIMITS_URL = "/openoapi/multivim/v1/%s/%s/limits";
173
174     /**
175      * template notify M url.
176      */
177     public static final String TEMPLATE_NOTIFY_M_URL = "";
178
179     /**
180      * tenantsite allot url.
181      */
182     public static final String TENANTSITE_ALLOT_URL = "/v1/resmanage/tenantsite/allot";
183
184     /**
185      * tenantsite allot target.
186      */
187     public static final String TENANTSITE_ALLOT_TARGET = "tenantsite/allot";
188
189     /**
190      * tenant url.
191      */
192     public static final String TENANT_URL = "/v1/resmanage/tenant";
193
194     /**
195      * tenant target.
196      */
197     public static final String TENANT_TARGET = "tenant";
198
199     /**
200      * rollback url.
201      */
202     public static final String ROLLBACK_URL = "/v1/resmanage/rollback";
203
204     /**
205      * rollback target.
206      */
207     public static final String ROLLBACK_TARGET = "rollback";
208
209     /**
210      * vms target.
211      */
212     public static final String VIM_TARGET = "vim";
213
214     /**
215      * vms url.
216      */
217     public static final String VIM_URL = "/v1/resmanage/vim";
218
219     /**
220      * https
221      */
222     public static final String GET_HTTPS = "https://";
223
224     /**
225      * get token
226      */
227     public static final String GET_IAM_TOKEN = "/v3/auth/tokens";
228
229     /**
230      * rest.
231      */
232     public static final String REST = "/rest";
233
234     /**
235      * donsdata url.
236      */
237     public static final String INSTALL_URL = "install";
238
239     /**
240      * donsdata url.
241      */
242     public static final String UNINSTALL_URL = "uninstall";
243
244     /**
245      * respool url.
246      */
247     public static final String RESOPERATE_URL = "/v1/resoperate";
248
249     /**
250      * limits url.
251      */
252     public static final String LIMITS_URL = "/v1/limits";
253
254     private UrlConstant() {
255         // private constructor
256     }
257
258 }