update link to upper-constraints.txt
[optf/osdf.git] / test / placement-tests / request.json
index 2fd425c..d9b16ca 100644 (file)
-{\r
-       "requestInfo": {\r
-               "transactionId": "xxx-xxx-xxxx",\r
-               "requestId": "yyy-yyy-yyyy",\r
-               "callbackUrl": "https://test.url.com:5000/callback/",\r
-               "sourceId": "so",\r
-               "optimizers": ["placement"],\r
-               "numSolutions": 1,\r
-               "timeout": 600\r
-       },\r
-       "placementInfo": {\r
-               "serviceModelInfo": {\r
-                       "modelType": "service",\r
-                       "modelInvariantId": "fad5f4d5-1c94-4890-927d-9cec6e82997f",\r
-                       "modelVersionId": "6e13c5e1-f172-436c-9cc4-0d64c94eb7f4",\r
-                       "modelName": "vCPE",\r
-                       "modelVersion": "1.0"\r
-               },\r
-               "subscriberInfo": {\r
-                       "globalSubscriberId": "SUB12_0325_UD_0833",\r
-                       "subscriberName": "SUB_12_0325_UD_0833",\r
-                       "subscriberCommonSiteId": "DALTX0101"\r
-               },\r
-               "demandInfo": {\r
-                       "placementDemand": [{\r
-                                       "resourceInstanceType": "allotted",\r
-                                       "serviceResourceId": "61d563e8-e714-4393-8f99-cc480144a05e",\r
-                                       "resourceModuleName": "vGMuxInfra",\r
-                                       "exclusionCandidateInfo": [{\r
-                                                       "candidateType": "cloud",\r
-                                                       "candidates": ["MDT54NJ", "BDM78NJ"]\r
-                                               }, {\r
-                                                       "candidateType": "service",\r
-                                                       "candidates": ["RT76U8F789", "PO098HJG"]\r
-                                               }\r
-                                       ],\r
-                                       "requiredCandidateInfo": [{\r
-                                                       "candidateType": "cloud",\r
-                                                       "candidates": ["DHU87NY"]\r
-                                               }, {\r
-                                                       "candidateType": "service",\r
-                                                       "candidates": ["YHT675YH"]\r
-                                               }\r
-                                       ],\r
-                                       "resourceModelInfo": {\r
-                                               "modelCustomizationId": "",\r
-                                               "modelInvariantId": "h59988ce-3d81-4e07-81b5-53d3aa821134",\r
-                                               "modelName": "",\r
-                                               "modelVersion": "2.0",\r
-                                               "modelVersionId": "51d563e8-e714-4393-8f99-cc480144a05e",\r
-                                               "modelType": "allotted"\r
-                                       },\r
-                                       "tenantId": "",\r
-                                       "tenantName": ""\r
-                               }, {\r
-                                       "resourceInstanceType": "allotted",\r
-                                       "serviceResourceId": "71d563e8-e714-4393-8f99-cc480144a05e",\r
-                                       "resourceModuleName": "vG",\r
-                                       "resourceModelInfo": {\r
-                                               "modelCustomizationId": "",\r
-                                               "modelInvariantId": "a59988ce-3d81-4e07-81b5-53d3aa821134",\r
-                                               "modelName": "",\r
-                                               "modelVersion": "2.0",\r
-                                               "modelVersionId": "91d563e8-e714-4393-8f99-cc480144a05e",\r
-                                               "modelType": "allotted"\r
-                                       },\r
-                                       "tenantId": "",\r
-                                       "tenantName": ""\r
-                               }\r
-                       ],\r
-                       "licenseDemand": []\r
-               },\r
-               "policyId": [\r
-                       ""\r
-               ],\r
-               "serviceInstanceId": "1234-fsdf-23sdf-24kjnk",\r
-               "requestParameters": {\r
-\r
-                               "commonSiteId": "DALTX0101",\r
-                               "vendorName": "xyz",\r
-                               "e2eVpnKey": "200",\r
-                               "vcpeHostName": "USOSTCDALTX0101UJZZ11"\r
-\r
-               }\r
-\r
-       }\r
+{
+  "requestInfo": {
+    "transactionId": "xxx-xxx-xxxx",
+    "requestId": "yyy-yyy-yyyy",
+    "callbackUrl": "https://wiki.onap.org:5000/callbackUrl/",
+    "sourceId": "SO",
+    "requestType": "create",
+    "numSolutions": 1,
+    "optimizers": ["placement"],
+    "timeout": 600
+  },
+  "placementInfo": {
+    "requestParameters": { "customerLatitude": 32.89748, "customerLongitude": -97.040443, "customerName": "xyz" },
+    "subscriberInfo": {"globalSubscriberId": "xxx-xx-xxx", "subscriberName": "subscriber_x"},
+    "placementDemands": [
+        {
+            "resourceModuleName": "vGMuxInfra",
+            "serviceResourceId": "vGMuxInfra-xx",
+            "tenantId": "vGMuxInfra-tenant",
+            "resourceModelInfo": {
+                "modelInvariantId": "vGMuxInfra-modelInvariantId",
+                "modelVersionId": "vGMuxInfra-versionId",
+                "modelName": "vGMuxInfra-model",
+                "modelType": "resource",
+                "modelVersion": "1.0",
+                "modelCustomizationName": "vGMuxInfra-customeModelName"
+            }
+        },
+        {
+            "resourceModuleName": "vG",
+            "serviceResourceId": "71d563e8-e714-4393-8f99-cc480144a05e",
+            "tenantId": "vG-tenant",
+            "resourceModelInfo": {
+                "modelInvariantId": "vG-modelInvariantId",
+                "modelVersionId": "vG-versionId",
+                "modelName": "vG-model",
+                "modelType": "resource",
+                "modelVersion": "1.0",
+                "modelCustomizationName": "vG-customeModelName"
+            },
+            "existingCandidates": [
+                {
+                    "identifierType": "serviceInstanceId",
+                    "cloudOwner": "",
+                    "identifiers": ["gjhd-098-fhd-987"]
+                }
+            ],
+            "excludedCandidates": [
+                {
+                    "identifierType": "serviceInstanceId",
+                    "cloudOwner": "",
+                    "identifiers": ["gjhd-098-fhd-987"]
+                },
+                {
+                    "identifierType": "vimId",
+                    "cloudOwner": "vmware",
+                    "identifiers": ["NYMDT67"]
+                }
+            ],
+            "requiredCandidates": [
+                {
+                    "identifierType": "vimId",
+                    "cloudOwner": "amazon",
+                    "identifiers": ["TXAUS219"]
+                }
+            ]
+        }
+    ]
+  },
+  "serviceInfo": {
+    "serviceInstanceId": "d61b2543-5914-4b8f-8e81-81e38575b8ec",
+    "serviceName": "vCPE",
+    "modelInfo": {
+      "modelInvariantId": "vCPE-invariantId",
+      "modelVersionId": "vCPE-versionId",
+      "modelName": "vCPE-model",
+      "modelType": "service",
+      "modelVersion": "1.0",
+      "modelCustomizationName": "vCPE-customeModelName"
+    }
+  },
+  "licenseInfo": {
+      "licenseDemands": [
+        {
+          "resourceModuleName": "vGMuxInfra",
+          "serviceResourceId": "vGMuxInfra-xx",
+          "resourceModelInfo": {
+            "modelInvariantId": "vGMuxInfra-modelInvariantId",
+            "modelVersionId": "vGMuxInfra-versionId",
+            "modelName": "vGMuxInfra-model",
+            "modelType": "resource",
+            "modelVersion": "1.0",
+            "modelCustomizationName": "vGMuxInfra-customeModelName"
+          },
+          "existingLicenses": {
+            "entitlementPoolUUID": ["87257b49-9602-4ca1-9817-094e52bc873b", "43257b49-9602-4fe5-9337-094e52bc9435"],
+            "licenseKeyGroupUUID": ["87257b49-9602-4ca1-9817-094e52bc873b", "43257b49-9602-4fe5-9337-094e52bc9435"]
+          }
+        }
+      ]
+  }
 }
\ No newline at end of file