summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/constant/UrlConstant.java
blob: 8cf9453eba9f9dfef8d770f907950c92a53b7e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
/*
 * Copyright 2016-2017 Huawei Technologies Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.onap.vfc.nfvo.resmanagement.common.constant;

/**
 * <br/>
 * <p>
 * Constant for REST URL.
 * </p>
 *
 * @author
 * @version VFC 1.0 2016-3-17
 */
public class UrlConstant {

    /**
     * networks target.
     */
    public static final String LOCATION_TARGET = "location";

    /**
     * MSB register url.
     */
    public static final String REST_MSB_REGISTER = "/api/microservices/v1/services";

    /**
     * Query vim info url
     * /api/extsys/v1/vims/%s
     */
    public static final String ESR_GET_VIM_URL =
            "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/%s/%s/esr-system-info-list/esr-system-info/%s";

    /**
     * Query vims info url
     * /api/extsys/v1/vims
     */
    public static final String ESR_GET_VIMS_URL =
            "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/%s/%s/esr-system-info-list";

    /**
     * send resource info to monitor url
     */
    public static final String SEND_MSG_MONITOR = "/api/umc/v1/resinfo";

    /**
     * networks url.
     */
    public static final String LOCATION_URL = "/v1/locations";

    /**
     * port url.
     */
    public static final String PORT_URL = "/v1/ports";

    /**
     * host url.
     */
    public static final String HOST_URL = "/v1/hosts";

    /**
     * vl url.
     */
    public static final String VL_URL = "/v1/vl";

    /**
     * vnf url.
     */
    public static final String VNF_URL = "/v1/vnf";

    /**
     * ns url
     */
    public static final String NS_URL = "/v1/ns";

    /**
     * vnfinfo url.
     */
    public static final String VNFINFO_URL = "/v1/vnfinfo";

    /**
     * vnfstatus url.
     */
    public static final String VNFSTATUS_URL = "/v1/vnfstatus";

    /**
     * grant resource url.
     */
    public static final String GRANTRES_URL = "/v1/resource/grant";

    /**
     * vm url.
     */
    public static final String VM_URL = "/v1/vm";

    /**
     * sites target.
     */
    public static final String SITES_TARGET = "sites";

    /**
     * sites url.
     */
    public static final String SITES_URL = "/v1/datacenters";

    /**
     * networks target.
     */
    public static final String NETWORKS_TARGET = "networks";

    /**
     * networks url.
     */
    public static final String NETWORKS_URL = "/v1/networks";

    /**
     * updateres.
     */
    public static final String MODRES_URL = "/updateres";

    /**
     * resoperate target.
     */
    public static final String RESOPERATE_TARGET = "resoperate";

    /**
     * APPLICATION_TYPE.
     */
    public static final String APPLICATION_TYPE = "application/json";

    /**
     * ADDRES.
     */
    public static final String ADDRES_URL = "/resmgr/vims";

    /**
     * updatebytenant.
     */
    public static final String UPDATE_BY_TENANT = "updatebytenant";

    /**
     * updatebyvapp.
     */
    public static final String UPDATE_BY_VAPP = "updatebyvapp";

    /**
     * getNetworkURL.
     */
    public static final String GET_NETWORK_URL = "/api/multivim/v1/%s/%s/networks";

    /**
     * getTenantURL.
     */
    public static final String GET_TENANT_URL = "/api/multicloud/v0/%s/tenants";

    /**
     * getHostURL.
     */
    public static final String GET_HOST_URL = "/api/multivim/v1/%s/%s/hosts";

    /**
     * getHostDetailURL.
     */
    public static final String GET_HOSTDETAIL_URL = "/api/multivim/v1/%s/%s/hosts/%s";

    /**
     * getNetworkURL.
     */
    public static final String GET_PORT_URL = "/api/multivim/v1/%s/%s/ports";

    /**
     * getLimitsURL.
     */
    public static final String GET_LIMITS_URL = "/api/multicloud/v0/%s/%s/limits";

    /**
     * template notify M url.
     */
    public static final String TEMPLATE_NOTIFY_M_URL = "";

    /**
     * tenantsite allot url.
     */
    public static final String TENANTSITE_ALLOT_URL = "/v1/resmanage/tenantsite/allot";

    /**
     * tenantsite allot target.
     */
    public static final String TENANTSITE_ALLOT_TARGET = "tenantsite/allot";

    /**
     * tenant url.
     */
    public static final String TENANT_URL = "/v1/resmanage/tenant";

    /**
     * tenant target.
     */
    public static final String TENANT_TARGET = "tenant";

    /**
     * rollback url.
     */
    public static final String ROLLBACK_URL = "/v1/resmanage/rollback";

    /**
     * rollback target.
     */
    public static final String ROLLBACK_TARGET = "rollback";

    /**
     * vms target.
     */
    public static final String VIM_TARGET = "vim";

    /**
     * vms url.
     */
    public static final String VIM_URL = "/v1/resmanage/vim";

    /**
     * https
     */
    public static final String GET_HTTPS = "https://";

    /**
     * get token
     */
    public static final String GET_IAM_TOKEN = "/v3/auth/tokens";

    /**
     * rest.
     */
    public static final String REST = "/rest";

    /**
     * donsdata url.
     */
    public static final String INSTALL_URL = "install";

    /**
     * donsdata url.
     */
    public static final String UNINSTALL_URL = "uninstall";

    /**
     * respool url.
     */
    public static final String RESOPERATE_URL = "/v1/resoperate";

    /**
     * limits url.
     */
    public static final String LIMITS_URL = "/v1/limits";

    /**
     * esr-vnfm url
     */
    public static final String ESR_VNFM_URL = "/aai/v11/external-system/esr-vnfm-list/esr-vnfm/";

    /**
     * generic-vnf url
     */
    public static final String GENERIC_VNF_URL = "/aai/v11/network/generic-vnfs/generic-vnf/";

    /**
     * generic-vnf url
     */
    public static final String GENERIC_VNFS_URL = "/aai/v11/network/generic-vnfs";

    /**
     * customer url
     */
    public static final String CUSTOMER_URL = "/aai/v11/business/customers/customer/";

    /**
     * service-subscription url
     */
    public static final String SERVICE_SUBSCRIPTION_URL = "/service-subscriptions/service-subscription/";

    /**
     * service-instance url
     */
    public static final String SERVICE_INSTANCE_URL = "/service-instances/service-instance/";

    /**
     * cloud-region url
     */
    public static final String CLOUD_REGION_URL = "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/";

    /**
     * tenant url
     */
    public static final String CLOUD_TENANT_URL = "/tenants/tenant/";

    /**
     * vserver url
     */
    public static final String VSERVER_URL = "/vservers/vserver/";

    private UrlConstant() {
        // private constructor
    }

}