Skip to content

Commit c40b92f

Browse files
committed
spec: update csp spec for volumes to return free_bytes and used_bytes
Signed-off-by: Raunak <[email protected]>
1 parent b5040c9 commit c40b92f

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

spec.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ GET http://localhost:8080/csp/containers/v1/volumes
118118
"config": {
119119
"parameter1": "default",
120120
"parameter2": false
121-
}
121+
},
122+
"used_bytes" : 12570624,
123+
"free_bytes" : 1061171200
122124
},
123125
{
124126
"id": "067b5b0c6a3d0ece0600000000000000000000001d",
@@ -129,7 +131,9 @@ GET http://localhost:8080/csp/containers/v1/volumes
129131
"config": {
130132
"parameter1": "default",
131133
"parameter2": false
132-
}
134+
},
135+
"used_bytes" : 12570624,
136+
"free_bytes" : 1061171200
133137
}
134138
]
135139
```
@@ -154,7 +158,9 @@ GET http://localhost:8080/csp/containers/v1/volumes/067b5b0c6a3d0ece060000000000
154158
"config": {
155159
"parameter1": "default",
156160
"parameter2": false
157-
}
161+
},
162+
"used_bytes" : 12570624,
163+
"free_bytes" : 1061171200
158164
}
159165
```
160166

@@ -181,7 +187,9 @@ GET http://localhost:8080/csp/containers/v1/volumes?name=volume1
181187
"parameter2": false
182188
},
183189
"base_snapshot_id": "",
184-
"volume_group_id": ""
190+
"volume_group_id": "",
191+
"used_bytes" : 12570624,
192+
"free_bytes" : 1061171200
185193
}
186194
]
187195
```
@@ -224,7 +232,9 @@ PUT `/containers/v1/volumes/{id}`
224232
"config": {
225233
"parameter1": "default",
226234
"parameter2": false
227-
}
235+
},
236+
"used_bytes" : 12570624,
237+
"free_bytes" : 1061171200
228238
}
229239
```
230240

@@ -915,6 +925,8 @@ DELETE http://localhost:8080/csp/containers/v1/snapshot_groups/052265c9672660666
915925
| | volume_group_id | string | | X | X |
916926
| | published | boolean | | | X |
917927
| | config | map[string]interface{} | | | X |
928+
| | free_bytes | number | | | X |
929+
| | used_bytes | number | | | X |
918930
| PublishOptions | | | | | |
919931
| | host_uuid | string | X | X | |
920932
| | access_protocol | string | X | X | |

0 commit comments

Comments
 (0)