From 1c20ce2e854861e1ba4505adf4c2c349b8b74418 Mon Sep 17 00:00:00 2001 From: TommyLike Date: Tue, 30 Jan 2018 17:02:00 +0800 Subject: [PATCH] Add 'metadata' in backup detail&show API document Backup metadata is available in backup list&show APIs since 3.43, update the document. Change-Id: I056ed13124cdb64b5be8012898fb038e112fbe86 --- api-ref/source/v3/ext-backups.inc | 2 ++ api-ref/source/v3/samples/backup-show-response.json | 5 ++++- .../source/v3/samples/backups-list-detailed-response.json | 8 ++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/api-ref/source/v3/ext-backups.inc b/api-ref/source/v3/ext-backups.inc index 2770631648e..e88ec77edcb 100644 --- a/api-ref/source/v3/ext-backups.inc +++ b/api-ref/source/v3/ext-backups.inc @@ -90,6 +90,7 @@ Response Parameters - snapshot_id: snapshot_id_2 - os-backup-project-attr:project_id: os-backup-project-attr:project_id - count: count + - metadata: metadata_9 Response Example ---------------- @@ -143,6 +144,7 @@ Response Parameters - data_timestamp: data_timestamp - snapshot_id: snapshot_id_2 - os-backup-project-attr:project_id: os-backup-project-attr:project_id + - metadata: metadata_9 Response Example ---------------- diff --git a/api-ref/source/v3/samples/backup-show-response.json b/api-ref/source/v3/samples/backup-show-response.json index e83b3313342..eff2e4ac019 100644 --- a/api-ref/source/v3/samples/backup-show-response.json +++ b/api-ref/source/v3/samples/backup-show-response.json @@ -27,6 +27,9 @@ "updated_at": "2013-04-02T10:35:27.000000", "volume_id": "e5185058-943a-4cb4-96d9-72c184c337d6", "is_incremental": true, - "has_dependent_backups": false + "has_dependent_backups": false, + "metadata": { + "key": "value" + } } } diff --git a/api-ref/source/v3/samples/backups-list-detailed-response.json b/api-ref/source/v3/samples/backups-list-detailed-response.json index fa37f029980..6cf72cf9e51 100644 --- a/api-ref/source/v3/samples/backups-list-detailed-response.json +++ b/api-ref/source/v3/samples/backups-list-detailed-response.json @@ -25,7 +25,9 @@ "updated_at": "2013-04-02T10:35:27.000000", "volume_id": "e5185058-943a-4cb4-96d9-72c184c337d6", "is_incremental": true, - "has_dependent_backups": false + "has_dependent_backups": false, + "metadata": { + "key": "value"} }, { "availability_zone": "az1", @@ -52,7 +54,9 @@ "updated_at": "2013-04-02T10:21:48.000000", "volume_id": "e5185058-943a-4cb4-96d9-72c184c337d6", "is_incremental": true, - "has_dependent_backups": false + "has_dependent_backups": false, + "metadata": { + "key": "value"} } ], "count": 10