summaryrefslogtreecommitdiffstats
path: root/ms/controllerblueprints/modules/service/load/resource_dictionary/db-source.json
blob: cd4e282b4bf023a7a66bf0ef79682d585db63d49 (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
{
  "name": "bundle-id",
  "property" :{
    "description": "name of the ",
    "type": "string"
  },
  "resource-type": "ONAP",
  "resource-path": "vnf/bundle-id",
  "updated-by": "brindasanth@onap.com",
  "tags": "bundle-id, brindasanth@onap.com",
  "sources": {
    "db": {
      "type": "source-db",
      "properties": {
        "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
        "input-key-mapping": {
          "profile_name": "profile_name"
        },
        "output-key-mapping": {
          "db-country": "country",
          "db-state": "state"
        }
      }
    }
  },
  "decryption-rules": [
    {
      "sources": [
        "input"
      ],
      "path": "/.",
      "rule": "LOCAL-Decrypt",
      "decrypt-type": "AES128"
    }
  ]
}