diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-04-16 17:50:55 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-04-26 09:56:50 +1200 |
commit | 429c39890e3242c6a502037673943b38452c5811 (patch) | |
tree | 1ecb67979bcb664996e6f1e1a0146b59567e8a0a /api-ref/source/samples | |
parent | a4057b10af44e7f21243e539dd2daad2ad61657b (diff) | |
download | trove-429c39890e3242c6a502037673943b38452c5811.tar.gz |
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
Diffstat (limited to 'api-ref/source/samples')
4 files changed, 40 insertions, 0 deletions
diff --git a/api-ref/source/samples/instance-list-detail-response.json b/api-ref/source/samples/instance-list-detail-response.json index fd785b99..619c87bf 100644 --- a/api-ref/source/samples/instance-list-detail-response.json +++ b/api-ref/source/samples/instance-list-detail-response.json @@ -1,6 +1,16 @@ { "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", diff --git a/api-ref/source/samples/instance-mgmt-list-response.json b/api-ref/source/samples/instance-mgmt-list-response.json index 706fdf79..f67e6325 100644 --- a/api-ref/source/samples/instance-mgmt-list-response.json +++ b/api-ref/source/samples/instance-mgmt-list-response.json @@ -1,6 +1,16 @@ { "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", diff --git a/api-ref/source/samples/instance-mgmt-show-response.json b/api-ref/source/samples/instance-mgmt-show-response.json index 649f0b58..eea90bc9 100644 --- a/api-ref/source/samples/instance-mgmt-show-response.json +++ b/api-ref/source/samples/instance-mgmt-show-response.json @@ -1,5 +1,15 @@ { "instance": { + "addresses": [ + { + "address": "10.1.0.62", + "type": "private" + }, + { + "address": "172.24.5.114", + "type": "public" + } + ], "created": "2019-12-23T20:58:35", "datastore": { "type": "mysql", diff --git a/api-ref/source/samples/instance-show-response.json b/api-ref/source/samples/instance-show-response.json index 4a162db3..32fa7f8b 100644 --- a/api-ref/source/samples/instance-show-response.json +++ b/api-ref/source/samples/instance-show-response.json @@ -1,5 +1,15 @@ { "instance": { + "addresses": [ + { + "address": "10.1.0.62", + "type": "private" + }, + { + "address": "172.24.5.114", + "type": "public" + } + ], "created": "2019-12-23T20:58:35", "datastore": { "type": "mysql", |