2 * Copyright 2016 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.onap.vfc.nfvo.vnfm.gvnfm.jujuvnfmadapter.service.constant;
21 * Parameter constants class.<br>
26 * @version NFVO 0.5 Sep 12, 2016
28 public class ParamConstants {
30 public static final String GET_TOKENS_V1 = "{\"grantType\": \"password\", \"userName\": \"%s\",\"value\": \"%s\"}";
32 public static final String GET_TOKENS_V2 =
33 "{\"auth\":{\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": \"%s\",\"password\": \"%s\"}}}}}";
35 public static final String GET_IAM_TOKENS =
36 "{\"auth\": {\"identity\": {\"methods\": [\"password\"],\"password\": {\"user\": {\"name\": "
37 + "\"%s\",\"password\": \"%s\",\"domain\": {\"name\": \"%s\"}}}},\"scope\": {\"domain\": {\"name\": \"%s\"}}}}";
39 public static final String GET_TOKEN_SUC_RESP =
40 "{\"token\": {\"methods\": [\"password\"],\"expires_at\": \"\",\"user\": {\"id\": \"%s\","
41 + "\"name\": \"%s\"},\"roa_rand\": \"%s\"}}";
43 public static final String GET_TOKEN_FAIL_RESP = "{\"Information\": \"%s\"}";
45 public static final String REST_3RD_CONNECTION = "/rest/plat/smapp/v1/oauth/token";
47 public static final String REST_3RD_DISCONNECT = "/rest/plat/smapp/v1/sessions?roarand=%s";
49 public static final String REST_3RD_HANDSHAKE = "/rest/plat/ssm/v1/sessions/verify";
51 public static final String IAM_AUTH = "/v3/auth/tokens";
53 public static final String CSM_AUTH_CONNECT = "/v2/auth/tokens";
55 public static final String CSM_AUTH_DISCONNECT = "/v2/auth/tokens/%s/%s";
57 public static final String CSM_AUTH_HANDSHAKE = "/v2/nfvo/shakehand?roattr=status";
59 public static final String VNFMMED = "/rest/vnfmmed/";
61 public static final String CONNECTMGR_CONNECT = "/connectmgr/v1/connect";
63 public static final String CONNECTMGR_DISCONNECT = "/connectmgr/v1/disconnect";
65 public static final String CONNECTMGR_HANDSHAKE = "/connectmgr/v1/handshake";
67 public static final String CREATE_VNF_PERF = "/staticsmgr/v1/vnfperformance";
69 public static final String VNFMGR_INSTANCE = "/vnfmgr/v1/instances";
71 public static final String VNF_SCALE = "/vnfmgr/v1/instances/%s/scale";
73 public static final String VNFD_FLAVOR = "/vnfdmgr/v1/flavor";
75 public static final String VNFDGR_INSTALL = "/vnfdmgr/v1/vnfd/%s/install";
77 public static final String VNFDGR_DETAIL = "/vnfdmgr/v1/vnfd/%s";
79 public static final String VNFDGR_DETAILS = "/vnfdmgr/v1/vnfd";
81 public static final String VNFDGR_TOPOLOGY = "/vnfdmgr/v1/topology/%s";
83 public static final String UPDATE_RESOURCE = "/rest/v1/resmanage/resuse/updateres";
85 public static final String VNFDGR_INSTANCE = "/vnfmmed/v1/vnfdm/";
87 public static final String VNF_QUERY = "/resmgr/v1/vnfs";
89 public static final String VMS_QUERY = "/resmgr/v1/vms";
91 public static final String REST_EVENT_ADD = "/rest/v1/resmanage/vnfm/site";
93 public static final String REST_EVENT_DEL = "/rest/v1/resmanage/vnfm/site/%s";
95 public static final String VNFMGR_VNFKPI = "/staticsmgr/v1/vnfkpi";
97 public static final String RES_VNF = "/rest/v1/resmanage/vappvm";
99 public static final String NOTIFY_VNF_PERF = "/rest/v1/resmanage/vappvm";
101 public static final String PARAM_MODULE = "VnfmDriver";
103 public static final String GET_ALL_SITES = "/rest/v1/resmanage/sites";
105 public static final String GET_ALL_SOS = "/rest/sodriver/v1/sos";
107 public static final String OPERATION_LOG_PATH = "/rest/plat/audit/v1/logs";
109 public static final String SYSTEM_LOG_PATH = "/rest/plat/audit/v1/systemlogs";
111 public static final String SECURITY_LOG_PATH = "/rest/plat/audit/v1/seculogs";
113 public static final String SCALINGPOLICY_QUERY = "/policymgr/v1/scalingpolicy";
115 public static final String SCALINGPOLICY_OPERATE = "/policymgr/v1/scalingpolicy/%s/%s";
117 public static final String ACTIVE_POLICY = "/policymgr/v1/activepolicy";
119 public static final String DEACTIVE_POLICY = "/policymgr/v1/deactivepolicy";
121 public static final String GET_VNFM_VNF = "/rest/v1/resmanage/vapps?vnfmId=%s";
123 public static final String GET_RES_NET = "/rest/v1/resmanage/virtualnetworks?id=%s";
125 public static final String GET_JOB_STATUS = "/vnfmgr/v1/jobs/%s";
127 public static final String CREATE_POLICY = "/policymgr/v1/vnfs/%s/policies";
129 public static final String REST_FOR_VNFD_PLANS = "/v2/vapps/templates/%s/plans";
131 public static final String REST_GET_VNFDS = "/v2/vapps/templates";
133 public static final String REST_FOR_VNFD_BASIC = "/v2/vapps/templates?type=basic&vendor=%s&vnfdID=%s&version=%s";
135 public static final String REST_TOPOLOGY = "/v1/vapps/templates/%s?type=templatetopology";
137 public static final String VNF_INSTANCE = "/v2/vapps/instances";
139 public static final String VNF_INSTANCE_DEL = "/v2/vapps/instances/%s";
141 private ParamConstants() {