Browse Source

Add project_id to backup response

Change-Id: I99fb3d0c7ea7036bbb622d86eef9f31e53065a0a
tags/14.0.0.0rc1
Lingxian Kong 2 weeks ago
parent
commit
86a0102a00
3 changed files with 10 additions and 0 deletions
  1. +3
    -0
      api-ref/source/backups.inc
  2. +6
    -0
      api-ref/source/parameters.yaml
  3. +1
    -0
      trove/backup/views.py

+ 3
- 0
api-ref/source/backups.inc View File

@@ -53,6 +53,7 @@ Response Parameters
- size: backup_size
- status: backup_status
- updated: updated
- project_id: project_uuid


Response Example
@@ -116,6 +117,7 @@ Response Parameters
- size: backup_size
- status: backup_status
- updated: updated
- project_id: project_uuid


Response Example
@@ -164,6 +166,7 @@ Response Parameters
- size: backup_size
- status: backup_status
- updated: updated
- project_id: project_uuid


Response Example


+ 6
- 0
api-ref/source/parameters.yaml View File

@@ -649,6 +649,12 @@ nics:
in: body
required: false
type: array
project_uuid:
description: |
The project ID of the resource.
in: body
required: true
type: string
quota_in_use:
description: |
The used quota for a resource.


+ 1
- 0
trove/backup/views.py View File

@@ -32,6 +32,7 @@ class BackupView(object):
"size": self.backup.size,
"status": self.backup.state,
"parent_id": self.backup.parent_id,
"project_id": self.backup.tenant_id
}
}
if self.backup.datastore_version_id:


Loading…
Cancel
Save