summaryrefslogtreecommitdiffstats
path: root/docs/guides/onap-user/instantiate/instantiation/so2/index.rst
blob: 02a5f70d3cd156a9cbf1d3faf3af06b3019cdfba (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
.. This work is licensed under a Creative Commons Attribution 4.0
.. International License. http://creativecommons.org/licenses/by/4.0
.. Copyright 2019 ONAP Contributors.  All rights reserved.

.. _doc_guide_user_ser_inst_so2:


Macro mode Service Instantiation via ONAP SO API
================================================

Using Macro mode, you have to build and send only one request to ONAP SO

In that request you need to indicate all object instances
that you want to be instantiated.

Reminder : ONAP SO in Macro mode will perform the VNF parameters/values
assignment based on CDS Blueprint templates
that are supposed to be defined during Design and Onboard steps.
That means ONAP has all information
to be able to get all necessary values by itself (there is no longer need
for an Operator to provide "SDNC preload").

Additional info in:

.. toctree::
   :maxdepth: 1
   :titlesonly:

   CDS Documentation <../../../../../submodules/ccsdk/cds.git/docs/index.rst>
   CDS vDNS E2E Automation <https://wiki.onap.org/display/DW/vDNS+CDS+Dublin>


Request Example :

::

  curl -X POST \
    'http://{{k8s}}:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances' \
    -H 'Content-Type: application/json' \
    -H 'cache-control: no-cache' \
    -d '{
    "requestDetails": {
      "subscriberInfo": {
        "globalSubscriberId": "Demonstration"
      },
      "requestInfo": {
        "suppressRollback": false,
        "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
        "requestorId": "adt",
        "instanceName": "{{cds-instance-name}}",
        "source": "VID"
      },
      "cloudConfiguration": {
        "lcpCloudRegionId": "fr1",
        "tenantId": "6270eaa820934710960682c506115453"
      },
      "requestParameters": {
        "subscriptionServiceType": "vFW",
        "userParams": [
          {
            "Homing_Solution": "none"
          },
          {
            "service": {
              "instanceParams": [

              ],
              "instanceName": "{{cds-instance-name}}",
              "resources": {
                "vnfs": [
                  {
                    "modelInfo": {
                  "modelName": "{{vnf-modelinfo-modelname}}",
                  "modelVersionId": "{{vnf-modelinfo-modeluuid}}",
                  "modelInvariantUuid": "{{vnf-modelinfo-modelinvariantuuid}}",
                  "modelVersion": "1.0",
                  "modelCustomizationId": "{{vnf-modelinfo-modelcustomizationuuid}}",
                  "modelInstanceName": "{{vnf-modelinfo-modelinstancename}}"
                    },
                    "cloudConfiguration": {
                      "lcpCloudRegionId": "fr1",
                      "tenantId": "6270eaa820934710960682c506115453"
                    },
                    "platform": {
                      "platformName": "test"
                    },
                    "lineOfBusiness": {
                      "lineOfBusinessName": "someValue"
                    },
                    "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
                    "instanceName": "{{vnf-modelinfo-modelinstancename}}",
                    "instanceParams": [
                      {
                        "onap_private_net_id": "olc-private",
                        "onap_private_subnet_id": "olc-private",
                        "pub_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwj7uJMyKiP1ogEsZv5kKDFw9mFNhxI+woR3Tuv8vjfNnqdB1GfSnvTFyNbdpyNdR8BlljkiZ1SlwJLEkvPk0HpOoSVVek/QmBeGC7mxyRcpMB2cNQwjXGfsVrforddXOnOkj+zx1aNdVGMc52Js3pex8B/L00H68kOcwP26BI1o77Uh+AxjOkIEGs+wlWNUmXabLDCH8l8IJk9mCTruKEN9KNj4NRZcaNC+XOz42SyHV9RT3N6efp31FqKzo8Ko63QirvKEEBSOAf9VlJ7mFMrGIGH37AP3JJfFYEHDdOA3N64ZpJLa39y25EWwGZNlWpO/GW5bNjTME04dl4eRyd",
                        "image_name": "Ubuntu 14.04",
                        "flavor_name":"s1.cw.small-1"
                      }
                    ],
                    "vfModules": [
                      {
                        "modelInfo": {
                          "modelName": "{{vnf-vfmodule-0-modelinfo-modelname}}",
                          "modelVersionId": "{{vnf-vfmodule-0-modelinfo-modeluuid}}",
                         "modelInvariantUuid": "{{vnf-vfmodule-0-modelinfo-modelinvariantuuid}}",
                          "modelVersion": "1",
                          "modelCustomizationId": "{{vnf-vfmodule-0-modelinfo-modelcustomizationuuid}}"
                         },
                        "instanceName": "{{vnf-vfmodule-0-modelinfo-modelname}}",
                        "instanceParams": [
                                                   {
                            "sec_group": "olc-open",
                            "public_net_id": "olc-net"
                          }
                        ]
                      },
                      {
                        "modelInfo": {
                          "modelName": "{{vnf-vfmodule-1-modelinfo-modelname}}",
                          "modelVersionId": "{{vnf-vfmodule-1-modelinfo-modeluuid}}",
                          "modelInvariantUuid": "{{vnf-vfmodule-1-modelinfo-modelinvariantuuid}}",
                          "modelVersion": "1",
                          "modelCustomizationId": "{{vnf-vfmodule-1-modelinfo-modelcustomizationuuid}}"
                         },
                        "instanceName": "{{vnf-vfmodule-1-modelinfo-modelname}}",
                        "instanceParams": [
                          {
                            "sec_group": "olc-open",
                            "public_net_id": "olc-net"
                          }
                        ]
                      },
                      {
                        "modelInfo": {
                          "modelName": "{{vnf-vfmodule-2-modelinfo-modelname}}",
                          "modelVersionId": "{{vnf-vfmodule-2-modelinfo-modeluuid}}",
                          "modelInvariantUuid": "{{vnf-vfmodule-2-modelinfo-modelinvariantuuid}}",
                          "modelVersion": "1",
                          "modelCustomizationId": "{{vnf-vfmodule-2-modelinfo-modelcustomizationuuid}}"
                         },
                        "instanceName": "{{vnf-vfmodule-2-modelinfo-modelname}}",
                        "instanceParams": [
                          {
                            "sec_group": "olc-open",
                            "public_net_id": "olc-net"
                          }
                        ]
                      },
                      {
                        "modelInfo": {
                          "modelName": "{{vnf-vfmodule-3-modelinfo-modelname}}",
                          "modelVersionId": "{{vnf-vfmodule-3-modelinfo-modeluuid}}",
                          "modelInvariantUuid": "{{vnf-vfmodule-3-modelinfo-modelinvariantuuid}}",
                          "modelVersion": "1",
                          "modelCustomizationId": "{{vnf-vfmodule-3-modelinfo-modelcustomizationuuid}}"
                        },
                        "instanceName": "{{vnf-vfmodule-3-modelinfo-modelname}}",
                        "instanceParams": [
                          {
                            "sec_group": "olc-open",
                            "public_net_id": "olc-net"
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              "modelInfo": {
                "modelVersion": "1.0",
          "modelVersionId": "{{service-uuid}}",
          "modelInvariantId": "{{service-invariantUUID}}",
          "modelName": "{{service-name}}",
                "modelType": "service"
              }
            }
          }
        ],
        "aLaCarte": false
      },
      "project": {
        "projectName": "Project-Demonstration"
      },
      "owningEntity": {
        "owningEntityId": "24ef5425-bec4-4fa3-ab03-c0ecf4eaac96",
        "owningEntityName": "OE-Demonstration"
      },
      "modelInfo": {
        "modelVersion": "1.0",
          "modelVersionId": "{{service-uuid}}",
          "modelInvariantId": "{{service-invariantUUID}}",
          "modelName": "{{service-name}}",
       "modelType": "service"
      }
    }
  }'