23b7463984
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
22 lines
737 B
JSON
22 lines
737 B
JSON
{
|
|
"snapshots": [
|
|
{
|
|
"status": "available",
|
|
"metadata": {
|
|
"name": "test"
|
|
},
|
|
"name": "test-volume-snapshot",
|
|
"user_id": "40c2102f4a554b848d96b14f3eec39ed",
|
|
"volume_id": "173f7b48-c4c1-4e70-9acc-086b39073506",
|
|
"created_at": "2015-11-29T02:25:51.000000",
|
|
"size": 1,
|
|
"updated_at": "2015-11-20T05:36:40.000000",
|
|
"os-extended-snapshot-attributes:progress": "100%",
|
|
"os-extended-snapshot-attributes:project_id": "0892d23df5c5471da88299517a412b90",
|
|
"id": "b1323cda-8e4b-41c1-afc5-2fc791809c8c",
|
|
"description": "volume snapshot"
|
|
}
|
|
],
|
|
"count": 10
|
|
}
|