aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/test/resources/decisions/decision.guard.vfCount.6.input.json
blob: e00d67ae77022bda190a15bd613bc33c19cc5dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "ONAPName": "Policy",
  "ONAPComponent": "drools-pdp",
  "ONAPInstance": "usecase-template",
  "requestId": "unique-request-id-2",
  "action": "guard",
  "resource": {
      "guard": {
          "actor": "SO",
          "recipe": "VF Module Create",
          "clname": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
          "target": "vLoadBalancer-00",
          "vfCount" : "6"
      }
  }
}
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627
{
  "title": "onap.policies.controlloop.operational.common.Apex",
  "type": "object",
  "description": "Operational policies for Apex PDP",
  "required": [
    "abatement",
    "operations",
    "trigger",
    "timeout",
    "id",
    "engineServiceParameters",
    "eventOutputParameters",
    "eventInputParameters"
  ],
  "properties": {
    "abatement": {
      "type": "boolean",
      "description": "Whether an abatement event message will be expected for the control loop from DCAE.",
      "default": "false"
    },
    "operations": {
      "type": "array",
      "description": "List of operations to be performed when Control Loop is triggered.",
      "items": {
        "title": "onap.datatype.controlloop.Operation",
        "type": "object",
        "description": "An operation supported by an actor",
        "required": [
          "id",
          "operation",
          "retries",
          "timeout"
        ],
        "properties": {
          "failure_retries": {
            "type": "string",
            "description": "Points to the operation to invoke when the current operation has exceeded its max retries.",
            "default": "final_failure_retries"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier for the operation"
          },
          "failure_timeout": {
            "type": "string",
            "description": "Points to the operation to invoke when the time out for the operation occurs.",
            "default": "final_failure_timeout"
          },
          "failure": {
            "type": "string",
            "description": "Points to the operation to invoke on Actor operation failure.",
            "default": "final_failure"
          },
          "operation": {
            "title": "onap.datatype.controlloop.Actor",
            "type": "object",
            "description": "An actor/operation/target definition",
            "required": [
              "target",
              "actor",
              "operation"
            ],
            "properties": {
              "payload": {
                "type": "object",
                "description": "Name/value pairs of payload information passed by Policy to the actor",
                "anyOf": [
                  {
                    "title": "resource-assignment",
                    "properties": {
                      "artifact_name": {
                        "title": "artifact_name",
                        "type": "string",
                        "default": "baseconfiguration",
                        "readOnly": "True"
                      },
                      "artifact_version": {
                        "title": "artifact_version",
                        "type": "string",
                        "default": "1.0.0",
                        "readOnly": "True"
                      },
                      "mode": {
                        "title": "mode",
                        "type": "string",
                        "default": "async",
                        "readOnly": "True"
                      },
                      "data": {
                        "title": "data",
                        "type": "object",
                        "properties": {
                          "resource-assignment-properties": {
                            "request-id": "",
                            "service-instance-id": "",
                            "vnf-id": "",
                            "action-name": "",
                            "scope-type": "",
                            "hostname": "",
                            "vnf_name": ""
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "activate",
                    "properties": {
                      "artifact_name": {
                        "title": "artifact_name",
                        "type": "string",
                        "default": "baseconfiguration",
                        "readOnly": "True"
                      },
                      "artifact_version": {
                        "title": "artifact_version",
                        "type": "string",
                        "default": "1.0.0",
                        "readOnly": "True"
                      },
                      "mode": {
                        "title": "mode",
                        "type": "string",
                        "default": "async",
                        "readOnly": "True"
                      },
                      "data": {
                        "title": "data",
                        "type": "object",
                        "properties": {
                          "resource-assignment-properties": {
                            "request-id": "",
                            "service-instance-id": "",
                            "vnf-id": "",
                            "action-name": "",
                            "scope-type": "",
                            "hostname": "",
                            "vnf_name": ""
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "activate-restconf",
                    "properties": {
                      "artifact_name": {
                        "title": "artifact_name",
                        "type": "string",
                        "default": "baseconfiguration",
                        "readOnly": "True"
                      },
                      "artifact_version": {
                        "title": "artifact_version",
                        "type": "string",
                        "default": "1.0.0",
                        "readOnly": "True"
                      },
                      "mode": {
                        "title": "mode",
                        "type": "string",
                        "default": "async",
                        "readOnly": "True"
                      },
                      "data": {
                        "title": "data",
                        "type": "object",
                        "properties": {
                          "resource-assignment-properties": {
                            "request-id": "",
                            "service-instance-id": "",
                            "vnf-id": "",
                            "action-name": "",
                            "scope-type": "",
                            "hostname": "",
                            "vnf_name": ""
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "activate-cli",
                    "properties": {
                      "artifact_name": {
                        "title": "artifact_name",
                        "type": "string",
                        "default": "baseconfiguration",
                        "readOnly": "True"
                      },
                      "artifact_version": {
                        "title": "artifact_version",
                        "type": "string",
                        "default": "1.0.0",
                        "readOnly": "True"
                      },
                      "mode": {
                        "title": "mode",
                        "type": "string",
                        "default": "async",
                        "readOnly": "True"
                      },
                      "data": {
                        "title": "data",
                        "type": "object",
                        "properties": {
                          "resource-assignment-properties": {
                            "request-id": "",
                            "service-instance-id": "",
                            "vnf-id": "",
                            "action-name": "",
                            "scope-type": "",
                            "hostname": "",
                            "vnf_name": ""
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "assign-activate",
                    "properties": {
                      "artifact_name": {
                        "title": "artifact_name",
                        "type": "string",
                        "default": "baseconfiguration",
                        "readOnly": "True"
                      },
                      "artifact_version": {
                        "title": "artifact_version",
                        "type": "string",
                        "default": "1.0.0",
                        "readOnly": "True"
                      },
                      "mode": {
                        "title": "mode",
                        "type": "string",
                        "default": "async",
                        "readOnly": "True"
                      },
                      "data": {
                        "title": "data",
                        "type": "object",
                        "properties": {
                          "resource-assignment-properties": {
                            "request-id": "",
                            "service-instance-id": "",
                            "vnf-id": "",
                            "action-name": "",
                            "scope-type": "",
                            "hostname": "",
                            "vnf_name": ""
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "imperative-test-wf",
                    "properties": {
                      "artifact_name": {
                        "title": "artifact_name",
                        "type": "string",
                        "default": "baseconfiguration",
                        "readOnly": "True"
                      },
                      "artifact_version": {
                        "title": "artifact_version",
                        "type": "string",
                        "default": "1.0.0",
                        "readOnly": "True"
                      },
                      "mode": {
                        "title": "mode",
                        "type": "string",
                        "default": "async",
                        "readOnly": "True"
                      },
                      "data": {
                        "title": "data",
                        "type": "object",
                        "properties": {
                          "resource-assignment-properties": {
                            "request-id": "",
                            "service-instance-id": "",
                            "vnf-id": "",
                            "action-name": "",
                            "scope-type": "",
                            "hostname": "",
                            "vnf_name": ""
                          }
                        }
                      }
                    }
                  },
                  {
                    "title": "User defined",
                    "properties": {}
                  }
                ]
              },
              "target": {
                "title": "onap.datatype.controlloop.Target",
                "type": "object",
                "description": "Definition for a entity in A&AI to perform a control loop operation on",
                "required": [
                  "targetType"
                ],
                "properties": {
                  "entityIds": {
                    "type": "object",
                    "description": "Map of values that identify the resource. If none are provided, it is assumed that the\nentity that generated the ONSET event will be the target.\n",
                    "anyOf": [
                      {
                        "title": "VNF-vLoadBalancerMS 0",
                        "properties": {
                          "resourceID": {
                            "title": "Resource ID",
                            "type": "string",
                            "default": "vLoadBalancerMS",
                            "readOnly": "True"
                          }
                        }
                      },
                      {
                        "title": "VFMODULE-Vloadbalancerms..vpkg..module-1",
                        "properties": {
                          "resourceID": {
                            "title": "Resource ID",
                            "type": "string",
                            "default": "Vloadbalancerms..vpkg..module-1",
                            "readOnly": "True"
                          },
                          "modelInvariantId": {
                            "title": "Model Invariant Id (ModelInvariantUUID)",
                            "type": "string",
                            "default": "ca052563-eb92-4b5b-ad41-9111768ce043",
                            "readOnly": "True"
                          },
                          "modelVersionId": {
                            "title": "Model Version Id (ModelUUID)",
                            "type": "string",
                            "default": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
                            "readOnly": "True"
                          },
                          "modelName": {
                            "title": "Model Name",
                            "type": "string",
                            "default": "Vloadbalancerms..vpkg..module-1",
                            "readOnly": "True"
                          },
                          "modelVersion": {
                            "title": "Model Version",
                            "type": "string",
                            "default": "1",
                            "readOnly": "True"
                          },
                          "modelCustomizationId": {
                            "title": "Customization ID",
                            "type": "string",
                            "default": "1bffdc31-a37d-4dee-b65c-dde623a76e52",
                            "readOnly": "True"
                          }
                        }
                      },
                      {
                        "title": "VFMODULE-Vloadbalancerms..vdns..module-3",
                        "properties": {
                          "resourceID": {
                            "title": "Resource ID",
                            "type": "string",
                            "default": "Vloadbalancerms..vdns..module-3",
                            "readOnly": "True"
                          },
                          "modelInvariantId": {
                            "title": "Model Invariant Id (ModelInvariantUUID)",
                            "type": "string",
                            "default": "4c10ba9b-f88f-415e-9de3-5d33336047fa",
                            "readOnly": "True"
                          },
                          "modelVersionId": {
                            "title": "Model Version Id (ModelUUID)",
                            "type": "string",
                            "default": "4fa73b49-8a6c-493e-816b-eb401567b720",
                            "readOnly": "True"
                          },
                          "modelName": {
                            "title": "Model Name",
                            "type": "string",
                            "default": "Vloadbalancerms..vdns..module-3",
                            "readOnly": "True"
                          },
                          "modelVersion": {
                            "title": "Model Version",
                            "type": "string",
                            "default": "1",
                            "readOnly": "True"
                          },
                          "modelCustomizationId": {
                            "title": "Customization ID",
                            "type": "string",
                            "default": "bafcdab0-801d-4d81-9ead-f464640a38b1",
                            "readOnly": "True"
                          }
                        }
                      },
                      {
                        "title": "VFMODULE-Vloadbalancerms..base_template..module-0",
                        "properties": {
                          "resourceID": {
                            "title": "Resource ID",
                            "type": "string",
                            "default": "Vloadbalancerms..base_template..module-0",
                            "readOnly": "True"
                          },
                          "modelInvariantId": {
                            "title": "Model Invariant Id (ModelInvariantUUID)",
                            "type": "string",
                            "default": "921f7c96-ebdd-42e6-81b9-1cfc0c9796f3",
                            "readOnly": "True"
                          },
                          "modelVersionId": {
                            "title": "Model Version Id (ModelUUID)",
                            "type": "string",
                            "default": "63734409-f745-4e4d-a38b-131638a0edce",
                            "readOnly": "True"
                          },
                          "modelName": {
                            "title": "Model Name",
                            "type": "string",
                            "default": "Vloadbalancerms..base_template..module-0",
                            "readOnly": "True"
                          },
                          "modelVersion": {
                            "title": "Model Version",
                            "type": "string",
                            "default": "1",
                            "readOnly": "True"
                          },
                          "modelCustomizationId": {
                            "title": "Customization ID",
                            "type": "string",
                            "default": "86baddea-c730-4fb8-9410-cd2e17fd7f27",
                            "readOnly": "True"
                          }
                        }
                      },
                      {
                        "title": "VFMODULE-Vloadbalancerms..vlb..module-2",
                        "properties": {
                          "resourceID": {
                            "title": "Resource ID",
                            "type": "string",
                            "default": "Vloadbalancerms..vlb..module-2",
                            "readOnly": "True"
                          },
                          "modelInvariantId": {
                            "title": "Model Invariant Id (ModelInvariantUUID)",
                            "type": "string",
                            "default": "a772a1f4-0064-412c-833d-4749b15828dd",
                            "readOnly": "True"
                          },
                          "modelVersionId": {
                            "title": "Model Version Id (ModelUUID)",
                            "type": "string",
                            "default": "0f5c3f6a-650a-4303-abb6-fff3e573a07a",
                            "readOnly": "True"
                          },
                          "modelName": {
                            "title": "Model Name",
                            "type": "string",
                            "default": "Vloadbalancerms..vlb..module-2",
                            "readOnly": "True"
                          },
                          "modelVersion": {
                            "title": "Model Version",
                            "type": "string",
                            "default": "1",
                            "readOnly": "True"
                          },
                          "modelCustomizationId": {
                            "title": "Customization ID",
                            "type": "string",
                            "default": "96a78aad-4ffb-4ef0-9c4f-deb03bf1d806",
                            "readOnly": "True"
                          }
                        }
                      }
                    ]
                  },
                  "targetType": {
                    "type": "string",
                    "description": "Category for the target type",
                    "enum": [
                      "VNF",
                      "VM",
                      "VFMODULE",
                      "PNF"
                    ]
                  }
                }
              },
              "actor": {
                "type": "string",
                "description": "The actor performing the operation.",
                "enum": [
                  "SDNR",
                  "SDNC",
                  "VFC",
                  "SO",
                  "APPC",
                  "CDS"
                ],
                "options": {
                  "enum_titles": [
                    "SDNR",
                    "SDNC",
                    "VFC",
                    "SO",
                    "APPC"
                  ]
                }
              },
              "operation": {
                "type": "string",
                "description": "The operation the actor is performing.",
                "enum": [
                  "BandwidthOnDemand",
                  "VF Module Delete",
                  "Reroute",
                  "VF Module Create",
                  "ModifyConfig",
                  "Rebuild",
                  "Restart",
                  "Migrate",
                  "Health-Check",
                  "resource-assignment",
                  "activate",
                  "activate-restconf",
                  "activate-cli",
                  "assign-activate",
                  "imperative-test-wf"
                ],
                "options": {
                  "enum_titles": [
                    "BandwidthOnDemand (SDNC operation)",
                    "VF Module Delete (SO operation)",
                    "Reroute (SDNC operation)",
                    "VF Module Create (SO operation)",
                    "ModifyConfig (APPC/VFC operation)",
                    "Rebuild (APPC operation)",
                    "Restart (APPC operation)",
                    "Migrate (APPC operation)",
                    "Health-Check (APPC operation)",
                    "resource-assignment (CDS operation)",
                    "activate (CDS operation)",
                    "activate-restconf (CDS operation)",
                    "activate-cli (CDS operation)",
                    "assign-activate (CDS operation)",
                    "imperative-test-wf (CDS operation)"
                  ]
                }
              }
            }
          },
          "failure_guard": {
            "type": "string",
            "description": "Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.",
            "default": "final_failure_guard"
          },
          "retries": {
            "type": "integer",
            "description": "The number of retries the actor should attempt to perform the operation.",
            "default": "0"
          },
          "timeout": {
            "type": "integer",
            "description": "The amount of time for the actor to perform the operation."
          },
          "failure_exception": {
            "type": "string",
            "description": "Points to the operation to invoke when the current operation causes an exception.",
            "default": "final_failure_exception"
          },
          "description": {
            "type": "string",
            "description": "A user-friendly description of the intent for the operation"
          },
          "success": {
            "type": "string",
            "description": "Points to the operation to invoke on success. A value of \"final_success\" indicates and end to the operation.",
            "default": "final_success"
          }
        }
      },
      "format": "tabs-top"
    },
    "trigger": {
      "type": "string",
      "description": "Initial operation to execute upon receiving an Onset event message for the Control Loop."
    },
    "timeout": {
      "type": "integer",
      "description": "Overall timeout for executing all the operations. This timeout should equal or exceed the total\ntimeout for each operation listed.\n"
    },
    "id": {
      "type": "string",
      "description": "The unique control loop id."
    },
    "engineServiceParameters": {
      "type": "string",
      "description": "The engine parameters like name, instanceCount, policy implementation, parameters etc."
    },
    "eventOutputParameters": {
      "type": "string",
      "description": "The event output parameters."
    },
    "javaProperties": {
      "type": "string",
      "description": "Name/value pairs of properties to be set for APEX if needed."
    },
    "eventInputParameters": {
      "type": "string",
      "description": "The event input parameters."
    }
  }
}