summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api-ref/source/backups.inc3
-rwxr-xr-xapi-ref/source/parameters.yaml6
-rw-r--r--trove/backup/views.py1
3 files changed, 10 insertions, 0 deletions
diff --git a/api-ref/source/backups.inc b/api-ref/source/backups.inc
index 61828ef9..a9a086c2 100644
--- a/api-ref/source/backups.inc
+++ b/api-ref/source/backups.inc
@@ -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
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index fb07c8ce..af40e4f9 100755
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -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.
diff --git a/trove/backup/views.py b/trove/backup/views.py
index c4b1ad8f..4d2a18c3 100644
--- a/trove/backup/views.py
+++ b/trove/backup/views.py
@@ -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: