{
  "primitives": [
    {
      "id": "A",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [
        {
          "id": "A-migrate_from-interval-0s",
          "name": "migrate_from",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "A-migrate_to-interval-0s",
          "name": "migrate_to",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "A-monitor-interval-10s",
          "name": "monitor",
          "interval": "10s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "A-reload-interval-0s",
          "name": "reload",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "A-reload-agent-interval-0s",
          "name": "reload-agent",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "A-start-interval-0s",
          "name": "start",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "A-stop-interval-0s",
          "name": "stop",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "20s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        }
      ],
      "meta_attributes": [
        {
          "id": "A-meta_attributes",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "A-meta_attributes-target-role",
              "name": "target-role",
              "value": "Stopped"
            }
          ]
        }
      ],
      "instance_attributes": [
        {
          "id": "A-instance_attributes",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "A-instance_attributes-fake",
              "name": "fake",
              "value": "some-value"
            }
          ]
        }
      ],
      "utilization": [
        {
          "id": "A-utilization",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "A-utilization-cpu",
              "name": "cpu",
              "value": "1"
            }
          ]
        }
      ]
    },
    {
      "id": "B",
      "agent_name": {
        "standard": "systemd",
        "provider": null,
        "type": "crond"
      },
      "description": null,
      "operations": [
        {
          "id": "B-monitor-interval-60s",
          "name": "monitor",
          "interval": "60s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "100s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "B-start-interval-0s",
          "name": "start",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "100s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        },
        {
          "id": "B-stop-interval-0s",
          "name": "stop",
          "interval": "0s",
          "description": null,
          "start_delay": null,
          "interval_origin": null,
          "timeout": "100s",
          "enabled": null,
          "record_pending": null,
          "role": null,
          "on_fail": null,
          "meta_attributes": [],
          "instance_attributes": []
        }
      ],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    },
    {
      "id": "C",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    },
    {
      "id": "D",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    },
    {
      "id": "E",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    },
    {
      "id": "F",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    },
    {
      "id": "G",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    },
    {
      "id": "H",
      "agent_name": {
        "standard": "ocf",
        "provider": "pacemaker",
        "type": "Stateful"
      },
      "description": null,
      "operations": [],
      "meta_attributes": [],
      "instance_attributes": [],
      "utilization": []
    }
  ],
  "clones": [
    {
      "id": "F-clone",
      "description": null,
      "member_id": "F",
      "meta_attributes": [
        {
          "id": "F-clone-meta_attributes",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "F-clone-meta_attributes-promotable",
              "name": "promotable",
              "value": "true"
            },
            {
              "id": "F-clone-meta_attributes-adhoc",
              "name": "adhoc",
              "value": "true"
            }
          ]
        }
      ],
      "instance_attributes": []
    },
    {
      "id": "G3-clone",
      "description": null,
      "member_id": "G3",
      "meta_attributes": [],
      "instance_attributes": []
    }
  ],
  "groups": [
    {
      "id": "G1",
      "description": null,
      "member_ids": ["C", "D"],
      "meta_attributes": [
        {
          "id": "G1-meta_attributes",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "G1-meta_attributes-is-managed",
              "name": "is-managed",
              "value": "true"
            },
            {
              "id": "G1-meta_attributes-target-role",
              "name": "target-role",
              "value": "Started"
            }
          ]
        }
      ],
      "instance_attributes": []
    },
    {
      "id": "G2",
      "description": null,
      "member_ids": ["E"],
      "meta_attributes": [],
      "instance_attributes": []
    },
    {
      "id": "G3",
      "description": null,
      "member_ids": ["G"],
      "meta_attributes": [],
      "instance_attributes": []
    }
  ],
  "bundles": [
    {
      "id": "B-without-primitive",
      "description": null,
      "member_id": null,
      "container_type": "docker",
      "container_options": {
        "image": "my:image1",
        "replicas": 2,
        "replicas_per_host": null,
        "promoted_max": null,
        "run_command": null,
        "network": null,
        "options": null
      },
      "network": {
        "ip_range_start": null,
        "control_port": 3121,
        "host_interface": null,
        "host_netmask": 32,
        "add_host": null
      },
      "port_mappings": [
        {
          "id": "B-without-primitive-port-map-23456",
          "port": 23456,
          "internal_port": null,
          "range": null
        },
        {
          "id": "B-without-primitive-port-map-34567",
          "port": 34567,
          "internal_port": 45678,
          "range": null
        }
      ],
      "storage_mappings": [
        {
          "id": "B-without-primitive-storage-map",
          "source_dir": "/tmp/source1",
          "source_dir_root": null,
          "target_dir": "/tmp/target1",
          "options": null
        },
        {
          "id": "B-without-primitive-storage-map-1",
          "source_dir": "/tmp/source2",
          "source_dir_root": null,
          "target_dir": "/tmp/target2",
          "options": null
        }
      ],
      "meta_attributes": [
        {
          "id": "B-without-primitive-meta_attributes",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "B-without-primitive-meta_attributes-an-attr",
              "name": "an-attr",
              "value": "a value"
            },
            {
              "id": "B-without-primitive-meta_attributes-target-role",
              "name": "target-role",
              "value": "Stopped"
            }
          ]
        }
      ],
      "instance_attributes": []
    },
    {
      "id": "B-with-primitive",
      "description": null,
      "member_id": "H",
      "container_type": "docker",
      "container_options": {
        "image": "my:image2",
        "replicas": 2,
        "replicas_per_host": 2,
        "promoted_max": 1,
        "run_command": "/bin/true",
        "network": "extra_network_settings",
        "options": "extra_options"
      },
      "network": {
        "ip_range_start": "192.168.100.200",
        "control_port": 3122,
        "host_interface": "eth0",
        "host_netmask": 32,
        "add_host": true
      },
      "port_mappings": [
        {
          "id": "B-with-primitive-port-map-33456",
          "port": 33456,
          "internal_port": null,
          "range": null
        },
        {
          "id": "B-with-primitive-port-map-44567",
          "port": 44567,
          "internal_port": 55678,
          "range": null
        },
        {
          "id": "B-with-primitive-port-map-33457-33459",
          "port": null,
          "internal_port": null,
          "range": "33457-33459"
        }
      ],
      "storage_mappings": [
        {
          "id": "B-with-primitive-storage-map",
          "source_dir": "/tmp/source3",
          "source_dir_root": null,
          "target_dir": "/tmp/target3",
          "options": null
        },
        {
          "id": "B-with-primitive-storage-map-1",
          "source_dir": null,
          "source_dir_root": "/tmp/source4",
          "target_dir": "/tmp/target4",
          "options": "extra_options"
        }
      ],
      "meta_attributes": [
        {
          "id": "B-with-primitive-meta_attributes",
          "options": {},
          "rule": null,
          "nvpairs": [
            {
              "id": "B-with-primitive-meta_attributes-target-role",
              "name": "target-role",
              "value": "Stopped"
            }
          ]
        }
      ],
      "instance_attributes": []
    },
    {
      "id": "B-min",
      "description": null,
      "member_id": null,
      "container_type": "docker",
      "container_options": {
        "image": "my:image1",
        "replicas": null,
        "replicas_per_host": null,
        "promoted_max": null,
        "run_command": null,
        "network": null,
        "options": null
      },
      "network": null,
      "port_mappings": [],
      "storage_mappings": [],
      "meta_attributes": [],
      "instance_attributes": []
    }
  ]
}
