Sample orchestrations are provided in this section for your reference. Substitute the variables with your tenant names, network, and storage information.
Simple Single Instance
This orchestration creates a simple instance.
{ "name": "/mytenant/public/single_instance", "description": "Orchestration containing a single instance", "oplans": [ { "obj_type": "launchplan", "label": "single_instance_plan", "objects": [ { "instances": [ { "name": "/mytenant/public/single_instance", "label": "single_instance", "shape": "oc3", "imagelist": "/oracle/public/linux6_16.3.1_64", "networking": { "net0": { "vnet": "/mytenant/public/ipoib1-vnet" }, "net1": { "vnetreservation": "/mytenant/public/vnetreservation_1" }, }, } } ] } ] } ] }
Simple Single Volume
This orchestration creates only a storage volume. It does not create an instance.
{ "description": "Orchestration containing a single storage volume", "name": "/mytenant/public/vol1", "oplans": [ { "ha_policy": "monitor", "label": "tools", "obj_type": "storage/volume", "objects": [ { "name": "/mytenant/public/vol1", "properties": [ "/oracle/public/storage/default" ], "size": "1G" } ] } ] }
Single Instance with Storage Attachment
This orchestration creates an instance with a storage attachment and two network connections. One network connection is based on vNet and the other one is based on vNet reservation.
{ "description": "Instance with storage attachment and vnetreservation", "name": "/mytenant/public/instance_with_attachment", "oplans": [ { "label": "instance-with-attachment", "obj_type": "launchplan", "objects": [ { "instances": [ { "name": "/mytenant/public/instance_ref_sv", "label": "instance-with-attachment", "shape": "oc3", "imagelist": "/oracle/public/linux6_16.3.1_64", "networking": { "net0": { "vnet": "/mytenant/public/ipoib1-vnet" }, "net1": { "vnetreservation": "/mytenant/public/vnetreservation_1" }, }, "storage_attachments": [ { "index": 1, "volume": "/mytenant/public/vol1" } ] } ] } ] } ] }
Instance with Storage Volume
This orchestration creates an instance and storage volume. The storage volume is attached to the instance.
{ "name": "/mytenant/public/mytenant_sv_instance", "description": "Orchestration containing a storage volume and an instance using that volume", "oplans": [ { "label": "instance-with-attachment", "obj_type": "launchplan", "objects": [ { "instances": [ { "imagelist": "/oracle/public/linux6_16.3.1_64", "label": "instance-with-attachment", "name": "/mytenant/public/instance/with/attachment", "networking": { "net0": { "vnet": "/mytenant/public/ipoib1" } }, "shape": "oc3", "storage_attachments": [ { "index": 1, "volume": "/mytenant/public/vol10" } ] } ] } ] }, { "label": "volume-vol10", "obj_type": "storage/volume", "objects": [ { "name": "/mytenant/public/vol10", "properties": [ "/oracle/public/storage/default" ], "size": "10G" } ] } ], "relationships": [ { "oplan": "instance-with-attachment", "to_oplan": "volume-vol10", "type": "depends" } ] }
Multiple Instances with Instance Relationships
This orchestration creates three instances in which two instances have same node relationship and two instances have different node relationships.
{ "description": "3 instances with same node/different node relationships", "name": "/mytenant/public/relationships", "oplans": [ { "ha_policy": "", "label": "related-instances", "obj_type": "launchplan", "objects": [ { "instances": [ { "imagelist": "/oracle/public/linux6_16.3.1_64", "label": "instance-a", "name": "/mytenant/public/a", "networking": { "net0": { "vnet": "/mytenant/public/ipoib1-vnet" } }, "shape": "oc3" }, { "imagelist": "/oracle/public/linux6_16.3.1_64", "label": "instance-b", "name": "/mytenant/public/b", "networking": { "net0": { "vnet": "/mytenant/public/ipoib1-vnet" } }, "shape": "oc3" }, { "imagelist": "/oracle/public/linux6_16.3.1_64", "label": "instance-c", "name": "/mytenant/public/c", "networking": { "net0": { "vnet": "/mytenant/public/ipoib1-vnet" } }, "shape": "oc3" } ], "relationships": [ { "instances": [ "instance-a", "instance-b" ], "type": "same_node" }, { "instances": [ "instance-b", "instance-c" ], "type": "different_node" } ] } ] } ] }