3f93ff110b
This is an initial attempt at supporting multiple regions. It should handle the mechanics of deploying an instance/volume to a remote region. Additional changes may be required to allow the guest agent on the instance to connect back to the originating region. Co-Authored-By: Petr Malik <pmalik@tesora.com> Change-Id: I780de59dae5f90955139ab8393cf7d59ff3a21f6
81 lines
2.5 KiB
JSON
81 lines
2.5 KiB
JSON
{
|
|
"instance": {
|
|
"created": "2014-10-30T12:30:00",
|
|
"datastore": {
|
|
"type": "mysql",
|
|
"version": "5.5"
|
|
},
|
|
"deleted": false,
|
|
"deleted_at": null,
|
|
"flavor": {
|
|
"id": "3",
|
|
"links": [
|
|
{
|
|
"href": "https://troveapi.org/v1.0/1234/flavors/3",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "https://troveapi.org/flavors/3",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"guest_status": {
|
|
"state_description": "running"
|
|
},
|
|
"hostname": "e09ad9a3f73309469cf1f43d11e79549caf9acf2.troveexampledb.com",
|
|
"id": "44b277eb-39be-4921-be31-3d61b43651d7",
|
|
"links": [
|
|
{
|
|
"href": "https://troveapi.org/v1.0/1234/instances/44b277eb-39be-4921-be31-3d61b43651d7",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "https://troveapi.org/instances/44b277eb-39be-4921-be31-3d61b43651d7",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"name": "json_rack_instance",
|
|
"region": "RegionOne",
|
|
"root_enabled": "2014-10-30T12:30:00",
|
|
"root_enabled_by": "3000",
|
|
"server": {
|
|
"addresses": {
|
|
"private": [
|
|
{
|
|
"addr": "123.123.123.123"
|
|
}
|
|
]
|
|
},
|
|
"deleted": false,
|
|
"deleted_at": null,
|
|
"host": "hostname_1",
|
|
"id": "44b277eb-39be-4921-be31-3d61b43651d7",
|
|
"local_id": 0,
|
|
"name": "44b277eb-39be-4921-be31-3d61b43651d7-lay",
|
|
"status": "ACTIVE",
|
|
"tenant_id": "3000"
|
|
},
|
|
"service_status": "ACTIVE",
|
|
"status": "ACTIVE",
|
|
"task_description": "No tasks for the instance.",
|
|
"tenant_id": "3000",
|
|
"updated": "2014-10-30T12:30:00",
|
|
"volume": {
|
|
"attachments": [
|
|
{
|
|
"device": "vdb",
|
|
"server_id": "44b277eb-39be-4921-be31-3d61b43651d7"
|
|
}
|
|
],
|
|
"availability_zone": "fake-availability-zone",
|
|
"created_at": "2001-01-01-12:30:30",
|
|
"id": "VOL_44b277eb-39be-4921-be31-3d61b43651d7",
|
|
"size": 4,
|
|
"status": "in-use",
|
|
"total": 4.0,
|
|
"used": 0.16
|
|
}
|
|
}
|
|
}
|