Add project_id to backup response

Change-Id: I99fb3d0c7ea7036bbb622d86eef9f31e53065a0a
This commit is contained in:
Lingxian Kong 2020-09-15 10:03:53 +12:00
parent 2cd5bb6f83
commit 86a0102a00
3 changed files with 10 additions and 0 deletions

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

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.

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: