aboutsummaryrefslogtreecommitdiffstats
path: root/src/environments/environment.prod.ts
blob: a533520efee2c5201042db4e226fc039110d29f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * Copyright (c) 2022. Deutsche Telekom AG
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * SPDX-License-Identifier: Apache-2.0
 */


import { Environment } from '../app/model/environment.model';


export const environment: Environment = {
  customStyleEnabled: true,
  backendServerUrl: window.location.origin + '/api',
  hostname: window.location.hostname,
  production: true,
  keycloakEditProfile: `${window.location.origin}/auth/realms/ONAP/account`,
  keycloak: {
    issuer: `${window.location.origin}/auth/realms/ONAP`, // Url of the Identity Provider
    redirectUri: window.location.origin, // URL of the SPA to redirect the user to after login
    clientId: 'portal-app', // The Frontend is registered with this id at the auth-server
    responseType: 'code',
    scope: 'openid', // set the scope for the permissions the client should request
    requireHttps: false, // Don't require https
    showDebugInformation: false,
    disableAtHashCheck: true, // if at_hash is not present in JWT token
    skipIssuerCheck: false,
    strictDiscoveryDocumentValidation: true,
  },
  dateTimeFormat: 'dd/MM/yyyy  HH:mm:ss',
  loggingUrl: window.location.origin + '/onap_logging',
  supportUrlLink: 'https://wiki.onap.org/',
  loggingEnabled: true
};
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #a6e22e } /* Name.Function.Magic */ .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ .highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */ .highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ } @media (prefers-color-scheme: light) { .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
.. contents::
   :depth: 3
..
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

AAI Generic Query Implementation Notes

Overview
========

The Generic Query mechanism allows to search for certain nodes of
“include” node types at a specified “depth” from the from a particular
start node of type “start-node-type” identified by specifying its
“key” values.

The Generic Query is implemented using the GET method with the
following URL that takes 4 query params:

.. code-block::

   /aai/<version>/search/generic-query

   Ex. /aai/v16/search/generic-query

Please look for other AAI documentation for what version to use in
which environment/release.

**key** - multiple values that together specify the params to select a
 unique start node. For example for selecting a customer we would
 specify
 
.. code-block::

    key=customer.global-customer-id:ma9181-203-customerid&key=service-subscription.service-type:example-service-type

**start-node-type** - node type of the start node. For example
 start-node-type=service-instance

**include** - multiple values of the node types that need to be
 returned as part of the query-result. For example

.. code-block::

    include=vce&include=port-group

**depth** – look for include node types within a certain depth from
 the start-node-type

The queries return a search-results object back which includes a list
of result-data which contains the node-type and a link for each
resource that was found.   

Requirements
============

* At depth=0, only the start node is returned, include is not needed

* At any depth > 0 and <= 6, If start-node-type is in the include –
  that should also be returned

* The depth has a max value of 6 – an error will be returned if a
  value higher than 6 is used

* A special node type of “all” can be specified for include when all
  nodes under the start node are to be searched for

* If a start-node cannot be found based on the key a HTTP response
  code of 404 Node not found error is returned

* If no nodes can be found that meet the search criteria a HTTP
  response code of 200 with an empty list is returned

* The search results can be asked to be returned in json or xml based
  on the ACCEPT header. For 1504, the queries are expected to be used
  by MSO and therefore will use an ACCEPT header of application/xml.

Supported Queries
=================
 
Search customer and service-subscription by service instance id 

.. code-block::

   URL:

   /aai/v16/search/generic-query?key=service-instance.service-instance-id:testserviceinstance&start-node-type=service-instance&include=customer&include=service-subscription&include=service-instance&depth=2

Search result:

.. code-block:: xml

 <search-results xmlns="http://com.att.aai.inventory/v16">
   <result-data>
      <resource-type>customer</resource-type>
      <resource-link>https://mtinjvmsdn30.cip.att.com:8443/aai/v16/business/customers/customer/globalspanos/</resource-link>
   </result-data>
   <result-data>
      <resource-type>service-subscription</resource-type>
      <resource-link>https://mtinjvmsdn30.cip.att.com:8443/aai/v16/business/customers/customer/globalspanos/service-subscriptions/service-subscription/ptplgamma/</resource-link>
   </result-data>
   <result-data>
      <resource-type>service-instance</resource-type>
      <resource-link>https://mtinjvmsdn30.cip.att.com:8443/aai/v16/business/customers/customer/globalspanos/service-subscriptions/service-subscription/ptplgamma/service-instances/service-instance/arnoldave/</resource-link>
   </result-data>
 </search-results>

Search the VCE and its port groups and cvlan tags given the service instance id.

.. code-block::

   URL: /aai/v16/search/generic-query?key=service-instance.service-instance-id:arnoldave&start-node-type=service-instance&include=vce&include=port-group&include=cvlan-tag&depth=3

Search result:

.. code-block:: xml

 <search-results xmlns="http://org.onap.aai.inventory/v16">
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/port-groups/port-group/spanosifc2/cvlan-tags/cvlan-tag/333/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/port-groups/port-group/spanosifc1/cvlan-tags/cvlan-tag/333/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/port-groups/port-group/spanosifc1/cvlan-tags/cvlan-tag/111/</resource-link>
   </result-data>
   <result-data>
      <resource-type>port-group</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/port-groups/port-group/spanosifc1/</resource-link>
   </result-data>
   <result-data>
      <resource-type>vce</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/port-groups/port-group/spanosifc2/cvlan-tags/cvlan-tag/222/</resource-link>
   </result-data>
   <result-data>
      <resource-type>port-group</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/spanosvce/port-groups/port-group/spanosifc2/</resource-link>
   </result-data>
 </search-results>

Customer GET based on tenant id 

.. code-block::

   URL:

   /aai/v16/search/generic-query?key=tenant.tenant-id:spanospizzatenant&start-node-type=tenant&include=tenant&include=customer&include=service-subscription&depth=2

Search Result:

.. code-block:: xml

 <search-results xmlns="http://org.onap.aai.inventory/v16">
   <result-data>
      <resource-type>customer</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/examplecustomer/</resource-link>
   </result-data>
   <result-data>
      <resource-type>service-subscription</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/examplecustomer/service-subscriptions/service-subscription/ptplgamma/</resource-link>
   </result-data>
   <result-data>
      <resource-type>tenant</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/tenants/tenant/exampletenant/</resource-link>
   </result-data>
 </search-results>

Search the tenant given a customer and service subscription.  

.. code-block::

   URL:

   /aai/v16/search/generic-query?key=customer.global-customer-id:example-customer&key=service-subscription.service-type:example-service-type&start-node-type=service-subscription&include=tenant&include=service-subscription&depth=1

Search Result:

.. code-block::

  <search-results xmlns="http://org.onap.aai.inventory/v16">
   <result-data>
      <resource-type>service-subscription</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/examplecustomer/service-subscriptions/service-subscription/ptplgamma/</resource-link>
   </result-data>
   <result-data>
      <resource-type>tenant</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/tenants/tenant/spanospizzatenant/</resource-link>
   </result-data>
 </search-results>

For a service Instance - get its resource-link given the service-instance-id 

.. code-block::

   URL:

   /aai/v16/search/generic-query?key=service-instance.service-instance-id:exampleservice&start-node-type=service-instance&depth=0

Search Result:

.. code-block:: xml

 <search-results xmlns="http://org.onap.aai.inventory/v4">
   <result-data>
      <resource-type>service-instance</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/examplecustomer/service-subscriptions/service-subscription/ptplgamma/service-instances/service-instance/arnoldave/</resource-link>
   </result-data>
 </search-results>

Get service-instance and service-subscription from vce

.. code-block:: 

   URL:
   /aai/v16/search/generic-query?key=vce.vnf-id:spanosvce&start-node-type=vce&include=service-instance&include=service-subscription&depth=2

Search Result:

.. code-block:: xml

 <search-results xmlns="http://org.onap.aai.inventory/v16">
   <result-data>
      <resource-type>service-instance</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/examplecustomer/service-subscriptions/service-subscription/ptplgamma/service-instances/service-instance/arnoldave/</resource-link>
   </result-data>
   <result-data>
      <resource-type>service-subscription</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/examplecustomer/service-subscriptions/service-subscription/ptplgamma/</resource-link>
   </result-data>
 </search-results>

Get all the nodes for a customer

.. code-block::

   URL:

   /aai/v16/search/generic-query?key=customer.global-customer-id:examplecustomer&start-node-type=customer&include=all&depth=6

Search Result:

.. code-block:: xml

 <search-results xmlns="http://org.onap.aai.inventory/v16">
   <result-data>
      <resource-type>service-capability</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/service-design-and-creation/service-capabilities/service-capability/ptplgamma/ptplbrocade-vce/</resource-link>
   </result-data>
   <result-data>
      <resource-type>vserver</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/tenants/tenant/examplepizzatenant/vservers/vserver/ccwvm1/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/port-groups/port-group/exampleifc2/cvlan-tags/cvlan-tag/333/</resource-link>
   </result-data>
   <result-data>
      <resource-type>oam-network</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/oam-networks/oam-network/examplentwk/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/port-groups/port-group/exampleifc1/cvlan-tags/cvlan-tag/333/</resource-link>
   </result-data>
   <result-data>
      <resource-type>dvs-switch</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/dvs-switches/dvs-switch/dvsswitch-id1/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/port-groups/port-group/exampleifc1/cvlan-tags/cvlan-tag/111/</resource-link>
   </result-data>
   <result-data>
      <resource-type>customer</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/globalexample/</resource-link>
   </result-data>
   <result-data>
      <resource-type>service-subscription</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/globalexample/service-subscriptions/service-subscription/ptplgamma/</resource-link>
   </result-data>
   <result-data>
      <resource-type>port-group</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/port-groups/port-group/exampleifc1/</resource-link>
   </result-data>
   <result-data>
      <resource-type>tenant</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/tenants/tenant/examplepizzatenant/</resource-link>
   </result-data>
   <result-data>
      <resource-type>service-instance</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/business/customers/customer/globalexample/service-subscriptions/service-subscription/ptplgamma/service-instances/service-instance/arnoldave/</resource-link>
   </result-data>
   <result-data>
      <resource-type>pserver</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/pservers/pserver/ptpnj101snd/</resource-link>
   </result-data>
   <result-data>
      <resource-type>availability-zone</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/availability-zones/availability-zone/ptplaz1/</resource-link>
   </result-data>
   <result-data>
      <resource-type>vce</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/</resource-link>
   </result-data>
   <result-data>
      <resource-type>image</resource-type>
      <resource-link>https://aai.onap:8443/aai/v1/cloud-infrastructure/images/image/valueOfImageId/</resource-link>
   </result-data>
   <result-data>
      <resource-type>cvlan-tag</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/port-groups/port-group/exampleifc2/cvlan-tags/cvlan-tag/222/</resource-link>
   </result-data>
   <result-data>
      <resource-type>port-group</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/network/vces/vce/examplevce/port-groups/port-group/exampleifc2/</resource-link>
   </result-data>
   <result-data>
      <resource-type>ipaddress</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/tenants/tenant/examplepizzatenant/vservers/vserver/ccwvm1/ipaddresses/ipaddress/10.10.10.5/guid of port or interface/</resource-link>
   </result-data>
   <result-data>
      <resource-type>flavor</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/flavors/flavor/valueOfFlavorId/</resource-link>
   </result-data>
   <result-data>
      <resource-type>ipaddress</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/tenants/tenant/examplepizzatenant/vservers/vserver/ccwvm1/ipaddresses/ipaddress/10.10.10.4/guid of port or interface/</resource-link>
   </result-data>
   <result-data>
      <resource-type>complex</resource-type>
      <resource-link>https://aai.onap:8443/aai/v16/cloud-infrastructure/complexes/complex/PTPLNJ08742/</resource-link>
   </result-data>
 </search-results>