trove/api-ref/source/samples/instance-list-detail-response.json
Lingxian Kong 429c39890e Support ip address type for instances
Include address type in getting instance response.

* Deprecate confip option network_label_regex as we don't reply on Nova
  to get addresses, network names don't make any sense.
* Add 'addresses' in instance API response, keep 'ip' as is but mark
  it deprecated in API doc, python-troveclient shouldn't break.

Story: 2007562
Task: 39445

Change-Id: Ia0458b5ddae8959ce29c17e444e1a51a026283cd
2020-04-26 09:56:50 +12:00

101 lines
3.3 KiB
JSON

{
"instances": [
{
"addresses": [
{
"address": "10.1.0.62",
"type": "private"
},
{
"address": "172.24.5.114",
"type": "public"
}
],
"created": "2019-12-23T20:58:35",
"datastore": {
"type": "mysql",
"version": "5.7"
},
"flavor": {
"id": "6",
"links": [
{
"href": "https://127.0.0.1:8779/v1.0/9f8dd5eacb074c9f87d2d822c9092aa5/flavors/6",
"rel": "self"
},
{
"href": "https://127.0.0.1:8779/flavors/6",
"rel": "bookmark"
}
]
},
"id": "7de1bed8-6983-4d46-9a52-0abfbb0d27a2",
"ip": [
"10.1.0.62",
"172.24.5.114"
],
"links": [
{
"href": "https://127.0.0.1:8779/v1.0/9f8dd5eacb074c9f87d2d822c9092aa5/instances/7de1bed8-6983-4d46-9a52-0abfbb0d27a2",
"rel": "self"
},
{
"href": "https://127.0.0.1:8779/instances/7de1bed8-6983-4d46-9a52-0abfbb0d27a2",
"rel": "bookmark"
}
],
"name": "test",
"region": "RegionOne",
"service_status_updated": "2019-12-23T21:01:11",
"status": "HEALTHY",
"updated": "2019-12-23T20:58:45",
"volume": {
"size": 1
}
},
{
"created": "2019-12-23T20:53:38",
"datastore": {
"type": "mysql",
"version": "5.7"
},
"fault": {
"created": "2019-12-23T20:53:41",
"details": null,
"message": "Failed to create User port for instance b76a6a76-748b-4064-adec-4c9e6c9abd68"
},
"flavor": {
"id": "6",
"links": [
{
"href": "https://127.0.0.1:8779/v1.0/9f8dd5eacb074c9f87d2d822c9092aa5/flavors/6",
"rel": "self"
},
{
"href": "https://127.0.0.1:8779/flavors/6",
"rel": "bookmark"
}
]
},
"id": "b76a6a76-748b-4064-adec-4c9e6c9abd68",
"links": [
{
"href": "https://127.0.0.1:8779/v1.0/9f8dd5eacb074c9f87d2d822c9092aa5/instances/b76a6a76-748b-4064-adec-4c9e6c9abd68",
"rel": "self"
},
{
"href": "https://127.0.0.1:8779/instances/b76a6a76-748b-4064-adec-4c9e6c9abd68",
"rel": "bookmark"
}
],
"name": "test",
"region": "RegionOne",
"service_status_updated": "2019-12-23T20:53:38",
"status": "ERROR",
"updated": "2019-12-23T20:53:41",
"volume": {
"size": 1
}
}
]
}