Improve nbi status
[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     public static final String SDC_HEALTH_CHECK = "/sdc/v1/artifactTypes";
31
32
33     // AAI
34     public static final String AAI_GET_TENANTS_PATH =
35             "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/$onap.cloudOwner/$onap.lcpCloudRegionId/tenants";
36     public static final String AAI_GET_CUSTOMER_PATH = "/aai/v14/business/customers/customer/";
37     public static final String AAI_GET_SERVICES_FOR_CUSTOMER_PATH =
38             "/aai/v14/business/customers/customer/$customerId/service-subscriptions";
39     public static final String AAI_PUT_SERVICE_FOR_CUSTOMER_PATH =
40             "/aai/v14/business/customers/customer/$customerId/service-subscriptions/service-subscription/";
41     public static final String AAI_HEALTH_CHECK =
42         "/aai/v14/business/customers";
43     public static final String AAI_GET_SERVICE =
44             "/aai/v14/nodes/service-instances/service-instance/$serviceId";
45     public static final String AAI_GET_SERVICE_CUSTOMER =
46             "/aai/v14/nodes/service-instances/service-instance/$serviceId?format=resource_and_url";
47     public static final String AAI_GET_SERVICE_INSTANCES_PATH =
48             "/aai/v14/business/customers/customer/$customerId/service-subscriptions/service-subscription/$serviceSpecName/service-instances/";
49
50
51     // MSO
52     public static final String MSO_CREATE_SERVICE_INSTANCE_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/";
53     public static final String MSO_GET_REQUEST_STATUS_PATH = "/onap/so/infra/orchestrationRequests/v7/";
54     public static final String MSO_DELETE_REQUEST_STATUS_PATH = "/onap/so/infra/serviceInstantiation/v7/serviceInstances/";
55     public static final String MSO_CREATE_E2ESERVICE_INSTANCE_PATH = "/onap/so/infra/e2eServiceInstances/v3";
56     public static final String MSO_DELETE_E2ESERVICE_INSTANCE_PATH = "/onap/so/infra/e2eServiceInstances/v3/";
57     public static final String MSO_GET_E2EREQUEST_STATUS_PATH = "/onap/so/infra/e2eServiceInstances/v3/$serviceId/operations/$operationId";
58     public static final String MSO_HEALTH_CHECK = "/globalhealthcheck";
59
60     // DMaaP Message Router REST Client
61     public static final String DMAAP_CONSUME_EVENTS =
62             "/events/$topic/$consumergroup/$consumerid?timeout=$timeout";
63 }