22c06ef08de763f1ce4cd77be80f007cc460db9a
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / constant / CommonConstants.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
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.driver.vnfm.svnfm.constant;
18
19 public class CommonConstants {
20         public static final String HTTP_ERROR_DESC_500 = "Internal Server Error";
21         
22         
23         public static final String CONTENT_TYPE = "Content-Type";
24         public static final String ACCEPT = "Accept";
25         
26         public static final String AUTH = "auth";
27         public static final String AUTHORIZATION = "Authorization";
28         public static final String UTF_8 = "utf-8";
29         
30         //Nslcm path
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";
34         
35         //Catalog path
36         public static final String RetrieveVnfPackagePath = "/catalog/v1/vnfpackages/%s";
37         
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";
50         
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";
57         
58         public static final String CBAM_OPERATION_STATUS_START = "start";
59         public static final String CBAM_OPERATION_STATUS_FINISH = "finished";
60         
61         //MSB
62         public static final String MSB_REGISTER_SERVICE_PATH = "/api/microservices/v1/services";
63 //      public static final String MSB_REGISTER_SERVICE_PATH = "/api/microservices/v1/services/{serviceName}/version/{version}/nodes/{ip}/{port}";
64         public static final String MSB_UNREGISTER_SERVICE_PATH = "/api/microservices/v1/services/%s/version/%s/nodes/%s/%s";
65 }