cinder/api-ref/source/v3/samples/backups-list-response.json
TommyLike 23b7463984 Support count info in List&Detail APIs
This patch adds support for display count info
in volume, backup and snapshot's list&detail APIs
since microversion 3.45, for instance:

1. /v3/{project_id}/volumes?with_count=True
2. /v3/{project_id}/volumes/detail?with_count=True

Depends-On: 1c8fe0ade4
Change-Id: I2e92b27c36357120fcf0ec5917c6484441c946a8
Implements: bp add-amount-info-in-list-api
2017-10-25 08:43:47 +00:00

62 lines
2.3 KiB
JSON

{
"backups": [
{
"status": "available",
"object_count": 0,
"container": null,
"name": "volume-backup",
"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"
}
],
"availability_zone": "nova",
"created_at": "2017-06-20T05:30:19.000000",
"description": null,
"updated_at": "2017-06-20T05:30:19.000000",
"data_timestamp": "2017-06-20T05:30:19.000000",
"has_dependent_backups": false,
"snapshot_id": null,
"volume_id": "0b38d3f5-68fb-41db-9a99-337a96fdfa96",
"fail_reason": null,
"is_incremental": false,
"id": "2ef47aee-8844-490c-804d-2a8efe561c65",
"size": 1
},
{
"status": "available",
"object_count": 0,
"container": null,
"name": "volume-backup",
"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"
}
],
"availability_zone": "nova",
"created_at": "2017-06-20T05:30:19.000000",
"description": null,
"updated_at": "2017-06-20T05:30:19.000000",
"data_timestamp": "2017-06-20T05:30:19.000000",
"has_dependent_backups": false,
"snapshot_id": null,
"volume_id": "0b38d3f5-68fb-41db-9a99-337a96fdfa96",
"fail_reason": null,
"is_incremental": false,
"id": "4dbf0ec2-0b57-4669-9823-9f7c76f2b4f8",
"size": 1
}
],
"count": 10
}