6aafba8f86856f318140d7eca9b32177b8472a8c
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / main / java / org / onap / vfc / nfvo / vnfm / svnfm / vnfmadapter / service / constant / ParamConstants.java
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.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.constant;
18
19 /**
20  * @author
21  * @version VFC 1.0 Sep 6, 2016
22  */
23 public class ParamConstants {
24
25     public static final String GET_TOKENS_V1 = "{\"grantType\": \"password\", \"userName\": \"%s\",\"value\": \"%s\"}";
26
27     public static final String GET_TOKENS_V2 =
28             "{\"auth\":{\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": \"%s\",\"password\": \"%s\"}}}}}";
29
30     public static final String GET_TOKENS_V3 =
31             "{\"auth\": {\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": "
32                     + "\"%s\",\"password\": \"%s\",\"domain\": {\"name\": \"%s\"}}}}}}";
33
34     public static final String GET_TOKEN_SUC_RESP =
35             "{\"token\": {\"methods\": [\"password\"],\"expires_at\": \"\",\"user\": {\"id\": \"%s\","
36                     + "\"name\": \"%s\"},\"roa_rand\": \"%s\"}}";
37
38     public static final String GET_TOKEN_FAIL_RESP = "{\"Information\": \"%s\"}";
39
40     public static final String REST_3RD_CONNECTION = "/rest/plat/smapp/v1/oauth/token";
41
42     public static final String REST_3RD_DISCONNECT = "/rest/plat/smapp/v1/sessions?roarand=%s";
43
44     public static final String REST_3RD_HANDSHAKE = "/rest/plat/ssm/v1/sessions/verify";
45
46     public static final String CSM_AUTH_CONNECT_SOUTH = "/v3/auth/tokens";
47
48     public static final String CSM_AUTH_CONNECT_SOUTH_DISCONNECT = "/v3/auth/tokens/%s";
49
50     public static final String CSM_AUTH_CONNECT = "/v2/auth/tokens";
51
52     public static final String CSM_AUTH_DISCONNECT = "/v2/auth/tokens/%s/%s";
53
54     public static final String CSM_AUTH_HANDSHAKE = "/v2/nfvo/shakehand?roattr=status";
55
56     public static final String VNFMMED = "/rest/vnfmmed/";
57
58     public static final String CONNECTMGR_CONNECT = "/connectmgr/v1/connect";
59
60     public static final String CONNECTMGR_DISCONNECT = "/connectmgr/v1/disconnect";
61
62     public static final String CONNECTMGR_HANDSHAKE = "/connectmgr/v1/handshake";
63
64     public static final String CREATE_VNF_PERF = "/staticsmgr/v1/vnfperformance";
65
66     public static final String VNFMGR_INSTANCE = "/vnfmgr/v1/instances";
67
68     public static final String VNFD_FLAVOR = "/vnfdmgr/v1/flavor";
69
70     public static final String UPDATE_RESOURCE = "/rest/v1/resmanage/resuse/updateres";
71
72     public static final String VNF_QUERY = "/resmgr/v1/vnfs";
73
74     public static final String VMS_QUERY = "/resmgr/v1/vms";
75
76     public static final String VNFMGR_VNFKPI = "/staticsmgr/v1/vnfkpi";
77
78     public static final String RES_VNF = "/rest/v1/resmanage/vappvm";
79
80     public static final String NOTIFY_VNF_PERF = "/rest/v1/resmanage/vappvm";
81
82     public static final String PARAM_MODULE = "VnfmDriver";
83
84     public static final String GET_ALL_SOS = "/rest/sodriver/v1/sos";
85
86     public static final String OPERATION_LOG_PATH = "/rest/plat/audit/v1/logs";
87
88     public static final String SYSTEM_LOG_PATH = "/rest/plat/audit/v1/systemlogs";
89
90     public static final String SECURITY_LOG_PATH = "/rest/plat/audit/v1/seculogs";
91
92     public static final String GET_VNFM_VNF = "/rest/v1/resmanage/vapps?vnfmId=%s";
93
94     public static final String GET_RES_NET = "/rest/v1/resmanage/virtualnetworks?id=%s";
95
96     public static final String GET_JOB_STATUS = "/vnfmgr/v1/jobs/%s";
97
98     public static final String VNF_INSTANCE = "/v2/vapps/instances";
99
100     public static final String VNF_INSTANCE_DEL = "/v2/vapps/instances/%s";
101
102     public static final String VNF_INSTANCE_GET = "/v2/vapps/instances/%s";
103
104     public static final String VNF_SCALE = "/v2/vapps/instances/%s/scale";
105
106     public static final String VNF_GET_VMINFO = "/v2/vapps/instances/%s/vm";
107
108     public static final String MSB_REGISTER_URL = "/api/microservices/v1/services";
109
110     public static final String MSB_UNREGISTER_URL = "/api/microservices/v1/services/hw-vnfm";
111
112     // /api/extsys/v1/vnfms/%s
113     public static final String ESR_GET_VNFM_URL = "/external-system/esr-vnfm-list/esr-vnfm/%s";
114
115     // /api/extsys/v1/vnfms
116     public static final String ESR_GET_VNFMS_URL = "/external-system/esr-vnfm-list";
117
118     public static final String GRANT_RES_URL = "/api/resmgr/v1/resource/grant";
119
120     public static final String HEAL_VNF = "/v2/vapps/instances/vm/%s/action";
121
122     private ParamConstants() {
123         // private contstructor
124     }
125 }