c4cb31f8d9f105e7698ebdf74b1a32905c23a430
[optf/osdf.git] / test / placement-tests / request.json
1 {
2   "requestInfo": {
3     "transactionId": "xxx-xxx-xxxx",
4     "requestId": "yyy-yyy-yyyy",
5     "callbackUrl": "https://wiki.onap.org:5000/callbackUrl/",
6     "sourceId": "SO",
7     "requestType": "create",
8     "numSolutions": 1,
9     "optimizers": ["placement"],
10     "timeout": 600
11   },
12   "placementInfo": {
13     "requestParameters": { "customerLatitude": 32.89748, "customerLongitude": -97.040443, "customerName": "xyz" },
14     "placementDemands": [
15         {
16             "resourceModuleName": "vGMuxInfra",
17             "serviceResourceId": "vGMuxInfra-xx",
18             "tenantId": "vGMuxInfra-tenant",
19             "resourceModelInfo": {
20                 "modelInvariantId": "vGMuxInfra-modelInvariantId",
21                 "modelVersionId": "vGMuxInfra-versionId",
22                 "modelName": "vGMuxInfra-model",
23                 "modelType": "resource",
24                 "modelVersion": "1.0",
25                 "modelCustomizationName": "vGMuxInfra-customeModelName"
26             }
27         },
28         {
29             "resourceModuleName": "vG",
30             "serviceResourceId": "71d563e8-e714-4393-8f99-cc480144a05e",
31             "tenantId": "vG-tenant",
32             "resourceModelInfo": {
33                 "modelInvariantId": "vG-modelInvariantId",
34                 "modelVersionId": "vG-versionId",
35                 "modelName": "vG-model",
36                 "modelType": "resource",
37                 "modelVersion": "1.0",
38                 "modelCustomizationName": "vG-customeModelName"
39             },
40             "existingCandidates": [
41                 {
42                     "identifierType": "serviceInstanceId",
43                     "cloudOwner": "",
44                     "identifiers": ["gjhd-098-fhd-987"]
45                 }
46             ],
47             "excludedCandidates": [
48                 {
49                     "identifierType": "serviceInstanceId",
50                     "cloudOwner": "",
51                     "identifiers": ["gjhd-098-fhd-987"]
52                 },
53                 {
54                     "identifierType": "vimId",
55                     "cloudOwner": "vmware",
56                     "identifiers": ["NYMDT67"]
57                 }
58             ],
59             "requiredCandidates": [
60                 {
61                     "identifierType": "vimId",
62                     "cloudOwner": "amazon",
63                     "identifiers": ["TXAUS219"]
64                 }
65             ]
66         }
67     ]
68   },
69   "serviceInfo": {
70     "serviceInstanceId": "d61b2543-5914-4b8f-8e81-81e38575b8ec",
71     "serviceName": "vCPE",
72     "modelInfo": {
73       "modelInvariantId": "vCPE-invariantId",
74       "modelVersionId": "vCPE-versionId",
75       "modelName": "vCPE-model",
76       "modelType": "service",
77       "modelVersion": "1.0",
78       "modelCustomizationName": "vCPE-customeModelName"
79     }
80   },
81   "licenseInfo": {
82       "licenseDemands": [
83         {
84           "resourceModuleName": "vGMuxInfra",
85           "serviceResourceId": "vGMuxInfra-xx",
86           "resourceModelInfo": {
87             "modelInvariantId": "vGMuxInfra-modelInvariantId",
88             "modelVersionId": "vGMuxInfra-versionId",
89             "modelName": "vGMuxInfra-model",
90             "modelType": "resource",
91             "modelVersion": "1.0",
92             "modelCustomizationName": "vGMuxInfra-customeModelName"
93           },
94           "existingLicenses": {
95             "entitlementPoolUUID": ["87257b49-9602-4ca1-9817-094e52bc873b", "43257b49-9602-4fe5-9337-094e52bc9435"],
96             "licenseKeyGroupUUID": ["87257b49-9602-4ca1-9817-094e52bc873b", "43257b49-9602-4fe5-9337-094e52bc9435"]
97           }
98         }
99       ]
100   }
101 }