03867e3e89
Add ``user_id`` to response body of list backup with detail and show backup detail APIs. In this way, you can get the ``user_id`` in backup list or show response, make the admin/user easy to manage backup file. Blueprint: add-user-id-attribute-to-backup-response Change-Id: I3ffb544ef3ee65276cee8b1e870d524fd0e57085
66 lines
2.5 KiB
JSON
66 lines
2.5 KiB
JSON
{
|
|
"backups": [
|
|
{
|
|
"availability_zone": "az1",
|
|
"container": "volumebackups",
|
|
"created_at": "2013-04-02T10:35:27.000000",
|
|
"description": null,
|
|
"fail_reason": null,
|
|
"id": "2ef47aee-8844-490c-804d-2a8efe561c65",
|
|
"links": [
|
|
{
|
|
"href": "http://localhost:8776/v3/c95fc3e4afe248a49a28828f286a7b38/backups/2ef47aee-8844-490c-804d-2a8efe561c65",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://localhost:8776/c95fc3e4afe248a49a28828f286a7b38/backups/2ef47aee-8844-490c-804d-2a8efe561c65",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"name": "backup001",
|
|
"object_count": 22,
|
|
"os-backup-project-attr:project_id": "2c67a14be9314c5dae2ee6c4ec90cf0b",
|
|
"user_id": "515ba0dd59f84f25a6a084a45d8d93b2",
|
|
"size": 1,
|
|
"status": "available",
|
|
"updated_at": "2013-04-02T10:35:27.000000",
|
|
"volume_id": "e5185058-943a-4cb4-96d9-72c184c337d6",
|
|
"is_incremental": true,
|
|
"has_dependent_backups": false,
|
|
"metadata": {
|
|
"key": "value"}
|
|
},
|
|
{
|
|
"availability_zone": "az1",
|
|
"container": "volumebackups",
|
|
"created_at": "2013-04-02T10:21:48.000000",
|
|
"description": null,
|
|
"fail_reason": null,
|
|
"id": "4dbf0ec2-0b57-4669-9823-9f7c76f2b4f8",
|
|
"links": [
|
|
{
|
|
"href": "http://localhost:8776/v3/c95fc3e4afe248a49a28828f286a7b38/backups/4dbf0ec2-0b57-4669-9823-9f7c76f2b4f8",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://localhost:8776/c95fc3e4afe248a49a28828f286a7b38/backups/4dbf0ec2-0b57-4669-9823-9f7c76f2b4f8",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"name": "backup002",
|
|
"object_count": 22,
|
|
"os-backup-project-attr:project_id": "2c67a14be9314c5dae2ee6c4ec90cf0b",
|
|
"user_id": "515ba0dd59f84f25a6a084a45d8d93b2",
|
|
"size": 1,
|
|
"status": "available",
|
|
"updated_at": "2013-04-02T10:21:48.000000",
|
|
"volume_id": "e5185058-943a-4cb4-96d9-72c184c337d6",
|
|
"is_incremental": true,
|
|
"has_dependent_backups": false,
|
|
"metadata": {
|
|
"key": "value"}
|
|
}
|
|
],
|
|
"count": 10
|
|
}
|