17ba7bc92e
The Compute ID (server_id) and Volume ID (volume_id) associated with a trove instance are useful information for an administrator. This commit add these fields to the trove show output. They will only be visible to users with admin rights. Change-Id: I4a39b59ae610803f5aaf849f2e20ebb6e4ea1565 Closes-Bug: 1633581
61 lines
2.0 KiB
JSON
61 lines
2.0 KiB
JSON
{
|
|
"instances": [
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"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",
|
|
"server": {
|
|
"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"
|
|
},
|
|
"server_id": "44b277eb-39be-4921-be31-3d61b43651d7",
|
|
"service_status": "ACTIVE",
|
|
"status": "ACTIVE",
|
|
"task_description": "No tasks for the instance.",
|
|
"tenant_id": "3000",
|
|
"updated": "2014-10-30T12:30:00",
|
|
"volume": {
|
|
"size": 4
|
|
},
|
|
"volume_id": "VOL_44b277eb-39be-4921-be31-3d61b43651d7"
|
|
}
|
|
]
|
|
}
|