{
  "openruna_format": "flow-graph-v1",
  "title": "PUQ Docker NextCloud deploy",
  "slug": "puq-docker-nextcloud-deploy",
  "source_filename": "1832_Code_Webhook_Automation_Webhook.json",
  "nodes": [
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Parametrs",
      "name": "Parametrs",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "API",
      "name": "API",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "422-Invalid server domain",
      "name": "422-Invalid server domain",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Container Actions",
      "name": "Container Actions",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Container Stats",
      "name": "Container Stats",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Inspect",
      "name": "Inspect",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Stat",
      "name": "Stat",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Start",
      "name": "Start",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Stop",
      "name": "Stop",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Mount Disk",
      "name": "Mount Disk",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Unmount Disk",
      "name": "Unmount Disk",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Log",
      "name": "Log",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Deploy-docker-compose",
      "name": "Deploy-docker-compose",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Version",
      "name": "Version",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Users",
      "name": "Users",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Change Password",
      "name": "Change Password",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "NextCloud",
      "name": "NextCloud",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "nginx",
      "name": "nginx",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Test Connection",
      "name": "Test Connection",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "ChangePackage",
      "name": "ChangePackage",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Terminated",
      "name": "Terminated",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Unsuspend",
      "name": "Unsuspend",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Suspend",
      "name": "Suspend",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Deploy",
      "name": "Deploy",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Service Actions",
      "name": "Service Actions",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "If1",
      "name": "If1",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Dependent containers Stat",
      "name": "Dependent containers Stat",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "GET ACL",
      "name": "GET ACL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "SET ACL",
      "name": "SET ACL",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "GET NET",
      "name": "GET NET",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "If2",
      "name": "If2",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Split domain",
      "name": "Split domain",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "DNS Service Actions",
      "name": "DNS Service Actions",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "DNS Parametrs",
      "name": "DNS Parametrs",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Add record",
      "name": "Add record",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Delete record",
      "name": "Delete record",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "API answer1",
      "name": "API answer1",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "d01-test.uuq.pl",
      "name": "d01-test.uuq.pl",
      "integration": "ssh",
      "kind": "action"
    },
    {
      "id": "d02-test.uuq.pl",
      "name": "d02-test.uuq.pl",
      "integration": "ssh",
      "kind": "action"
    },
    {
      "id": "Servers Switch",
      "name": "Servers Switch",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Code",
      "name": "Code",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "API answer2",
      "name": "API answer2",
      "integration": "respondToWebhook",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "Container Stats"
    },
    {
      "from": "If",
      "to": "Container Actions"
    },
    {
      "from": "If",
      "to": "NextCloud"
    },
    {
      "from": "If",
      "to": "If1"
    },
    {
      "from": "If",
      "to": "422-Invalid server domain"
    },
    {
      "from": "API",
      "to": "Parametrs"
    },
    {
      "from": "If1",
      "to": "nginx"
    },
    {
      "from": "If1",
      "to": "Service Actions"
    },
    {
      "from": "If2",
      "to": "DNS Service Actions"
    },
    {
      "from": "Log",
      "to": "Servers Switch"
    },
    {
      "from": "Code",
      "to": "API answer2"
    },
    {
      "from": "Stat",
      "to": "Servers Switch"
    },
    {
      "from": "Stop",
      "to": "Servers Switch"
    },
    {
      "from": "Start",
      "to": "Servers Switch"
    },
    {
      "from": "Users",
      "to": "Servers Switch"
    },
    {
      "from": "nginx",
      "to": "Deploy-docker-compose"
    },
    {
      "from": "Deploy",
      "to": "Servers Switch"
    },
    {
      "from": "GET ACL",
      "to": "Servers Switch"
    },
    {
      "from": "GET NET",
      "to": "Servers Switch"
    },
    {
      "from": "Inspect",
      "to": "Servers Switch"
    },
    {
      "from": "SET ACL",
      "to": "Servers Switch"
    },
    {
      "from": "Suspend",
      "to": "Servers Switch"
    },
    {
      "from": "Version",
      "to": "Servers Switch"
    },
    {
      "from": "NextCloud",
      "to": "Version"
    },
    {
      "from": "NextCloud",
      "to": "Users"
    },
    {
      "from": "NextCloud",
      "to": "Change Password"
    },
    {
      "from": "Parametrs",
      "to": "If"
    },
    {
      "from": "Unsuspend",
      "to": "Servers Switch"
    },
    {
      "from": "Mount Disk",
      "to": "Servers Switch"
    },
    {
      "from": "Terminated",
      "to": "Servers Switch"
    },
    {
      "from": "Split domain",
      "to": "DNS Parametrs"
    },
    {
      "from": "Unmount Disk",
      "to": "Servers Switch"
    },
    {
      "from": "ChangePackage",
      "to": "Servers Switch"
    },
    {
      "from": "DNS Parametrs",
      "to": "If2"
    },
    {
      "from": "Servers Switch",
      "to": "d01-test.uuq.pl"
    },
    {
      "from": "Servers Switch",
      "to": "d02-test.uuq.pl"
    },
    {
      "from": "Change Password",
      "to": "Servers Switch"
    },
    {
      "from": "Container Stats",
      "to": "Inspect"
    },
    {
      "from": "Container Stats",
      "to": "Stat"
    },
    {
      "from": "Container Stats",
      "to": "Log"
    },
    {
      "from": "Container Stats",
      "to": "Dependent containers Stat"
    },
    {
      "from": "Container Stats",
      "to": "Split domain"
    },
    {
      "from": "Service Actions",
      "to": "Test Connection"
    },
    {
      "from": "Service Actions",
      "to": "Deploy"
    },
    {
      "from": "Service Actions",
      "to": "Split domain"
    },
    {
      "from": "Service Actions",
      "to": "Suspend"
    },
    {
      "from": "Service Actions",
      "to": "Unsuspend"
    },
    {
      "from": "Service Actions",
      "to": "Terminated"
    },
    {
      "from": "Service Actions",
      "to": "Split domain"
    },
    {
      "from": "Service Actions",
      "to": "ChangePackage"
    },
    {
      "from": "Service Actions",
      "to": "Split domain"
    },
    {
      "from": "Test Connection",
      "to": "Servers Switch"
    },
    {
      "from": "d01-test.uuq.pl",
      "to": "Code"
    },
    {
      "from": "d01-test.uuq.pl",
      "to": "Code"
    },
    {
      "from": "d02-test.uuq.pl",
      "to": "Code"
    },
    {
      "from": "d02-test.uuq.pl",
      "to": "Code"
    },
    {
      "from": "Container Actions",
      "to": "Start"
    },
    {
      "from": "Container Actions",
      "to": "Stop"
    },
    {
      "from": "Container Actions",
      "to": "Mount Disk"
    },
    {
      "from": "Container Actions",
      "to": "Unmount Disk"
    },
    {
      "from": "Container Actions",
      "to": "GET ACL"
    },
    {
      "from": "Container Actions",
      "to": "SET ACL"
    },
    {
      "from": "Container Actions",
      "to": "GET NET"
    },
    {
      "from": "DNS Service Actions",
      "to": "Add record"
    },
    {
      "from": "DNS Service Actions",
      "to": "API answer1"
    },
    {
      "from": "DNS Service Actions",
      "to": "Add record"
    },
    {
      "from": "DNS Service Actions",
      "to": "Delete record"
    },
    {
      "from": "DNS Service Actions",
      "to": "Add record"
    },
    {
      "from": "DNS Service Actions",
      "to": "Delete record"
    },
    {
      "from": "DNS Service Actions",
      "to": "Add record"
    },
    {
      "from": "Deploy-docker-compose",
      "to": "Service Actions"
    },
    {
      "from": "Dependent containers Stat",
      "to": "Servers Switch"
    }
  ]
}