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.openo.nfvo.vnfmadapter.service.constant;
23 * @version NFVO 0.5 Sep 6, 2016
25 public class ParamConstants {
27 public static final String GET_TOKENS_V1 = "{\"grantType\": \"password\", \"userName\": \"%s\",\"value\": \"%s\"}";
29 public static final String GET_TOKENS_V2 =
30 "{\"auth\":{\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": \"%s\",\"password\": \"%s\"}}}}}";
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\"}}}}";
36 public static final String GET_TOKEN_SUC_RESP =
37 "{\"token\": {\"methods\": [\"password\"],\"expires_at\": \"\",\"user\": {\"id\": \"%s\","
38 + "\"name\": \"%s\"},\"roa_rand\": \"%s\"}}";
40 public static final String GET_TOKEN_FAIL_RESP = "{\"Information\": \"%s\"}";
42 public static final String REST_3RD_CONNECTION = "/rest/plat/smapp/v1/oauth/token";
44 public static final String REST_3RD_DISCONNECT = "/rest/plat/smapp/v1/sessions?roarand=%s";
46 public static final String REST_3RD_HANDSHAKE = "/rest/plat/ssm/v1/sessions/verify";
48 public static final String IAM_AUTH = "/v3/auth/tokens";
50 public static final String CSM_AUTH_CONNECT = "/v2/auth/tokens";
52 public static final String CSM_AUTH_DISCONNECT = "/v2/auth/tokens/%s/%s";
54 public static final String CSM_AUTH_HANDSHAKE = "/v2/nfvo/shakehand?roattr=status";
56 public static final String VNFMMED = "/rest/vnfmmed/";
58 public static final String CONNECTMGR_CONNECT = "/connectmgr/v1/connect";
60 public static final String CONNECTMGR_DISCONNECT = "/connectmgr/v1/disconnect";
62 public static final String CONNECTMGR_HANDSHAKE = "/connectmgr/v1/handshake";
64 public static final String CREATE_VNF_PERF = "/staticsmgr/v1/vnfperformance";
66 public static final String VNFMGR_INSTANCE = "/vnfmgr/v1/instances";
69 public static final String VNFD_FLAVOR = "/vnfdmgr/v1/flavor";
71 public static final String UPDATE_RESOURCE = "/rest/v1/resmanage/resuse/updateres";
73 public static final String VNF_QUERY = "/resmgr/v1/vnfs";
75 public static final String VMS_QUERY = "/resmgr/v1/vms";
77 public static final String VNFMGR_VNFKPI = "/staticsmgr/v1/vnfkpi";
79 public static final String RES_VNF = "/rest/v1/resmanage/vappvm";
81 public static final String NOTIFY_VNF_PERF = "/rest/v1/resmanage/vappvm";
83 public static final String PARAM_MODULE = "VnfmDriver";
85 public static final String GET_ALL_SOS = "/rest/sodriver/v1/sos";
87 public static final String OPERATION_LOG_PATH = "/rest/plat/audit/v1/logs";
89 public static final String SYSTEM_LOG_PATH = "/rest/plat/audit/v1/systemlogs";
91 public static final String SECURITY_LOG_PATH = "/rest/plat/audit/v1/seculogs";
93 public static final String GET_VNFM_VNF = "/rest/v1/resmanage/vapps?vnfmId=%s";
95 public static final String GET_RES_NET = "/rest/v1/resmanage/virtualnetworks?id=%s";
97 public static final String GET_JOB_STATUS = "/vnfmgr/v1/jobs/%s";
99 public static final String VNF_INSTANCE = "/v2/vapps/instances";
101 public static final String VNF_INSTANCE_DEL = "/v2/vapps/instances/%s";
103 public static final String VNF_INSTANCE_GET = "/v2/vapps/instances/%s";
105 public static final String VNF_SCALE = "/v2/vapps/instances/%s/scale";
107 public static final String VNF_GET_VMINFO = "/v2/vapps/instances/%s/vm";
110 public static final String MSB_REGISTER_URL = "/openoapi/microservices/v1/services";
112 public static final String MSB_UNREGISTER_URL = "/openoapi/microservices/v1/services/hw-vnfm";
114 public static final String ESR_GET_VNFM_URL = "/openoapi/extsys/v1/vnfms/%s";
116 public static final String ESR_GET_VNFMS_URL = "/openoapi/extsys/v1/vnfms";
118 public static final String GRANT_RES_URL = "/openoapi/resmgr/v1/resource/grant";
120 private ParamConstants() {
121 // private contstructor