2 * Copyright 2016-2017, Nokia Corporation
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.driver.vnfm.svnfm.constant;
19 public class CommonConstants {
20 public static final String HTTP_ERROR_DESC_500 = "Internal Server Error";
23 public static final String CONTENT_TYPE = "Content-Type";
24 public static final String ACCEPT = "Accept";
26 public static final String AUTH = "auth";
27 public static final String AUTHORIZATION = "Authorization";
28 public static final String UTF_8 = "utf-8";
31 public static final String RetrieveNvfmListPath = "/nslcm/vl/vnfms/%s";
32 public static final String NslcmGrantPath = "/nslcm/v1/ns/grantvnf";
33 public static final String NslcmNotifyPath = "/nslcm/v1/vnfs/%s/Notify";
36 public static final String RetrieveVnfPackagePath = "/catalog/v1/vnfpackages/%s";
38 //CBAM -- Nokia VNFM path
39 public static final String CBAM_TOKEN_KEY = "access_token";
40 public static final String RetrieveCbamTokenPath="/auth/realms/cbam/protocol/openid-connect/token";
41 public static final String RetrieveCbamTokenPostStr="grant_type=%s&client_id=%s&client_secret=%s";
42 public static final String CbamCreateVnfPath="/vnfs";
43 public static final String CbamInstantiateVnfPath="/vnfs/%s/instantiate";
44 public static final String CbamQueryVnfPath="/vnfs/%s";
45 public static final String CbamDeleteVnfPath="/vnfs/%s";
46 public static final String CbamTerminateVnfPath="/vnfs/%s/terminate";
47 public static final String CbamGetOperStatusPath="/operation_executions/%s";
48 public static final String CbamScaleVnfPath = "/vnfs/%s/scale";
49 public static final String CbamHealVnfPath="/vnfs/%s/heal";
51 public static final String NSLCM_OPERATION_INSTANTIATE = "Instantiate";
52 public static final String NSLCM_OPERATION_TERMINATE = "Terminal";
53 public static final String NSLCM_OPERATION_SCALE_OUT = "Scaleout";
54 public static final String NSLCM_OPERATION_SCALE_IN = "Scalein";
55 public static final String NSLCM_OPERATION_SCALE_UP = "Scaleup";
56 public static final String NSLCM_OPERATION_SCALE_DOWN = "Scaledown";
58 public static final String CBAM_OPERATION_STATUS_START = "start";
59 public static final String CBAM_OPERATION_STATUS_FINISH = "finished";