2 * Copyright 2016-2017 Huawei Technologies Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.vfc.nfvo.resmanagement.common.constant;
22 * Constant for REST URL.
26 * @version VFC 1.0 2016-3-17
28 public class UrlConstant {
33 public static final String LOCATION_TARGET = "location";
38 public static final String REST_MSB_REGISTER = "/api/microservices/v1/services";
40 public static final String ESR_GET_VIM_URL = "/api/extsys/v1/vims/%s";
42 public static final String ESR_GET_VIMS_URL = "/api/extsys/v1/vims";
45 * send resource info to monitor url
47 public static final String SEND_MSG_MONITOR = "/api/umc/v1/resinfo";
52 public static final String LOCATION_URL = "/v1/locations";
57 public static final String PORT_URL = "/v1/ports";
62 public static final String HOST_URL = "/v1/hosts";
67 public static final String VL_URL = "/v1/vl";
72 public static final String VNF_URL = "/v1/vnf";
77 public static final String NS_URL = "/v1/ns";
82 public static final String VNFINFO_URL = "/v1/vnfinfo";
87 public static final String VNFSTATUS_URL = "/v1/vnfstatus";
92 public static final String GRANTRES_URL = "/v1/resource/grant";
97 public static final String VM_URL = "/v1/vm";
102 public static final String SITES_TARGET = "sites";
107 public static final String SITES_URL = "/v1/datacenters";
112 public static final String NETWORKS_TARGET = "networks";
117 public static final String NETWORKS_URL = "/v1/networks";
122 public static final String MODRES_URL = "/updateres";
127 public static final String RESOPERATE_TARGET = "resoperate";
132 public static final String APPLICATION_TYPE = "application/json";
137 public static final String ADDRES_URL = "/resmgr/vims";
142 public static final String UPDATE_BY_TENANT = "updatebytenant";
147 public static final String UPDATE_BY_VAPP = "updatebyvapp";
152 public static final String GET_NETWORK_URL = "/api/multivim/v1/%s/%s/networks";
157 public static final String GET_TENANT_URL = "/api/multivim/v1/%s/tenants";
162 public static final String GET_HOST_URL = "/api/multivim/v1/%s/%s/hosts";
167 public static final String GET_HOSTDETAIL_URL = "/api/multivim/v1/%s/%s/hosts/%s";
172 public static final String GET_PORT_URL = "/api/multivim/v1/%s/%s/ports";
177 public static final String GET_LIMITS_URL = "/api/multivim/v1/%s/%s/limits";
180 * template notify M url.
182 public static final String TEMPLATE_NOTIFY_M_URL = "";
185 * tenantsite allot url.
187 public static final String TENANTSITE_ALLOT_URL = "/v1/resmanage/tenantsite/allot";
190 * tenantsite allot target.
192 public static final String TENANTSITE_ALLOT_TARGET = "tenantsite/allot";
197 public static final String TENANT_URL = "/v1/resmanage/tenant";
202 public static final String TENANT_TARGET = "tenant";
207 public static final String ROLLBACK_URL = "/v1/resmanage/rollback";
212 public static final String ROLLBACK_TARGET = "rollback";
217 public static final String VIM_TARGET = "vim";
222 public static final String VIM_URL = "/v1/resmanage/vim";
227 public static final String GET_HTTPS = "https://";
232 public static final String GET_IAM_TOKEN = "/v3/auth/tokens";
237 public static final String REST = "/rest";
242 public static final String INSTALL_URL = "install";
247 public static final String UNINSTALL_URL = "uninstall";
252 public static final String RESOPERATE_URL = "/v1/resoperate";
257 public static final String LIMITS_URL = "/v1/limits";
259 private UrlConstant() {
260 // private constructor