Change: add OPEN-O seed code for VF-C
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / main / java / org / openo / nfvo / 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.openo.nfvo.vnfmadapter.service.constant;
18
19 /**
20  *
21  * @author
22  *
23  * @version NFVO 0.5 Sep 6, 2016
24  */
25 public class ParamConstants {
26
27     public static final String GET_TOKENS_V1 = "{\"grantType\": \"password\", \"userName\": \"%s\",\"value\": \"%s\"}";
28
29     public static final String GET_TOKENS_V2 =
30             "{\"auth\":{\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": \"%s\",\"password\": \"%s\"}}}}}";
31
32     public static final String GET_IAM_TOKENS =
33             "{\"auth\": {\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": "
34                     + "\"%s\",\"password\": \"%s\",\"domain\": {\"name\": \"%s\"}}}},\"scope\": {\"domain\": {\"name\": \"%s\"}}}}";
35
36     public static final String GET_TOKEN_SUC_RESP =
37             "{\"token\": {\"methods\": [\"password\"],\"expires_at\": \"\",\"user\": {\"id\": \"%s\","
38                     + "\"name\": \"%s\"},\"roa_rand\": \"%s\"}}";
39
40     public static final String GET_TOKEN_FAIL_RESP = "{\"Information\": \"%s\"}";
41
42     public static final String REST_3RD_CONNECTION = "/rest/plat/smapp/v1/oauth/token";
43
44     public static final String REST_3RD_DISCONNECT = "/rest/plat/smapp/v1/sessions?roarand=%s";
45
46     public static final String REST_3RD_HANDSHAKE = "/rest/plat/ssm/v1/sessions/verify";
47
48     public static final String IAM_AUTH = "/v3/auth/tokens";
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
69     public static final String VNFD_FLAVOR = "/vnfdmgr/v1/flavor";
70
71     public static final String UPDATE_RESOURCE = "/rest/v1/resmanage/resuse/updateres";
72
73     public static final String VNF_QUERY = "/resmgr/v1/vnfs";
74
75     public static final String VMS_QUERY = "/resmgr/v1/vms";
76
77     public static final String VNFMGR_VNFKPI = "/staticsmgr/v1/vnfkpi";
78
79     public static final String RES_VNF = "/rest/v1/resmanage/vappvm";
80
81     public static final String NOTIFY_VNF_PERF = "/rest/v1/resmanage/vappvm";
82
83     public static final String PARAM_MODULE = "VnfmDriver";
84
85     public static final String GET_ALL_SOS = "/rest/sodriver/v1/sos";
86
87     public static final String OPERATION_LOG_PATH = "/rest/plat/audit/v1/logs";
88
89     public static final String SYSTEM_LOG_PATH = "/rest/plat/audit/v1/systemlogs";
90
91     public static final String SECURITY_LOG_PATH = "/rest/plat/audit/v1/seculogs";
92
93     public static final String GET_VNFM_VNF = "/rest/v1/resmanage/vapps?vnfmId=%s";
94
95     public static final String GET_RES_NET = "/rest/v1/resmanage/virtualnetworks?id=%s";
96
97     public static final String GET_JOB_STATUS = "/vnfmgr/v1/jobs/%s";
98
99     public static final String VNF_INSTANCE = "/v2/vapps/instances";
100
101     public static final String VNF_INSTANCE_DEL = "/v2/vapps/instances/%s";
102
103     public static final String VNF_INSTANCE_GET = "/v2/vapps/instances/%s";
104
105     public static final String VNF_SCALE = "/v2/vapps/instances/%s/scale";
106
107     public static final String VNF_GET_VMINFO = "/v2/vapps/instances/%s/vm";
108
109
110     public static final String MSB_REGISTER_URL = "/openoapi/microservices/v1/services";
111
112     public static final String MSB_UNREGISTER_URL = "/openoapi/microservices/v1/services/hw-vnfm";
113
114     public static final String ESR_GET_VNFM_URL = "/openoapi/extsys/v1/vnfms/%s";
115
116     public static final String ESR_GET_VNFMS_URL = "/openoapi/extsys/v1/vnfms";
117
118     public static final String GRANT_RES_URL = "/openoapi/resmgr/v1/resource/grant";
119
120     private ParamConstants() {
121         // private contstructor
122     }
123 }