Create Data Flow

Ops Center Protector REST API User Guide

Version
7.6.x
Audience
anonymous
Part Number
MK-99PRT005-06

A Data Flow is used to define from where the data will originate and to where the data will be sent.

The Policy created earlier will be applied to the Master Node which will send the data to the Repository Node via a batch mover.

The Master Node ID, Repository Node ID and Policy ID are required within the Data Flow.

Create Data Flow
curl --insecure --cookie demosession
"https://demomaster/API/7.1/master/DataFlowHandler/objects/DataFlows" --
data @createdataflow.json --header "Content-Type: application/json"
Create Data Flow Response
{
              "createdDate": "2020-05-11T15:20:03Z",
              "data": {
                  "compilerDirectives": "",
                  "connections": [
                    {
                        "bandwidthSettings": {
                          "hoursOfWeek": [
                          ],
                          "throttleDefaultSpeed": false    
                      },
                      "destination": "166",
                      "id": "168",
                      "label": "",
                      "netCompression": false,
                      "routedPolicies": [
                          "141eb1403015408aa3e6a77e2ae1ab22"
                      ],
                      "source": "167",
                      "type": "eCT_BATCH"
                    }
                  ],
                  "description": "",
                  "name": "demodataflow",
                  "nodes": [
                    {
                      "assignedPolicies": [
                        {
                            "id": "141eb1403015408aa3e6a77e2ae1ab22",
                            "operations": [
                                {
                                  "id": 1,
                                  "operationType": "",
                                  "propertyType": "ot_repositoryDestination"
                                }
                              ]
                            }
                          ],
                          "drawInstructions": {
                              "x": 360,
                              "y": 180
                          },
                          "id": "166",
                          "isDestination": true,
                          "isGroup": false,
                          "nodeId": "RepositoryHP@00-25FAAB-3B94CF-459595-78584C[1-1-8D]",
                          "type": "HBBRepository"
                         },
                         {
                            "assignedPolicies": [
                                {
                                    "id": "141eb1403015408aa3e6a77e2ae1ab22",
                                    "operations": [
                                    ]
                                 }
                              ],
                              "drawInstructions": {
                                    "x": 90,
                                    "y": 180
                              },
                              "id": "167",
                              "isDestination": false,
                              "isGroup": false,
                              "nodeId": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]",
                              "type": "OSHost"
                            }
                          ],
                          "userTags": [
                          ]
                       },
                        "id": "da2afe41-a936-4879-8cba-ed37aa421b26",
                        "isActive": false,
                        "modifiedDate": "2020-05-11T15:20:03Z",
                        "numInError": 0,
                        "numInProgress": 0,
                        "numNotifications": 0,
                        "numOffline": 0,
                        "permissions": [
                            {
                                "access": "eA_READWRITE",
                                "propertyType": "pt_user",
                                "pt_user": {
                                    "upn": "Administrator@master"
                                  }
                              }
                          ],
                          "version": 1,
                          "versionActive": 0
                  }

Contents of ‘createdataflow.json’

{
    "data": {
        "connections": [
            {
                "destination": "c3903",
                "id": "c4017",
                "label": "",
                "netCompression": false,
                "routedPolicies": [
                    "141eb1403015408aa3e6a77e2ae1ab22"
                ],
                "source": "c3921",
                "type": "eCT_BATCH"
            }
        ],
        "description": "",
        "name": "demodataflow",
        "nodes": [
            {
                "assignedPolicies": [
                    {
                        "id": "141eb1403015408aa3e6a77e2ae1ab22",
                        "operations": [
                            {
                                "id": 1
                            }
                        ]
                    }
                ],
                "drawInstructions": {
                    "h": 90,
                    "w": 90,
                    "x": 360,
                    "y": 180
                },
                "id": "c3903",
                "name": " RepositoryHP",
                "nodeId": "RepositoryHP@00-25FAAB-3B94CF-459595-78584C[1-1-8D]",
                "type": "HBBRepository"
            },
            {
                "assignedPolicies": [
                    {
                        "id": "141eb1403015408aa3e6a77e2ae1ab22",
                        "operations": []
                    }
                ],
                "drawInstructions": {
                    "h": 90,
                    "w": 90,
                    "x": 90,
                    "y": 180
                },
                "id": "c3921",
                "name": "demomaster",
                "nodeId": "demomaster@BZ-334922-442788-343Z2Z-YYZ744[0-1-1]",
                "type": "OSHost"
            }
        ],
        "userTags": []
    }
}