Add DMaaP Integration to retrieve AAI-EVENT
[externalapi/nbi.git] / src / main / java / org / onap / nbi / OnapComponentsUrlPaths.java
1 /**
2  *     Copyright (c) 2018 Orange
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 package org.onap.nbi;
17
18 /**
19  * Contains ONAP SDC and AAI urlPaths
20  *
21  */
22 public final class OnapComponentsUrlPaths {
23
24     private OnapComponentsUrlPaths() {}
25
26     // SDC
27     public static final String SDC_ROOT_URL = "/sdc/v1/catalog/services";
28     public static final String SDC_GET_PATH = "/metadata";
29     public static final String SDC_TOSCA_PATH = "/toscaModel";
30
31     // AAI
32     public static final String AAI_GET_TENANTS_PATH =
33             "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/$onap.cloudOwner/$onap.lcpCloudRegionId/tenants";
34     public static final String AAI_GET_CUSTOMER_PATH = "/aai/v14/business/customers/customer/";
35     public static final String AAI_GET_SERVICES_FOR_CUSTOMER_PATH =
36             "/aai/v14/business/customers/customer/$customerId/service-subscriptions";
37     public static final String AAI_PUT_SERVICE_FOR_CUSTOMER_PATH =
38             "/aai/v14/business/customers/customer/$customerId/service-subscriptions/service-subscription/";
39     public static final String AAI_GET_SERVICE =
40             "/aai/v14/nodes/service-instances/service-instance/$serviceId";
41     public static final String AAI_GET_SERVICE_CUSTOMER =
42             "/aai/v14/nodes/service-instances/service-instance/$serviceId?format=resource_and_url";
43     public static final String AAI_GET_SERVICE_INSTANCES_PATH =
44             "/aai/v14/business/customers/customer/$customerId/service-subscriptions/service-subscription/$serviceSpecName/service-instances/";
45
46     // MSO
47     public static final String MSO_CREATE_SERVICE_INSTANCE_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/";
48     public static final String MSO_GET_REQUEST_STATUS_PATH = "/onap/so/infra/orchestrationRequests/v7/";
49     public static final String MSO_DELETE_REQUEST_STATUS_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/";
50     public static final String MSO_CREATE_E2ESERVICE_INSTANCE_PATH = "/onap/so/infra/e2eServiceInstances/v3";
51     public static final String MSO_DELETE_E2ESERVICE_INSTANCE_PATH = "/onap/so/infra/e2eServiceInstances/v3/";
52     public static final String MSO_GET_E2EREQUEST_STATUS_PATH = "/onap/so/infra/e2eServiceInstances/v3/$serviceId/operations/$operationId";
53     
54     // DMaaP Message Router REST Client
55     public static final String DMAAP_CONSUME_EVENTS =
56             "/events/$topic/$consumergroup/$consumerid?timeout=$timeout";
57 }